diff --git a/generation_config.yaml b/generation_config.yaml index 1c0bd81d92dc..9dfd525d3bdc 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.68.0 -googleapis_commitish: cd090841ab172574e740c214c99df00aef9c0dee +gapic_generator_version: 2.69.0 +googleapis_commitish: e182cf5152967047b763fd88f03094cfc836d194 libraries_bom_version: 26.79.0 libraries: - api_shortname: accessapproval @@ -2997,3 +2997,4 @@ libraries: GAPICs: - proto_path: google/cloud/workstations/v1 - proto_path: google/cloud/workstations/v1beta + diff --git a/java-accessapproval/.OwlBot-hermetic.yaml b/java-accessapproval/.OwlBot-hermetic.yaml index e48afc86d349..4736283994aa 100644 --- a/java-accessapproval/.OwlBot-hermetic.yaml +++ b/java-accessapproval/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-accessapproval/samples/snippets/generated" deep-preserve-regex: -- "/java-accessapproval/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/it" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/it" deep-copy-regex: - source: "/google/cloud/accessapproval/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 097ee8d1a1d5..0ad0f90b5729 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.89.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-accesscontextmanager/.OwlBot-hermetic.yaml index 3a4cdc7f8dd6..d06ba37a7aec 100644 --- a/java-accesscontextmanager/.OwlBot-hermetic.yaml +++ b/java-accesscontextmanager/.OwlBot-hermetic.yaml @@ -18,7 +18,8 @@ deep-remove-regex: - "/java-accesscontextmanager/samples/snippets/generated" deep-preserve-regex: -- "/java-accesscontextmanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/proto-google-.*/src" diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index deff21cbab1a..373e7a206c59 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.89.0 + 1.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.89.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.89.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-admanager/.OwlBot-hermetic.yaml index bbf57d3062d3..ceb5433db71d 100644 --- a/java-admanager/.OwlBot-hermetic.yaml +++ b/java-admanager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-admanager/samples/snippets/generated" deep-preserve-regex: -- "/java-admanager/ad-manager-.*/src/test/java/com/google/.*/v.*/it/IT.*Test.java" +- "/.*ad-manager.*/src/main/java/.*/stub/Version.java" +- "/.*ad-manager.*/src/test/java/com/google/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/ads/admanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-admanager/README.md b/java-admanager/README.md index 0637cfc4217d..eb1ab1472043 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.47.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.47.0' +implementation 'com.google.api-ads:ad-manager:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.47.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.49.0" ``` ## Authentication @@ -158,7 +158,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.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/.OwlBot-hermetic.yaml b/java-advisorynotifications/.OwlBot-hermetic.yaml index ac2508b427bc..5feb99e20c19 100644 --- a/java-advisorynotifications/.OwlBot-hermetic.yaml +++ b/java-advisorynotifications/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-advisorynotifications/samples/snippets/generated" deep-preserve-regex: -- "/java-advisorynotifications/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/advisorynotifications/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index e9f719781c9b..2616ee1f27d0 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.77.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.77.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.79.0" ``` ## Authentication @@ -175,7 +175,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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/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-aiplatform/.OwlBot-hermetic.yaml b/java-aiplatform/.OwlBot-hermetic.yaml index bb7869c9a33c..27f0b13f5309 100644 --- a/java-aiplatform/.OwlBot-hermetic.yaml +++ b/java-aiplatform/.OwlBot-hermetic.yaml @@ -20,6 +20,9 @@ deep-remove-regex: - "/java-aiplatform/samples/snippets/generated" - "/java-aiplatform/google-.*/src/main/java/com/google/cloud/aiplatform/v1beta1" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/aiplatform/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-aiplatform/$1/proto-google-cloud-aiplatform-$1/src" diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 2ecd1ae76a82..9da0d2e678f4 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.89.0 + 3.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.89.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-alloydb-connectors/.OwlBot-hermetic.yaml index 2ad69b20a09a..93a134a913f0 100644 --- a/java-alloydb-connectors/.OwlBot-hermetic.yaml +++ b/java-alloydb-connectors/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-alloydb-connectors/samples/snippets/generated" deep-preserve-regex: -- "/java-alloydb-connectors/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 70685f0384e7..90bf340ad429 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.66.0 + 0.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.66.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.68.0" ``` ## Authentication @@ -175,7 +175,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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/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-alloydb/.OwlBot-hermetic.yaml b/java-alloydb/.OwlBot-hermetic.yaml index 0d85032ca1f3..6f0899e44b64 100644 --- a/java-alloydb/.OwlBot-hermetic.yaml +++ b/java-alloydb/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-alloydb/samples/snippets/generated" deep-preserve-regex: -- "/java-alloydb/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/alloydb/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-alloydb/README.md b/java-alloydb/README.md index ccb918c7528b..d1ea58dae68a 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.77.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.77.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.79.0" ``` ## Authentication @@ -175,7 +175,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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/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-analytics-admin/.OwlBot-hermetic.yaml b/java-analytics-admin/.OwlBot-hermetic.yaml index dddd519ff75e..5f3586f3a66c 100644 --- a/java-analytics-admin/.OwlBot-hermetic.yaml +++ b/java-analytics-admin/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-analytics-admin/google-.*/src" - "/java-analytics-admin/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/analytics/admin/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-analytics-admin/$1/proto-google-analytics-admin-$1/src" diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 668354c68f1d..6e8a02bab9b6 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.98.0 + 0.100.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.98.0' +implementation 'com.google.analytics:google-analytics-admin:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.98.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.100.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-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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/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-analytics-data/.OwlBot-hermetic.yaml b/java-analytics-data/.OwlBot-hermetic.yaml index 9a32eb669f2b..01c77325e63d 100644 --- a/java-analytics-data/.OwlBot-hermetic.yaml +++ b/java-analytics-data/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-analytics-data/google-.*/src" - "/java-analytics-data/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/analytics/data/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-analytics-data/$1/proto-google-analytics-data-$1/src" diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 25cef4a8ded6..54b22f7c7845 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.99.0 + 0.101.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.99.0' +implementation 'com.google.analytics:google-analytics-data:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.99.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.101.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-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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/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-analyticshub/.OwlBot-hermetic.yaml b/java-analyticshub/.OwlBot-hermetic.yaml index 16bd7686a712..52b3e48efc60 100644 --- a/java-analyticshub/.OwlBot-hermetic.yaml +++ b/java-analyticshub/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-analyticshub/samples/snippets/generated" deep-preserve-regex: -- "/java-analyticshub/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 1a6fa3be9f21..db6d49ac6e17 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.85.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.85.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.87.0" ``` ## Authentication @@ -175,7 +175,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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-api-gateway/.OwlBot-hermetic.yaml index d533c156c462..410f47678877 100644 --- a/java-api-gateway/.OwlBot-hermetic.yaml +++ b/java-api-gateway/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-api-gateway/google-.*/src" deep-preserve-regex: -- "/java-api-gateway/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/apigateway/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 7e235898dd35..ff73e1501031 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.88.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-apigee-connect/.OwlBot-hermetic.yaml index a76b224b883b..c5d378822b26 100644 --- a/java-apigee-connect/.OwlBot-hermetic.yaml +++ b/java-apigee-connect/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-apigee-connect/proto-google-.*/src" - "/java-apigee-connect/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/apigeeconnect/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apigee-connect/$1/proto-google-cloud-apigee-connect-$1/src" diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index a55b33b756f3..611d8bfd9b48 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.88.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-registry/.OwlBot-hermetic.yaml b/java-apigee-registry/.OwlBot-hermetic.yaml index 930a6b531f95..1444f0ccaf15 100644 --- a/java-apigee-registry/.OwlBot-hermetic.yaml +++ b/java-apigee-registry/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-apigee-registry/samples/snippets/generated" deep-preserve-regex: -- "/java-apigee-registry/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/apigeeregistry/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 3b381bb29bc0..7347afdf251e 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.88.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.88.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.90.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-apigee-registry/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-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-apihub/.OwlBot-hermetic.yaml index 6f67c7f6724a..86d34b927e2f 100644 --- a/java-apihub/.OwlBot-hermetic.yaml +++ b/java-apihub/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-apihub/samples/snippets/generated" deep-preserve-regex: -- "/java-apihub/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/apihub/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-apihub/README.md b/java-apihub/README.md index 9af3d352a037..ed80109ce1a5 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.41.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.41.0' +implementation 'com.google.cloud:google-cloud-apihub:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.43.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-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.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/.OwlBot-hermetic.yaml b/java-apikeys/.OwlBot-hermetic.yaml index 7cba2ebe02e9..a20286624096 100644 --- a/java-apikeys/.OwlBot-hermetic.yaml +++ b/java-apikeys/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-apikeys/samples/snippets/generated" deep-preserve-regex: -- "/java-apikeys/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/api/apikeys/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 9d1e5d50819a..3b57ec90e5c0 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.86.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.86.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/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-appengine-admin/.OwlBot-hermetic.yaml b/java-appengine-admin/.OwlBot-hermetic.yaml index f23fb5845c0b..7bf30a296880 100644 --- a/java-appengine-admin/.OwlBot-hermetic.yaml +++ b/java-appengine-admin/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-appengine-admin/google-.*/src" - "/java-appengine-admin/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/appengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-appengine-admin/$1/proto-google-cloud-appengine-admin-$1/src" diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index e3e84cf6c54a..4a46602eb961 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.88.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-apphub/.OwlBot-hermetic.yaml index cd07e1fbffb6..4ec45152b5f3 100644 --- a/java-apphub/.OwlBot-hermetic.yaml +++ b/java-apphub/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-apphub/samples/snippets/generated" deep-preserve-regex: -- "/java-apphub/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/apphub/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-apphub/README.md b/java-apphub/README.md index ce8d7c331231..a07644102c14 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.52.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.52.0' +implementation 'com.google.cloud:google-cloud-apphub:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.54.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-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.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/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-area120-tables/.OwlBot-hermetic.yaml b/java-area120-tables/.OwlBot-hermetic.yaml index 6668c5b7cf27..336a6566afb2 100644 --- a/java-area120-tables/.OwlBot-hermetic.yaml +++ b/java-area120-tables/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-area120-tables/google-.*/src" - "/java-area120-tables/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/area120/tables/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-area120-tables/$1/proto-google-area120-tables-$1/src" diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index d94a6c0bf8e0..88142249fd2d 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.92.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.92.0' +implementation 'com.google.area120:google-area120-tables:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.92.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.94.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-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.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/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-artifact-registry/.OwlBot-hermetic.yaml b/java-artifact-registry/.OwlBot-hermetic.yaml index 1cf942afb1d3..064792d99ac9 100644 --- a/java-artifact-registry/.OwlBot-hermetic.yaml +++ b/java-artifact-registry/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-artifact-registry/google-.*/src" - "/java-artifact-registry/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/devtools/artifactregistry/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-artifact-registry/$1/proto-google-cloud-artifact-registry-$1/src" diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index c92af1acb7cd..75ef466ea5b6 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.87.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.87.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.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-asset/.OwlBot-hermetic.yaml b/java-asset/.OwlBot-hermetic.yaml index a6f72d67a869..46f8c9bee784 100644 --- a/java-asset/.OwlBot-hermetic.yaml +++ b/java-asset/.OwlBot-hermetic.yaml @@ -20,9 +20,10 @@ deep-remove-regex: - "/java-asset/google-.*/src" deep-preserve-regex: -- "/java-asset/google-cloud-.*/src/test/java/com/google/cloud/.*/it" -- "/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/VPCServiceControlTest.java" -- "/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-.*/src/test/java/com/google/cloud/.*/it" +- "/.*google-cloud-asset/src/test/java/com/google/cloud/asset/v1/VPCServiceControlTest.java" +- "/.*proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java" deep-copy-regex: - source: "/google/cloud/asset/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-asset/README.md b/java-asset/README.md index c19beef5378c..f9673772cba4 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.92.0 + 3.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.92.0' +implementation 'com.google.cloud:google-cloud-asset:3.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.94.0" ``` ## Authentication @@ -175,7 +175,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.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.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-assured-workloads/.OwlBot-hermetic.yaml b/java-assured-workloads/.OwlBot-hermetic.yaml index 224a5d3cb669..4ae7d7469586 100644 --- a/java-assured-workloads/.OwlBot-hermetic.yaml +++ b/java-assured-workloads/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-assured-workloads/proto-google-.*/src" - "/java-assured-workloads/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/assuredworkloads/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-assured-workloads/$1/proto-google-cloud-assured-workloads-$1/src" diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index df20efd261ed..4bed194c9363 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.88.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-auditmanager/.OwlBot-hermetic.yaml index bce31a4cf7a2..026473f06cf3 100644 --- a/java-auditmanager/.OwlBot-hermetic.yaml +++ b/java-auditmanager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-auditmanager/samples/snippets/generated" deep-preserve-regex: -- "/java-auditmanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/auditmanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md index cc2f5dbf2d68..f179f7258403 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 0.6.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-auditmanager:0.6.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.8.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-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.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/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-automl/.OwlBot-hermetic.yaml b/java-automl/.OwlBot-hermetic.yaml index 99904ffddfa2..0c39ec644cac 100644 --- a/java-automl/.OwlBot-hermetic.yaml +++ b/java-automl/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-automl/proto-google-.*/src" - "/java-automl/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/automl/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-automl/$1/proto-google-cloud-automl-$1/src" diff --git a/java-automl/README.md b/java-automl/README.md index f4e927434664..af5622dc2b8a 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.88.0' +implementation 'com.google.cloud:google-cloud-automl:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.90.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-automl/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-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-backupdr/.OwlBot-hermetic.yaml index 42c8ce791d3b..ba649a8c91cf 100644 --- a/java-backupdr/.OwlBot-hermetic.yaml +++ b/java-backupdr/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-backupdr/samples/snippets/generated" deep-preserve-regex: -- "/java-backupdr/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/backupdr/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 896a55890ac1..14eb81c4c146 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.47.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.47.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.49.0" ``` ## Authentication @@ -175,7 +175,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.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/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-bare-metal-solution/.OwlBot-hermetic.yaml b/java-bare-metal-solution/.OwlBot-hermetic.yaml index f3598960c0d0..7c4b212a734d 100644 --- a/java-bare-metal-solution/.OwlBot-hermetic.yaml +++ b/java-bare-metal-solution/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-bare-metal-solution/google-.*/src" deep-preserve-regex: -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 8a3c5e445456..f8393ef9c33c 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.88.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.88.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.90.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-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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-batch/.OwlBot-hermetic.yaml index f12b5c226bc0..2a81fdedf9f2 100644 --- a/java-batch/.OwlBot-hermetic.yaml +++ b/java-batch/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-batch/samples/snippets/generated" deep-preserve-regex: -- "/java-batch/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/batch/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-batch/README.md b/java-batch/README.md index 477b0f81690a..68fede8a9f09 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.88.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.88.0' +implementation 'com.google.cloud:google-cloud-batch:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.90.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-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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml index 998c1c9c1c55..86bae36e4272 100644 --- a/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-beyondcorp-appconnections/samples/snippets/generated" deep-preserve-regex: -- "/java-beyondcorp-appconnections/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 6a5694eaaa37..7a336ce5114f 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.86.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.86.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.88.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-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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/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-beyondcorp-appconnectors/.OwlBot-hermetic.yaml b/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml index 654c79b96dc5..6f98f29fe8a5 100644 --- a/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-beyondcorp-appconnectors/samples/snippets/generated" deep-preserve-regex: -- "/java-beyondcorp-appconnectors/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 453d5aff10eb..dbf48abce3fc 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.86.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.86.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.88.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-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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/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-beyondcorp-appgateways/.OwlBot-hermetic.yaml b/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml index 285b4fa956f3..fff966a5f049 100644 --- a/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-beyondcorp-appgateways/samples/snippets/generated" deep-preserve-regex: -- "/java-beyondcorp-appgateways/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index f4330af54564..ddb45616cf0a 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.86.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.86.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.88.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-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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/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-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml b/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml index bbc65b3879cc..948ce1b9f5fd 100644 --- a/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-beyondcorp-clientconnectorservices/samples/snippets/generated" deep-preserve-regex: -- "/java-beyondcorp-clientconnectorservices/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index ca505f17e673..79f4a0f0bec8 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.86.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.86.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.88.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-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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/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-beyondcorp-clientgateways/.OwlBot-hermetic.yaml b/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml index 62280590348e..6957323522d7 100644 --- a/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-beyondcorp-clientgateways/samples/snippets/generated" deep-preserve-regex: -- "/java-beyondcorp-clientgateways/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index e8bfdef1ba7a..908374c061f8 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.86.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.86.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.88.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-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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/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-biglake/.OwlBot-hermetic.yaml b/java-biglake/.OwlBot-hermetic.yaml index 4ffead625ccc..10bf0a32e29f 100644 --- a/java-biglake/.OwlBot-hermetic.yaml +++ b/java-biglake/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-biglake/samples/snippets/generated" deep-preserve-regex: -- "/java-biglake/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-biglake/README.md b/java-biglake/README.md index 8f8c1ad01203..97a01d7c6228 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.76.0' +implementation 'com.google.cloud:google-cloud-biglake:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.78.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-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.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/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-bigquery-data-exchange/.OwlBot-hermetic.yaml b/java-bigquery-data-exchange/.OwlBot-hermetic.yaml index 7b8236dd43a8..005fdb14c886 100644 --- a/java-bigquery-data-exchange/.OwlBot-hermetic.yaml +++ b/java-bigquery-data-exchange/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-bigquery-data-exchange/samples/snippets/generated" deep-preserve-regex: -- "/java-bigquery-data-exchange/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 895f81d2fd58..985d1ca2dde4 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.83.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.83.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.85.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-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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.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-bigqueryconnection/.OwlBot-hermetic.yaml b/java-bigqueryconnection/.OwlBot-hermetic.yaml index 6df8d449ad2e..d6052c29351b 100644 --- a/java-bigqueryconnection/.OwlBot-hermetic.yaml +++ b/java-bigqueryconnection/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-bigqueryconnection/samples/snippets/generated" deep-preserve-regex: -- "/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v.*/it/ITSystemTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/bigquery/connection/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index e4133a5a90fc..8ecfe6d6efcc 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.90.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.90.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.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-bigquerydatapolicy/.OwlBot-hermetic.yaml b/java-bigquerydatapolicy/.OwlBot-hermetic.yaml index a2fead5ee8e9..898f10fa75bc 100644 --- a/java-bigquerydatapolicy/.OwlBot-hermetic.yaml +++ b/java-bigquerydatapolicy/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-bigquerydatapolicy/samples/snippets/generated" deep-preserve-regex: -- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 278aa6dff644..768e4cebdd20 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.85.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.85.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.87.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-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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml index efba65859bb4..c0bf7ba29614 100644 --- a/java-bigquerydatatransfer/.OwlBot-hermetic.yaml +++ b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-bigquerydatatransfer/samples/snippets/generated" deep-preserve-regex: -- "/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/SampleApp.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/SampleApp.java" deep-copy-regex: - source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index b77762d83b6b..72dc2289214c 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.88.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-bigquerymigration/.OwlBot-hermetic.yaml index 260667f1df9f..baea5d9e7b20 100644 --- a/java-bigquerymigration/.OwlBot-hermetic.yaml +++ b/java-bigquerymigration/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-bigquerymigration/samples/snippets/generated" deep-preserve-regex: -- "/java-bigquerymigration/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/bigquery/migration/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index d5567fbe91fe..40c8f24c3fd9 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.91.0 + 0.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.91.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.93.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-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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-bigqueryreservation/.OwlBot-hermetic.yaml index 1c36d074f67b..ba21b8d461a9 100644 --- a/java-bigqueryreservation/.OwlBot-hermetic.yaml +++ b/java-bigqueryreservation/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-bigqueryreservation/samples/snippets/generated" deep-preserve-regex: -- "/java-bigqueryreservation/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/proto-google-.*/src" diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 4e7c53c583af..ca3b46d375a4 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.89.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-bigquerystorage/.OwlBot-hermetic.yaml index 54a72ded4010..3b16b375142e 100644 --- a/java-bigquerystorage/.OwlBot-hermetic.yaml +++ b/java-bigquerystorage/.OwlBot-hermetic.yaml @@ -16,79 +16,82 @@ deep-remove-regex: - /java-bigquerystorage/grpc-google-.*/src - /java-bigquerystorage/proto-google-.*/src - /java-bigquerystorage/google-.*/src + deep-preserve-regex: -- /java-bigquerystorage/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/SchemaAwareStreamWriter.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ToProtoConverter.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/AppendFormats.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQuerySchemaUtil.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQuerySchemaUtilTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPoolTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/RequestProfiler.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/TelemetryMetrics.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/BigQueryReadSettings.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/BigQueryReadClient.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/util -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/BigQueryReadStubSettings.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/EnhancedBigQueryReadStub.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/EnhancedBigQueryReadStubSettings.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/readrows -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/proto -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v.*/stub -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v.*/it -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/util -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v.*/BigQueryReadClientTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClientTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/it/SimpleRowReader.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/stub/EnhancedBigQueryStorageStubSettingsTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/stub/ResourceHeaderTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/stub/readrows/ReadRowsRetryTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BQTableSchemaToProtoDescriptorTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BQV2ToBQStorageConverterTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BigDecimalByteStringEncoderTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BigQueryReadClientTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/CivilTimeEncoderTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeBigQueryWrite.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeBigQueryWriteImpl.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeClock.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeScheduledExecutorService.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/JsonStreamWriterTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/JsonToProtoMessageTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/ProtoSchemaConverterTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/RequestProfilerTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/SchemaCompatibilityTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/StreamWriterTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/StreamWriterV2Test.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/RequestProfilerTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/it/BigQueryResource.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/it/SimpleRowReader.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/stub/EnhancedBigQueryReadStubSettingsTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/stub/ResourceHeaderTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/stub/readrows/ReadRowsRetryTest.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageSettings.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/EnhancedBigQueryStorageStub.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/EnhancedBigQueryStorageStubSettings.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/BQTableSchemaToProtoDescriptor.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/BQV2ToBQStorageConverter.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/BigDecimalByteStringEncoder.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/CivilTimeEncoder.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/JsonStreamWriter.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/JsonToProtoMessage.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/OnSchemaUpdateRunnable.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/ProtoSchemaConverter.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/SchemaCompatibility.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/StreamConnection.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/StreamWriter.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/StreamWriterV2.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/Waiter.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPool.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Singletons.java -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-bigquerystorage/reflect-config.json -- /java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-bigquerystorage/resource-config.json +- /.*google-.*/src/main/java/.*/stub/Version.java +- /.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/SchemaAwareStreamWriter.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ToProtoConverter.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/AppendFormats.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQuerySchemaUtil.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQuerySchemaUtilTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPoolTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerTest.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/RequestProfiler.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/TelemetryMetrics.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/BigQueryReadSettings.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/BigQueryReadClient.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/util +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/BigQueryReadStubSettings.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/EnhancedBigQueryReadStub.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/EnhancedBigQueryReadStubSettings.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v.*/stub/readrows +- /.*google-cloud-bigquerystorage/src/test/proto +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v.*/stub +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v.*/it +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/util +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v.*/BigQueryReadClientTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClientTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/it/SimpleRowReader.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/stub/EnhancedBigQueryStorageStubSettingsTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/stub/ResourceHeaderTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/stub/readrows/ReadRowsRetryTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BQTableSchemaToProtoDescriptorTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BQV2ToBQStorageConverterTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BigDecimalByteStringEncoderTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/BigQueryReadClientTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/CivilTimeEncoderTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeBigQueryWrite.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeBigQueryWriteImpl.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeClock.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/FakeScheduledExecutorService.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/JsonStreamWriterTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/JsonToProtoMessageTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/ProtoSchemaConverterTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/RequestProfilerTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/SchemaCompatibilityTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/StreamWriterTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/StreamWriterV2Test.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/RequestProfilerTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/it/BigQueryResource.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/it/SimpleRowReader.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/stub/EnhancedBigQueryReadStubSettingsTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/stub/ResourceHeaderTest.java +- /.*google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1.*/stub/readrows/ReadRowsRetryTest.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageSettings.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/EnhancedBigQueryStorageStub.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/EnhancedBigQueryStorageStubSettings.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/BQTableSchemaToProtoDescriptor.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/BQV2ToBQStorageConverter.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/BigDecimalByteStringEncoder.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/CivilTimeEncoder.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/JsonStreamWriter.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/JsonToProtoMessage.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/OnSchemaUpdateRunnable.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/ProtoSchemaConverter.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/SchemaCompatibility.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/StreamConnection.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/StreamWriter.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/StreamWriterV2.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1.*/Waiter.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPool.java +- /.*google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Singletons.java +- /.*google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-bigquerystorage/reflect-config.json +- /.*google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-bigquerystorage/resource-config.json + deep-copy-regex: - source: /google/cloud/bigquery/storage/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-bigquerystorage/$1/proto-google-cloud-bigquerystorage-$1/src diff --git a/java-bigquerystorage/README.md b/java-bigquerystorage/README.md index 0244a97261bc..1fd7fb62dcfd 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -63,13 +63,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.24.0' +implementation 'com.google.cloud:google-cloud-bigquerystorage:3.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.26.0" ``` ## Authentication @@ -242,7 +242,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.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.26.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-billing/.OwlBot-hermetic.yaml index d42dff70fbee..1a8f34f3d240 100644 --- a/java-billing/.OwlBot-hermetic.yaml +++ b/java-billing/.OwlBot-hermetic.yaml @@ -13,13 +13,14 @@ # limitations under the License. deep-preserve-regex: -- "/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java" deep-remove-regex: -- "/java-billing/samples/snippets/generated" -- "/java-billing/grpc-google-.*/src" -- "/java-billing/proto-google-.*/src" -- "/java-billing/google-.*/src" +- "/.*samples/snippets/generated" +- "/.*grpc-google-.*/src" +- "/.*proto-google-.*/src" +- "/.*google-.*/src" deep-copy-regex: - source: "/google/cloud/billing/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-billing/README.md b/java-billing/README.md index 3d08e7d81a28..34e894972a78 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.88.0' +implementation 'com.google.cloud:google-cloud-billing:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-billingbudgets/.OwlBot-hermetic.yaml index 78f97782ba56..631ac7657913 100644 --- a/java-billingbudgets/.OwlBot-hermetic.yaml +++ b/java-billingbudgets/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-billingbudgets/google-.*/src" - "/java-billingbudgets/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/billing/budgets/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-billingbudgets/$1/proto-google-cloud-billingbudgets-$1/src" diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 8585d4539f78..87b3cad8c7a6 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.88.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-binary-authorization/.OwlBot-hermetic.yaml index 166545ddf003..183a5108d700 100644 --- a/java-binary-authorization/.OwlBot-hermetic.yaml +++ b/java-binary-authorization/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-binary-authorization/proto-google-.*/src" - "/java-binary-authorization/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/binaryauthorization/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-binary-authorization/$1/proto-google-cloud-binary-authorization-$1/src" diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index eda315cf812e..1b5807aeee13 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.87.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.87.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.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-capacityplanner/.OwlBot-hermetic.yaml b/java-capacityplanner/.OwlBot-hermetic.yaml index 2bd357afc57a..bcb7c405fdc9 100644 --- a/java-capacityplanner/.OwlBot-hermetic.yaml +++ b/java-capacityplanner/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-capacityplanner/samples/snippets/generated" deep-preserve-regex: -- "/java-capacityplanner/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/capacityplanner/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index e5dc0a502660..b1cc779848d9 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.11.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.11.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.11.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.13.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-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.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/.OwlBot-hermetic.yaml b/java-certificate-manager/.OwlBot-hermetic.yaml index 0816cd4f9c17..04bea2c9343a 100644 --- a/java-certificate-manager/.OwlBot-hermetic.yaml +++ b/java-certificate-manager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-certificate-manager/google-.*/src" deep-preserve-regex: -- "/java-certificate-manager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/certificatemanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 2d60bc6c4cc6..14de435dd9b8 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.91.0 + 0.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.91.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.93.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-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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-ces/.OwlBot-hermetic.yaml index 022d5aa9b1bf..44ecb82fb0c8 100644 --- a/java-ces/.OwlBot-hermetic.yaml +++ b/java-ces/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-ces/samples/snippets/generated" deep-preserve-regex: -- "/java-ces/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/ces/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-ces/README.md b/java-ces/README.md index dd28a045ed85..be18a95dbcdd 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ces - 0.4.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ces:0.4.0' +implementation 'com.google.cloud:google-cloud-ces:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.6.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-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.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/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-channel/.OwlBot-hermetic.yaml b/java-channel/.OwlBot-hermetic.yaml index 6c68fbab3a34..66e0acb60968 100644 --- a/java-channel/.OwlBot-hermetic.yaml +++ b/java-channel/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-channel/proto-google-.*/src" - "/java-channel/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/channel/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-channel/$1/proto-google-cloud-channel-$1/src" diff --git a/java-channel/README.md b/java-channel/README.md index 9e9b706e9635..918da2ec92ec 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.92.0 + 3.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.92.0' +implementation 'com.google.cloud:google-cloud-channel:3.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.94.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-channel/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-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.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-chat/.OwlBot-hermetic.yaml b/java-chat/.OwlBot-hermetic.yaml index f4f545339680..de8208b2b3e7 100644 --- a/java-chat/.OwlBot-hermetic.yaml +++ b/java-chat/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-chat/samples/snippets/generated" deep-preserve-regex: -- "/java-chat/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/chat/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-chat/README.md b/java-chat/README.md index d666785830cc..dbb3e327406b 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.52.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.52.0' +implementation 'com.google.cloud:google-cloud-chat:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.54.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-chat/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-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/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-chronicle/.OwlBot-hermetic.yaml b/java-chronicle/.OwlBot-hermetic.yaml index ad7d057a381e..fc1783c6578d 100644 --- a/java-chronicle/.OwlBot-hermetic.yaml +++ b/java-chronicle/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-chronicle/samples/snippets/generated" deep-preserve-regex: -- "/java-chronicle/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/chronicle/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 9b2d7719c49c..a32f507f19ca 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.26.0 + 0.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.26.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.28.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-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.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/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-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceClient.java new file mode 100644 index 000000000000..6c6b7234cac0 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceClient.java @@ -0,0 +1,2631 @@ +/* + * 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.chronicle.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +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.chronicle.v1.stub.DataTableServiceStub; +import com.google.cloud.chronicle.v1.stub.DataTableServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: DataTableManager provides an interface for managing data tables. + * + *

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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+ *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   DataTable dataTable = DataTable.newBuilder().build();
+ *   String dataTableId = "dataTableId1260854911";
+ *   DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId);
+ * }
+ * }
+ * + *

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

CreateDataTable

Create a new data table.

+ *

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

+ *
    + *
  • createDataTable(CreateDataTableRequest request) + *

+ *

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

+ *
    + *
  • createDataTable(InstanceName parent, DataTable dataTable, String dataTableId) + *

  • createDataTable(String parent, DataTable dataTable, String dataTableId) + *

+ *

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

+ *
    + *
  • createDataTableCallable() + *

+ *

ListDataTables

List data tables.

+ *

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

+ *
    + *
  • listDataTables(ListDataTablesRequest request) + *

+ *

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

+ *
    + *
  • listDataTables(InstanceName parent) + *

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

+ *
    + *
  • listDataTablesPagedCallable() + *

  • listDataTablesCallable() + *

+ *

GetDataTable

Get data table info.

+ *

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

+ *
    + *
  • getDataTable(GetDataTableRequest request) + *

+ *

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

+ *
    + *
  • getDataTable(DataTableName name) + *

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

+ *
    + *
  • getDataTableCallable() + *

+ *

UpdateDataTable

Update data table.

+ *

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

+ *
    + *
  • updateDataTable(UpdateDataTableRequest request) + *

+ *

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

+ *
    + *
  • updateDataTable(DataTable dataTable, 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.

+ *
    + *
  • updateDataTableCallable() + *

+ *

DeleteDataTable

Delete data table.

+ *

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

+ *
    + *
  • deleteDataTable(DeleteDataTableRequest request) + *

+ *

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

+ *
    + *
  • deleteDataTable(DataTableName name, boolean force) + *

  • deleteDataTable(String name, boolean force) + *

+ *

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

+ *
    + *
  • deleteDataTableCallable() + *

+ *

CreateDataTableRow

Create a new data table row.

+ *

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

+ *
    + *
  • createDataTableRow(CreateDataTableRowRequest request) + *

+ *

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

+ *
    + *
  • createDataTableRow(DataTableName parent, DataTableRow dataTableRow) + *

  • createDataTableRow(String parent, DataTableRow dataTableRow) + *

+ *

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

+ *
    + *
  • createDataTableRowCallable() + *

+ *

UpdateDataTableRow

Update data table row

+ *

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

+ *
    + *
  • updateDataTableRow(UpdateDataTableRowRequest request) + *

+ *

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

+ *
    + *
  • updateDataTableRow(DataTableRow dataTableRow, 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.

+ *
    + *
  • updateDataTableRowCallable() + *

+ *

ListDataTableRows

List data table rows.

+ *

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

+ *
    + *
  • listDataTableRows(ListDataTableRowsRequest request) + *

+ *

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

+ *
    + *
  • listDataTableRows(DataTableName parent) + *

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

+ *
    + *
  • listDataTableRowsPagedCallable() + *

  • listDataTableRowsCallable() + *

+ *

GetDataTableRow

Get data table row

+ *

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

+ *
    + *
  • getDataTableRow(GetDataTableRowRequest request) + *

+ *

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

+ *
    + *
  • getDataTableRow(DataTableRowName name) + *

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

+ *
    + *
  • getDataTableRowCallable() + *

+ *

DeleteDataTableRow

Delete data table row.

+ *

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

+ *
    + *
  • deleteDataTableRow(DeleteDataTableRowRequest request) + *

+ *

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

+ *
    + *
  • deleteDataTableRow(DataTableRowName name) + *

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

+ *
    + *
  • deleteDataTableRowCallable() + *

+ *

BulkCreateDataTableRows

Create data table rows in bulk.

+ *

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

+ *
    + *
  • bulkCreateDataTableRows(DataTableName parent, List<CreateDataTableRowRequest> requests) + *

  • bulkCreateDataTableRows(String parent, List<CreateDataTableRowRequest> requests) + *

  • bulkCreateDataTableRows(BulkCreateDataTableRowsRequest request) + *

+ *

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

+ *
    + *
  • bulkCreateDataTableRowsCallable() + *

+ *

BulkGetDataTableRows

Get data table rows in bulk.

+ *

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

+ *
    + *
  • bulkGetDataTableRows(DataTableName parent, List<GetDataTableRowRequest> requests) + *

  • bulkGetDataTableRows(String parent, List<GetDataTableRowRequest> requests) + *

  • bulkGetDataTableRows(BulkGetDataTableRowsRequest request) + *

+ *

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

+ *
    + *
  • bulkGetDataTableRowsCallable() + *

+ *

BulkReplaceDataTableRows

Replace all existing data table rows with new data table rows.

+ *

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

+ *
    + *
  • bulkReplaceDataTableRows(DataTableName parent, List<CreateDataTableRowRequest> requests) + *

  • bulkReplaceDataTableRows(String parent, List<CreateDataTableRowRequest> requests) + *

  • bulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest request) + *

+ *

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

+ *
    + *
  • bulkReplaceDataTableRowsCallable() + *

+ *

BulkUpdateDataTableRows

Update data table rows in bulk.

+ *

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

+ *
    + *
  • bulkUpdateDataTableRows(DataTableName parent, List<UpdateDataTableRowRequest> requests) + *

  • bulkUpdateDataTableRows(String parent, List<UpdateDataTableRowRequest> requests) + *

  • bulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest request) + *

+ *

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

+ *
    + *
  • bulkUpdateDataTableRowsCallable() + *

+ *

GetDataTableOperationErrors

Get the error for a data table operation.

+ *

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

+ *
    + *
  • getDataTableOperationErrors(GetDataTableOperationErrorsRequest request) + *

+ *

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

+ *
    + *
  • getDataTableOperationErrors(DataTableOperationErrorsName name) + *

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

+ *
    + *
  • getDataTableOperationErrorsCallable() + *

+ *
+ * + *

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 DataTableServiceSettings 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
+ * DataTableServiceSettings dataTableServiceSettings =
+ *     DataTableServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DataTableServiceClient dataTableServiceClient =
+ *     DataTableServiceClient.create(dataTableServiceSettings);
+ * }
+ * + *

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
+ * DataTableServiceSettings dataTableServiceSettings =
+ *     DataTableServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DataTableServiceClient dataTableServiceClient =
+ *     DataTableServiceClient.create(dataTableServiceSettings);
+ * }
+ * + *

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
+ * DataTableServiceSettings dataTableServiceSettings =
+ *     DataTableServiceSettings.newHttpJsonBuilder().build();
+ * DataTableServiceClient dataTableServiceClient =
+ *     DataTableServiceClient.create(dataTableServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DataTableServiceClient implements BackgroundResource { + private final DataTableServiceSettings settings; + private final DataTableServiceStub stub; + + /** Constructs an instance of DataTableServiceClient with default settings. */ + public static final DataTableServiceClient create() throws IOException { + return create(DataTableServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DataTableServiceClient, 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 DataTableServiceClient create(DataTableServiceSettings settings) + throws IOException { + return new DataTableServiceClient(settings); + } + + /** + * Constructs an instance of DataTableServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(DataTableServiceSettings). + */ + public static final DataTableServiceClient create(DataTableServiceStub stub) { + return new DataTableServiceClient(stub); + } + + /** + * Constructs an instance of DataTableServiceClient, 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 DataTableServiceClient(DataTableServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DataTableServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DataTableServiceClient(DataTableServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DataTableServiceSettings getSettings() { + return settings; + } + + public DataTableServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   DataTable dataTable = DataTable.newBuilder().build();
+   *   String dataTableId = "dataTableId1260854911";
+   *   DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this data table will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param dataTable Required. The data table being created. + * @param dataTableId Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: - Starts with letter. - + * Contains only letters, numbers and underscore. - Must be unique and has length < 256. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTable createDataTable( + InstanceName parent, DataTable dataTable, String dataTableId) { + CreateDataTableRequest request = + CreateDataTableRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataTable(dataTable) + .setDataTableId(dataTableId) + .build(); + return createDataTable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   DataTable dataTable = DataTable.newBuilder().build();
+   *   String dataTableId = "dataTableId1260854911";
+   *   DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this data table will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param dataTable Required. The data table being created. + * @param dataTableId Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: - Starts with letter. - + * Contains only letters, numbers and underscore. - Must be unique and has length < 256. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTable createDataTable(String parent, DataTable dataTable, String dataTableId) { + CreateDataTableRequest request = + CreateDataTableRequest.newBuilder() + .setParent(parent) + .setDataTable(dataTable) + .setDataTableId(dataTableId) + .build(); + return createDataTable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   CreateDataTableRequest request =
+   *       CreateDataTableRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setDataTable(DataTable.newBuilder().build())
+   *           .setDataTableId("dataTableId1260854911")
+   *           .build();
+   *   DataTable response = dataTableServiceClient.createDataTable(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 DataTable createDataTable(CreateDataTableRequest request) { + return createDataTableCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   CreateDataTableRequest request =
+   *       CreateDataTableRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setDataTable(DataTable.newBuilder().build())
+   *           .setDataTableId("dataTableId1260854911")
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.createDataTableCallable().futureCall(request);
+   *   // Do something.
+   *   DataTable response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDataTableCallable() { + return stub.createDataTableCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   for (DataTable element : dataTableServiceClient.listDataTables(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this data table will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataTablesPagedResponse listDataTables(InstanceName parent) { + ListDataTablesRequest request = + ListDataTablesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDataTables(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   for (DataTable element : dataTableServiceClient.listDataTables(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this data table will be created. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataTablesPagedResponse listDataTables(String parent) { + ListDataTablesRequest request = ListDataTablesRequest.newBuilder().setParent(parent).build(); + return listDataTables(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   ListDataTablesRequest request =
+   *       ListDataTablesRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (DataTable element : dataTableServiceClient.listDataTables(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 ListDataTablesPagedResponse listDataTables(ListDataTablesRequest request) { + return listDataTablesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   ListDataTablesRequest request =
+   *       ListDataTablesRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.listDataTablesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DataTable element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataTablesPagedCallable() { + return stub.listDataTablesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   ListDataTablesRequest request =
+   *       ListDataTablesRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListDataTablesResponse response =
+   *         dataTableServiceClient.listDataTablesCallable().call(request);
+   *     for (DataTable element : response.getDataTablesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataTablesCallable() { + return stub.listDataTablesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table info. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String name =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   DataTable response = dataTableServiceClient.getDataTable(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the data table to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTable getDataTable(String name) { + GetDataTableRequest request = GetDataTableRequest.newBuilder().setName(name).build(); + return getDataTable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table info. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   GetDataTableRequest request =
+   *       GetDataTableRequest.newBuilder()
+   *           .setName(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .build();
+   *   DataTable response = dataTableServiceClient.getDataTable(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 DataTable getDataTable(GetDataTableRequest request) { + return getDataTableCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table info. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTable dataTable = DataTable.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DataTable response = dataTableServiceClient.updateDataTable(dataTable, updateMask);
+   * }
+   * }
+ * + * @param dataTable Required. This field is used to identify the datatable to update. Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @param updateMask Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` fields. When no + * field mask is supplied, all non-empty fields will be updated. A field mask of "*" will + * update all fields, whether empty or not. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTable updateDataTable(DataTable dataTable, FieldMask updateMask) { + UpdateDataTableRequest request = + UpdateDataTableRequest.newBuilder() + .setDataTable(dataTable) + .setUpdateMask(updateMask) + .build(); + return updateDataTable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   UpdateDataTableRequest request =
+   *       UpdateDataTableRequest.newBuilder()
+   *           .setDataTable(DataTable.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DataTable response = dataTableServiceClient.updateDataTable(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 DataTable updateDataTable(UpdateDataTableRequest request) { + return updateDataTableCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   UpdateDataTableRequest request =
+   *       UpdateDataTableRequest.newBuilder()
+   *           .setDataTable(DataTable.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.updateDataTableCallable().futureCall(request);
+   *   // Do something.
+   *   DataTable response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDataTableCallable() { + return stub.updateDataTableCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableName name =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
+   *   boolean force = true;
+   *   dataTableServiceClient.deleteDataTable(name, force);
+   * }
+   * }
+ * + * @param name Required. The resource name of the data table to delete. Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * @param force Optional. If set to true, any rows under this data table will also be deleted. + * (Otherwise, the request will only work if the data table has no rows.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataTable(DataTableName name, boolean force) { + DeleteDataTableRequest request = + DeleteDataTableRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + deleteDataTable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String name =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   boolean force = true;
+   *   dataTableServiceClient.deleteDataTable(name, force);
+   * }
+   * }
+ * + * @param name Required. The resource name of the data table to delete. Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * @param force Optional. If set to true, any rows under this data table will also be deleted. + * (Otherwise, the request will only work if the data table has no rows.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataTable(String name, boolean force) { + DeleteDataTableRequest request = + DeleteDataTableRequest.newBuilder().setName(name).setForce(force).build(); + deleteDataTable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DeleteDataTableRequest request =
+   *       DeleteDataTableRequest.newBuilder()
+   *           .setName(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   dataTableServiceClient.deleteDataTable(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 deleteDataTable(DeleteDataTableRequest request) { + deleteDataTableCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DeleteDataTableRequest request =
+   *       DeleteDataTableRequest.newBuilder()
+   *           .setName(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.deleteDataTableCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteDataTableCallable() { + return stub.deleteDataTableCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableName parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
+   *   DataTableRow dataTableRow = DataTableRow.newBuilder().build();
+   *   DataTableRow response = dataTableServiceClient.createDataTableRow(parent, dataTableRow);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param dataTableRow Required. The data table row to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTableRow createDataTableRow(DataTableName parent, DataTableRow dataTableRow) { + CreateDataTableRowRequest request = + CreateDataTableRowRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataTableRow(dataTableRow) + .build(); + return createDataTableRow(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   DataTableRow dataTableRow = DataTableRow.newBuilder().build();
+   *   DataTableRow response = dataTableServiceClient.createDataTableRow(parent, dataTableRow);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param dataTableRow Required. The data table row to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTableRow createDataTableRow(String parent, DataTableRow dataTableRow) { + CreateDataTableRowRequest request = + CreateDataTableRowRequest.newBuilder() + .setParent(parent) + .setDataTableRow(dataTableRow) + .build(); + return createDataTableRow(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   CreateDataTableRowRequest request =
+   *       CreateDataTableRowRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .setDataTableRow(DataTableRow.newBuilder().build())
+   *           .build();
+   *   DataTableRow response = dataTableServiceClient.createDataTableRow(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 DataTableRow createDataTableRow(CreateDataTableRowRequest request) { + return createDataTableRowCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   CreateDataTableRowRequest request =
+   *       CreateDataTableRowRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .setDataTableRow(DataTableRow.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.createDataTableRowCallable().futureCall(request);
+   *   // Do something.
+   *   DataTableRow response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDataTableRowCallable() { + return stub.createDataTableRowCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table row + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableRow dataTableRow = DataTableRow.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DataTableRow response = dataTableServiceClient.updateDataTableRow(dataTableRow, updateMask);
+   * }
+   * }
+ * + * @param dataTableRow Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @param updateMask Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all non-empty fields + * will be updated. A field mask of "*" will update all fields, whether empty or not. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTableRow updateDataTableRow(DataTableRow dataTableRow, FieldMask updateMask) { + UpdateDataTableRowRequest request = + UpdateDataTableRowRequest.newBuilder() + .setDataTableRow(dataTableRow) + .setUpdateMask(updateMask) + .build(); + return updateDataTableRow(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table row + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   UpdateDataTableRowRequest request =
+   *       UpdateDataTableRowRequest.newBuilder()
+   *           .setDataTableRow(DataTableRow.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DataTableRow response = dataTableServiceClient.updateDataTableRow(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 DataTableRow updateDataTableRow(UpdateDataTableRowRequest request) { + return updateDataTableRowCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table row + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   UpdateDataTableRowRequest request =
+   *       UpdateDataTableRowRequest.newBuilder()
+   *           .setDataTableRow(DataTableRow.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.updateDataTableRowCallable().futureCall(request);
+   *   // Do something.
+   *   DataTableRow response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDataTableRowCallable() { + return stub.updateDataTableRowCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableName parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
+   *   for (DataTableRow element : dataTableServiceClient.listDataTableRows(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataTableRowsPagedResponse listDataTableRows(DataTableName parent) { + ListDataTableRowsRequest request = + ListDataTableRowsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   for (DataTableRow element : dataTableServiceClient.listDataTableRows(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataTableRowsPagedResponse listDataTableRows(String parent) { + ListDataTableRowsRequest request = + ListDataTableRowsRequest.newBuilder().setParent(parent).build(); + return listDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   ListDataTableRowsRequest request =
+   *       ListDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (DataTableRow element : dataTableServiceClient.listDataTableRows(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 ListDataTableRowsPagedResponse listDataTableRows(ListDataTableRowsRequest request) { + return listDataTableRowsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   ListDataTableRowsRequest request =
+   *       ListDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.listDataTableRowsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DataTableRow element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataTableRowsPagedCallable() { + return stub.listDataTableRowsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   ListDataTableRowsRequest request =
+   *       ListDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListDataTableRowsResponse response =
+   *         dataTableServiceClient.listDataTableRowsCallable().call(request);
+   *     for (DataTableRow element : response.getDataTableRowsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataTableRowsCallable() { + return stub.listDataTableRowsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table row + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableRowName name =
+   *       DataTableRowName.of(
+   *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]");
+   *   DataTableRow response = dataTableServiceClient.getDataTableRow(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the data table row i,e row_id. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTableRow getDataTableRow(DataTableRowName name) { + GetDataTableRowRequest request = + GetDataTableRowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataTableRow(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table row + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String name =
+   *       DataTableRowName.of(
+   *               "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]")
+   *           .toString();
+   *   DataTableRow response = dataTableServiceClient.getDataTableRow(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the data table row i,e row_id. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTableRow getDataTableRow(String name) { + GetDataTableRowRequest request = GetDataTableRowRequest.newBuilder().setName(name).build(); + return getDataTableRow(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table row + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   GetDataTableRowRequest request =
+   *       GetDataTableRowRequest.newBuilder()
+   *           .setName(
+   *               DataTableRowName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[DATA_TABLE]",
+   *                       "[DATA_TABLE_ROW]")
+   *                   .toString())
+   *           .build();
+   *   DataTableRow response = dataTableServiceClient.getDataTableRow(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 DataTableRow getDataTableRow(GetDataTableRowRequest request) { + return getDataTableRowCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table row + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   GetDataTableRowRequest request =
+   *       GetDataTableRowRequest.newBuilder()
+   *           .setName(
+   *               DataTableRowName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[DATA_TABLE]",
+   *                       "[DATA_TABLE_ROW]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.getDataTableRowCallable().futureCall(request);
+   *   // Do something.
+   *   DataTableRow response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDataTableRowCallable() { + return stub.getDataTableRowCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableRowName name =
+   *       DataTableRowName.of(
+   *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]");
+   *   dataTableServiceClient.deleteDataTableRow(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the data table row i,e row_id. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataTableRow(DataTableRowName name) { + DeleteDataTableRowRequest request = + DeleteDataTableRowRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteDataTableRow(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String name =
+   *       DataTableRowName.of(
+   *               "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]")
+   *           .toString();
+   *   dataTableServiceClient.deleteDataTableRow(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the data table row i,e row_id. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataTableRow(String name) { + DeleteDataTableRowRequest request = + DeleteDataTableRowRequest.newBuilder().setName(name).build(); + deleteDataTableRow(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DeleteDataTableRowRequest request =
+   *       DeleteDataTableRowRequest.newBuilder()
+   *           .setName(
+   *               DataTableRowName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[DATA_TABLE]",
+   *                       "[DATA_TABLE_ROW]")
+   *                   .toString())
+   *           .build();
+   *   dataTableServiceClient.deleteDataTableRow(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 deleteDataTableRow(DeleteDataTableRowRequest request) { + deleteDataTableRowCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete data table row. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DeleteDataTableRowRequest request =
+   *       DeleteDataTableRowRequest.newBuilder()
+   *           .setName(
+   *               DataTableRowName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[INSTANCE]",
+   *                       "[DATA_TABLE]",
+   *                       "[DATA_TABLE_ROW]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.deleteDataTableRowCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteDataTableRowCallable() { + return stub.deleteDataTableRowCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableName parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
+   *   List requests = new ArrayList<>();
+   *   BulkCreateDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkCreateDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to create. A maximum of 1000 rows (for sync requests) + * or 2000 rows (for async requests) can be created in a single request. Total size of the + * rows should be less than 4MB. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkCreateDataTableRowsResponse bulkCreateDataTableRows( + DataTableName parent, List requests) { + BulkCreateDataTableRowsRequest request = + BulkCreateDataTableRowsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return bulkCreateDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BulkCreateDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkCreateDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to create. A maximum of 1000 rows (for sync requests) + * or 2000 rows (for async requests) can be created in a single request. Total size of the + * rows should be less than 4MB. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkCreateDataTableRowsResponse bulkCreateDataTableRows( + String parent, List requests) { + BulkCreateDataTableRowsRequest request = + BulkCreateDataTableRowsRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return bulkCreateDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkCreateDataTableRowsRequest request =
+   *       BulkCreateDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BulkCreateDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkCreateDataTableRows(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 BulkCreateDataTableRowsResponse bulkCreateDataTableRows( + BulkCreateDataTableRowsRequest request) { + return bulkCreateDataTableRowsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkCreateDataTableRowsRequest request =
+   *       BulkCreateDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.bulkCreateDataTableRowsCallable().futureCall(request);
+   *   // Do something.
+   *   BulkCreateDataTableRowsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + bulkCreateDataTableRowsCallable() { + return stub.bulkCreateDataTableRowsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableName parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
+   *   List requests = new ArrayList<>();
+   *   BulkGetDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkGetDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to get. At max 1,000 rows can be there in a request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkGetDataTableRowsResponse bulkGetDataTableRows( + DataTableName parent, List requests) { + BulkGetDataTableRowsRequest request = + BulkGetDataTableRowsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return bulkGetDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BulkGetDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkGetDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to get. At max 1,000 rows can be there in a request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkGetDataTableRowsResponse bulkGetDataTableRows( + String parent, List requests) { + BulkGetDataTableRowsRequest request = + BulkGetDataTableRowsRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return bulkGetDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkGetDataTableRowsRequest request =
+   *       BulkGetDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BulkGetDataTableRowsResponse response = dataTableServiceClient.bulkGetDataTableRows(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 BulkGetDataTableRowsResponse bulkGetDataTableRows( + BulkGetDataTableRowsRequest request) { + return bulkGetDataTableRowsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkGetDataTableRowsRequest request =
+   *       BulkGetDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.bulkGetDataTableRowsCallable().futureCall(request);
+   *   // Do something.
+   *   BulkGetDataTableRowsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + bulkGetDataTableRowsCallable() { + return stub.bulkGetDataTableRowsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Replace all existing data table rows with new data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableName parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
+   *   List requests = new ArrayList<>();
+   *   BulkReplaceDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkReplaceDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to replace the existing data table rows. A maximum of + * 1000 rows (for sync requests) or 2000 rows (for async requests) can be replaced in a single + * request. Total size of the rows should be less than 4MB. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows( + DataTableName parent, List requests) { + BulkReplaceDataTableRowsRequest request = + BulkReplaceDataTableRowsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return bulkReplaceDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Replace all existing data table rows with new data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BulkReplaceDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkReplaceDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to replace the existing data table rows. A maximum of + * 1000 rows (for sync requests) or 2000 rows (for async requests) can be replaced in a single + * request. Total size of the rows should be less than 4MB. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows( + String parent, List requests) { + BulkReplaceDataTableRowsRequest request = + BulkReplaceDataTableRowsRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return bulkReplaceDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Replace all existing data table rows with new data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkReplaceDataTableRowsRequest request =
+   *       BulkReplaceDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BulkReplaceDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkReplaceDataTableRows(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 BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows( + BulkReplaceDataTableRowsRequest request) { + return bulkReplaceDataTableRowsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Replace all existing data table rows with new data table rows. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkReplaceDataTableRowsRequest request =
+   *       BulkReplaceDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.bulkReplaceDataTableRowsCallable().futureCall(request);
+   *   // Do something.
+   *   BulkReplaceDataTableRowsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + bulkReplaceDataTableRowsCallable() { + return stub.bulkReplaceDataTableRowsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableName parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
+   *   List requests = new ArrayList<>();
+   *   BulkUpdateDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkUpdateDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to update. At max 1,000 rows (or rows with size less + * than 2MB) can be there in a request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows( + DataTableName parent, List requests) { + BulkUpdateDataTableRowsRequest request = + BulkUpdateDataTableRowsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return bulkUpdateDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String parent =
+   *       DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BulkUpdateDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkUpdateDataTableRows(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The resource id of the data table. Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @param requests Required. Data table rows to update. At max 1,000 rows (or rows with size less + * than 2MB) can be there in a request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows( + String parent, List requests) { + BulkUpdateDataTableRowsRequest request = + BulkUpdateDataTableRowsRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return bulkUpdateDataTableRows(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkUpdateDataTableRowsRequest request =
+   *       BulkUpdateDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BulkUpdateDataTableRowsResponse response =
+   *       dataTableServiceClient.bulkUpdateDataTableRows(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 BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows( + BulkUpdateDataTableRowsRequest request) { + return bulkUpdateDataTableRowsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update data table rows in bulk. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   BulkUpdateDataTableRowsRequest request =
+   *       BulkUpdateDataTableRowsRequest.newBuilder()
+   *           .setParent(
+   *               DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.bulkUpdateDataTableRowsCallable().futureCall(request);
+   *   // Do something.
+   *   BulkUpdateDataTableRowsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + bulkUpdateDataTableRowsCallable() { + return stub.bulkUpdateDataTableRowsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the error for a data table operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   DataTableOperationErrorsName name =
+   *       DataTableOperationErrorsName.of(
+   *           "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]");
+   *   DataTableOperationErrors response = dataTableServiceClient.getDataTableOperationErrors(name);
+   * }
+   * }
+ * + * @param name Required. Resource name for the data table operation errors. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTableOperationErrors getDataTableOperationErrors( + DataTableOperationErrorsName name) { + GetDataTableOperationErrorsRequest request = + GetDataTableOperationErrorsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDataTableOperationErrors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the error for a data table operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   String name =
+   *       DataTableOperationErrorsName.of(
+   *               "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]")
+   *           .toString();
+   *   DataTableOperationErrors response = dataTableServiceClient.getDataTableOperationErrors(name);
+   * }
+   * }
+ * + * @param name Required. Resource name for the data table operation errors. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataTableOperationErrors getDataTableOperationErrors(String name) { + GetDataTableOperationErrorsRequest request = + GetDataTableOperationErrorsRequest.newBuilder().setName(name).build(); + return getDataTableOperationErrors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the error for a data table operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   GetDataTableOperationErrorsRequest request =
+   *       GetDataTableOperationErrorsRequest.newBuilder()
+   *           .setName(
+   *               DataTableOperationErrorsName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]")
+   *                   .toString())
+   *           .build();
+   *   DataTableOperationErrors response =
+   *       dataTableServiceClient.getDataTableOperationErrors(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 DataTableOperationErrors getDataTableOperationErrors( + GetDataTableOperationErrorsRequest request) { + return getDataTableOperationErrorsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the error for a data table operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+   *   GetDataTableOperationErrorsRequest request =
+   *       GetDataTableOperationErrorsRequest.newBuilder()
+   *           .setName(
+   *               DataTableOperationErrorsName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTableServiceClient.getDataTableOperationErrorsCallable().futureCall(request);
+   *   // Do something.
+   *   DataTableOperationErrors response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getDataTableOperationErrorsCallable() { + return stub.getDataTableOperationErrorsCallable(); + } + + @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 ListDataTablesPagedResponse + extends AbstractPagedListResponse< + ListDataTablesRequest, + ListDataTablesResponse, + DataTable, + ListDataTablesPage, + ListDataTablesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDataTablesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDataTablesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDataTablesPagedResponse(ListDataTablesPage page) { + super(page, ListDataTablesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDataTablesPage + extends AbstractPage< + ListDataTablesRequest, ListDataTablesResponse, DataTable, ListDataTablesPage> { + + private ListDataTablesPage( + PageContext context, + ListDataTablesResponse response) { + super(context, response); + } + + private static ListDataTablesPage createEmptyPage() { + return new ListDataTablesPage(null, null); + } + + @Override + protected ListDataTablesPage createPage( + PageContext context, + ListDataTablesResponse response) { + return new ListDataTablesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDataTablesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDataTablesRequest, + ListDataTablesResponse, + DataTable, + ListDataTablesPage, + ListDataTablesFixedSizeCollection> { + + private ListDataTablesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDataTablesFixedSizeCollection createEmptyCollection() { + return new ListDataTablesFixedSizeCollection(null, 0); + } + + @Override + protected ListDataTablesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDataTablesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDataTableRowsPagedResponse + extends AbstractPagedListResponse< + ListDataTableRowsRequest, + ListDataTableRowsResponse, + DataTableRow, + ListDataTableRowsPage, + ListDataTableRowsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDataTableRowsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDataTableRowsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDataTableRowsPagedResponse(ListDataTableRowsPage page) { + super(page, ListDataTableRowsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDataTableRowsPage + extends AbstractPage< + ListDataTableRowsRequest, + ListDataTableRowsResponse, + DataTableRow, + ListDataTableRowsPage> { + + private ListDataTableRowsPage( + PageContext context, + ListDataTableRowsResponse response) { + super(context, response); + } + + private static ListDataTableRowsPage createEmptyPage() { + return new ListDataTableRowsPage(null, null); + } + + @Override + protected ListDataTableRowsPage createPage( + PageContext context, + ListDataTableRowsResponse response) { + return new ListDataTableRowsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDataTableRowsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDataTableRowsRequest, + ListDataTableRowsResponse, + DataTableRow, + ListDataTableRowsPage, + ListDataTableRowsFixedSizeCollection> { + + private ListDataTableRowsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDataTableRowsFixedSizeCollection createEmptyCollection() { + return new ListDataTableRowsFixedSizeCollection(null, 0); + } + + @Override + protected ListDataTableRowsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDataTableRowsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceSettings.java new file mode 100644 index 000000000000..cab2a9cf8a0e --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceSettings.java @@ -0,0 +1,385 @@ +/* + * 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.chronicle.v1; + +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTableRowsPagedResponse; +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTablesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.stub.DataTableServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataTableServiceClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataTableServiceSettings.Builder dataTableServiceSettingsBuilder =
+ *     DataTableServiceSettings.newBuilder();
+ * dataTableServiceSettingsBuilder
+ *     .createDataTableSettings()
+ *     .setRetrySettings(
+ *         dataTableServiceSettingsBuilder
+ *             .createDataTableSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DataTableServiceSettings dataTableServiceSettings = dataTableServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class DataTableServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createDataTable. */ + public UnaryCallSettings createDataTableSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).createDataTableSettings(); + } + + /** Returns the object with the settings used for calls to listDataTables. */ + public PagedCallSettings< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse> + listDataTablesSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).listDataTablesSettings(); + } + + /** Returns the object with the settings used for calls to getDataTable. */ + public UnaryCallSettings getDataTableSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).getDataTableSettings(); + } + + /** Returns the object with the settings used for calls to updateDataTable. */ + public UnaryCallSettings updateDataTableSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).updateDataTableSettings(); + } + + /** Returns the object with the settings used for calls to deleteDataTable. */ + public UnaryCallSettings deleteDataTableSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).deleteDataTableSettings(); + } + + /** Returns the object with the settings used for calls to createDataTableRow. */ + public UnaryCallSettings createDataTableRowSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).createDataTableRowSettings(); + } + + /** Returns the object with the settings used for calls to updateDataTableRow. */ + public UnaryCallSettings updateDataTableRowSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).updateDataTableRowSettings(); + } + + /** Returns the object with the settings used for calls to listDataTableRows. */ + public PagedCallSettings< + ListDataTableRowsRequest, ListDataTableRowsResponse, ListDataTableRowsPagedResponse> + listDataTableRowsSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).listDataTableRowsSettings(); + } + + /** Returns the object with the settings used for calls to getDataTableRow. */ + public UnaryCallSettings getDataTableRowSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).getDataTableRowSettings(); + } + + /** Returns the object with the settings used for calls to deleteDataTableRow. */ + public UnaryCallSettings deleteDataTableRowSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).deleteDataTableRowSettings(); + } + + /** Returns the object with the settings used for calls to bulkCreateDataTableRows. */ + public UnaryCallSettings + bulkCreateDataTableRowsSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).bulkCreateDataTableRowsSettings(); + } + + /** Returns the object with the settings used for calls to bulkGetDataTableRows. */ + public UnaryCallSettings + bulkGetDataTableRowsSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).bulkGetDataTableRowsSettings(); + } + + /** Returns the object with the settings used for calls to bulkReplaceDataTableRows. */ + public UnaryCallSettings + bulkReplaceDataTableRowsSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).bulkReplaceDataTableRowsSettings(); + } + + /** Returns the object with the settings used for calls to bulkUpdateDataTableRows. */ + public UnaryCallSettings + bulkUpdateDataTableRowsSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).bulkUpdateDataTableRowsSettings(); + } + + /** Returns the object with the settings used for calls to getDataTableOperationErrors. */ + public UnaryCallSettings + getDataTableOperationErrorsSettings() { + return ((DataTableServiceStubSettings) getStubSettings()).getDataTableOperationErrorsSettings(); + } + + public static final DataTableServiceSettings create(DataTableServiceStubSettings stub) + throws IOException { + return new DataTableServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DataTableServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DataTableServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DataTableServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DataTableServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DataTableServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DataTableServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DataTableServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataTableServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataTableServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DataTableServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DataTableServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DataTableServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DataTableServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DataTableServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(DataTableServiceStubSettings.newHttpJsonBuilder()); + } + + public DataTableServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DataTableServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createDataTable. */ + public UnaryCallSettings.Builder createDataTableSettings() { + return getStubSettingsBuilder().createDataTableSettings(); + } + + /** Returns the builder for the settings used for calls to listDataTables. */ + public PagedCallSettings.Builder< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse> + listDataTablesSettings() { + return getStubSettingsBuilder().listDataTablesSettings(); + } + + /** Returns the builder for the settings used for calls to getDataTable. */ + public UnaryCallSettings.Builder getDataTableSettings() { + return getStubSettingsBuilder().getDataTableSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataTable. */ + public UnaryCallSettings.Builder updateDataTableSettings() { + return getStubSettingsBuilder().updateDataTableSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataTable. */ + public UnaryCallSettings.Builder deleteDataTableSettings() { + return getStubSettingsBuilder().deleteDataTableSettings(); + } + + /** Returns the builder for the settings used for calls to createDataTableRow. */ + public UnaryCallSettings.Builder + createDataTableRowSettings() { + return getStubSettingsBuilder().createDataTableRowSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataTableRow. */ + public UnaryCallSettings.Builder + updateDataTableRowSettings() { + return getStubSettingsBuilder().updateDataTableRowSettings(); + } + + /** Returns the builder for the settings used for calls to listDataTableRows. */ + public PagedCallSettings.Builder< + ListDataTableRowsRequest, ListDataTableRowsResponse, ListDataTableRowsPagedResponse> + listDataTableRowsSettings() { + return getStubSettingsBuilder().listDataTableRowsSettings(); + } + + /** Returns the builder for the settings used for calls to getDataTableRow. */ + public UnaryCallSettings.Builder + getDataTableRowSettings() { + return getStubSettingsBuilder().getDataTableRowSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataTableRow. */ + public UnaryCallSettings.Builder + deleteDataTableRowSettings() { + return getStubSettingsBuilder().deleteDataTableRowSettings(); + } + + /** Returns the builder for the settings used for calls to bulkCreateDataTableRows. */ + public UnaryCallSettings.Builder< + BulkCreateDataTableRowsRequest, BulkCreateDataTableRowsResponse> + bulkCreateDataTableRowsSettings() { + return getStubSettingsBuilder().bulkCreateDataTableRowsSettings(); + } + + /** Returns the builder for the settings used for calls to bulkGetDataTableRows. */ + public UnaryCallSettings.Builder + bulkGetDataTableRowsSettings() { + return getStubSettingsBuilder().bulkGetDataTableRowsSettings(); + } + + /** Returns the builder for the settings used for calls to bulkReplaceDataTableRows. */ + public UnaryCallSettings.Builder< + BulkReplaceDataTableRowsRequest, BulkReplaceDataTableRowsResponse> + bulkReplaceDataTableRowsSettings() { + return getStubSettingsBuilder().bulkReplaceDataTableRowsSettings(); + } + + /** Returns the builder for the settings used for calls to bulkUpdateDataTableRows. */ + public UnaryCallSettings.Builder< + BulkUpdateDataTableRowsRequest, BulkUpdateDataTableRowsResponse> + bulkUpdateDataTableRowsSettings() { + return getStubSettingsBuilder().bulkUpdateDataTableRowsSettings(); + } + + /** Returns the builder for the settings used for calls to getDataTableOperationErrors. */ + public UnaryCallSettings.Builder + getDataTableOperationErrorsSettings() { + return getStubSettingsBuilder().getDataTableOperationErrorsSettings(); + } + + @Override + public DataTableServiceSettings build() throws IOException { + return new DataTableServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json index 78faf9b4eb86..be32a116d6e9 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json @@ -44,6 +44,60 @@ } } }, + "DataTableService": { + "clients": { + "grpc": { + "libraryClient": "DataTableServiceClient", + "rpcs": { + "BulkCreateDataTableRows": { + "methods": ["bulkCreateDataTableRows", "bulkCreateDataTableRows", "bulkCreateDataTableRows", "bulkCreateDataTableRowsCallable"] + }, + "BulkGetDataTableRows": { + "methods": ["bulkGetDataTableRows", "bulkGetDataTableRows", "bulkGetDataTableRows", "bulkGetDataTableRowsCallable"] + }, + "BulkReplaceDataTableRows": { + "methods": ["bulkReplaceDataTableRows", "bulkReplaceDataTableRows", "bulkReplaceDataTableRows", "bulkReplaceDataTableRowsCallable"] + }, + "BulkUpdateDataTableRows": { + "methods": ["bulkUpdateDataTableRows", "bulkUpdateDataTableRows", "bulkUpdateDataTableRows", "bulkUpdateDataTableRowsCallable"] + }, + "CreateDataTable": { + "methods": ["createDataTable", "createDataTable", "createDataTable", "createDataTableCallable"] + }, + "CreateDataTableRow": { + "methods": ["createDataTableRow", "createDataTableRow", "createDataTableRow", "createDataTableRowCallable"] + }, + "DeleteDataTable": { + "methods": ["deleteDataTable", "deleteDataTable", "deleteDataTable", "deleteDataTableCallable"] + }, + "DeleteDataTableRow": { + "methods": ["deleteDataTableRow", "deleteDataTableRow", "deleteDataTableRow", "deleteDataTableRowCallable"] + }, + "GetDataTable": { + "methods": ["getDataTable", "getDataTable", "getDataTable", "getDataTableCallable"] + }, + "GetDataTableOperationErrors": { + "methods": ["getDataTableOperationErrors", "getDataTableOperationErrors", "getDataTableOperationErrors", "getDataTableOperationErrorsCallable"] + }, + "GetDataTableRow": { + "methods": ["getDataTableRow", "getDataTableRow", "getDataTableRow", "getDataTableRowCallable"] + }, + "ListDataTableRows": { + "methods": ["listDataTableRows", "listDataTableRows", "listDataTableRows", "listDataTableRowsPagedCallable", "listDataTableRowsCallable"] + }, + "ListDataTables": { + "methods": ["listDataTables", "listDataTables", "listDataTables", "listDataTablesPagedCallable", "listDataTablesCallable"] + }, + "UpdateDataTable": { + "methods": ["updateDataTable", "updateDataTable", "updateDataTableCallable"] + }, + "UpdateDataTableRow": { + "methods": ["updateDataTableRow", "updateDataTableRow", "updateDataTableRowCallable"] + } + } + } + } + }, "EntityService": { "clients": { "grpc": { diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java index ad77ec82d9ea..651406dd3777 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java @@ -43,6 +43,26 @@ * } * } * + *

======================= DataTableServiceClient ======================= + * + *

Service Description: DataTableManager provides an interface for managing data tables. + * + *

Sample for DataTableServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
+ *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   DataTable dataTable = DataTable.newBuilder().build();
+ *   String dataTableId = "dataTableId1260854911";
+ *   DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId);
+ * }
+ * }
+ * *

======================= EntityServiceClient ======================= * *

Service Description: EntityService contains apis for finding entities. diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStub.java new file mode 100644 index 000000000000..425bd2643a6d --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStub.java @@ -0,0 +1,139 @@ +/* + * 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.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTableRowsPagedResponse; +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTablesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRequest; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DeleteDataTableRequest; +import com.google.cloud.chronicle.v1.DeleteDataTableRowRequest; +import com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest; +import com.google.cloud.chronicle.v1.GetDataTableRequest; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsResponse; +import com.google.cloud.chronicle.v1.ListDataTablesRequest; +import com.google.cloud.chronicle.v1.ListDataTablesResponse; +import com.google.cloud.chronicle.v1.UpdateDataTableRequest; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DataTableService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DataTableServiceStub implements BackgroundResource { + + public UnaryCallable createDataTableCallable() { + throw new UnsupportedOperationException("Not implemented: createDataTableCallable()"); + } + + public UnaryCallable + listDataTablesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDataTablesPagedCallable()"); + } + + public UnaryCallable listDataTablesCallable() { + throw new UnsupportedOperationException("Not implemented: listDataTablesCallable()"); + } + + public UnaryCallable getDataTableCallable() { + throw new UnsupportedOperationException("Not implemented: getDataTableCallable()"); + } + + public UnaryCallable updateDataTableCallable() { + throw new UnsupportedOperationException("Not implemented: updateDataTableCallable()"); + } + + public UnaryCallable deleteDataTableCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDataTableCallable()"); + } + + public UnaryCallable createDataTableRowCallable() { + throw new UnsupportedOperationException("Not implemented: createDataTableRowCallable()"); + } + + public UnaryCallable updateDataTableRowCallable() { + throw new UnsupportedOperationException("Not implemented: updateDataTableRowCallable()"); + } + + public UnaryCallable + listDataTableRowsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDataTableRowsPagedCallable()"); + } + + public UnaryCallable + listDataTableRowsCallable() { + throw new UnsupportedOperationException("Not implemented: listDataTableRowsCallable()"); + } + + public UnaryCallable getDataTableRowCallable() { + throw new UnsupportedOperationException("Not implemented: getDataTableRowCallable()"); + } + + public UnaryCallable deleteDataTableRowCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDataTableRowCallable()"); + } + + public UnaryCallable + bulkCreateDataTableRowsCallable() { + throw new UnsupportedOperationException("Not implemented: bulkCreateDataTableRowsCallable()"); + } + + public UnaryCallable + bulkGetDataTableRowsCallable() { + throw new UnsupportedOperationException("Not implemented: bulkGetDataTableRowsCallable()"); + } + + public UnaryCallable + bulkReplaceDataTableRowsCallable() { + throw new UnsupportedOperationException("Not implemented: bulkReplaceDataTableRowsCallable()"); + } + + public UnaryCallable + bulkUpdateDataTableRowsCallable() { + throw new UnsupportedOperationException("Not implemented: bulkUpdateDataTableRowsCallable()"); + } + + public UnaryCallable + getDataTableOperationErrorsCallable() { + throw new UnsupportedOperationException( + "Not implemented: getDataTableOperationErrorsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java new file mode 100644 index 000000000000..8f346b9396dc --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java @@ -0,0 +1,879 @@ +/* + * 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.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTableRowsPagedResponse; +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTablesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRequest; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DeleteDataTableRequest; +import com.google.cloud.chronicle.v1.DeleteDataTableRowRequest; +import com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest; +import com.google.cloud.chronicle.v1.GetDataTableRequest; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsResponse; +import com.google.cloud.chronicle.v1.ListDataTablesRequest; +import com.google.cloud.chronicle.v1.ListDataTablesResponse; +import com.google.cloud.chronicle.v1.UpdateDataTableRequest; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataTableServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataTableServiceStubSettings.Builder dataTableServiceSettingsBuilder =
+ *     DataTableServiceStubSettings.newBuilder();
+ * dataTableServiceSettingsBuilder
+ *     .createDataTableSettings()
+ *     .setRetrySettings(
+ *         dataTableServiceSettingsBuilder
+ *             .createDataTableSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DataTableServiceStubSettings dataTableServiceSettings = dataTableServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class DataTableServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings createDataTableSettings; + private final PagedCallSettings< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse> + listDataTablesSettings; + private final UnaryCallSettings getDataTableSettings; + private final UnaryCallSettings updateDataTableSettings; + private final UnaryCallSettings deleteDataTableSettings; + private final UnaryCallSettings + createDataTableRowSettings; + private final UnaryCallSettings + updateDataTableRowSettings; + private final PagedCallSettings< + ListDataTableRowsRequest, ListDataTableRowsResponse, ListDataTableRowsPagedResponse> + listDataTableRowsSettings; + private final UnaryCallSettings getDataTableRowSettings; + private final UnaryCallSettings deleteDataTableRowSettings; + private final UnaryCallSettings + bulkCreateDataTableRowsSettings; + private final UnaryCallSettings + bulkGetDataTableRowsSettings; + private final UnaryCallSettings + bulkReplaceDataTableRowsSettings; + private final UnaryCallSettings + bulkUpdateDataTableRowsSettings; + private final UnaryCallSettings + getDataTableOperationErrorsSettings; + + private static final PagedListDescriptor + LIST_DATA_TABLES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDataTablesRequest injectToken(ListDataTablesRequest payload, String token) { + return ListDataTablesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDataTablesRequest injectPageSize( + ListDataTablesRequest payload, int pageSize) { + return ListDataTablesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDataTablesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDataTablesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDataTablesResponse payload) { + return payload.getDataTablesList(); + } + }; + + private static final PagedListDescriptor< + ListDataTableRowsRequest, ListDataTableRowsResponse, DataTableRow> + LIST_DATA_TABLE_ROWS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDataTableRowsRequest, ListDataTableRowsResponse, DataTableRow>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDataTableRowsRequest injectToken( + ListDataTableRowsRequest payload, String token) { + return ListDataTableRowsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDataTableRowsRequest injectPageSize( + ListDataTableRowsRequest payload, int pageSize) { + return ListDataTableRowsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDataTableRowsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDataTableRowsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDataTableRowsResponse payload) { + return payload.getDataTableRowsList(); + } + }; + + private static final PagedListResponseFactory< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse> + LIST_DATA_TABLES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDataTablesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DATA_TABLES_PAGE_STR_DESC, request, context); + return ListDataTablesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDataTableRowsRequest, ListDataTableRowsResponse, ListDataTableRowsPagedResponse> + LIST_DATA_TABLE_ROWS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDataTableRowsRequest, + ListDataTableRowsResponse, + ListDataTableRowsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDataTableRowsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DATA_TABLE_ROWS_PAGE_STR_DESC, request, context); + return ListDataTableRowsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createDataTable. */ + public UnaryCallSettings createDataTableSettings() { + return createDataTableSettings; + } + + /** Returns the object with the settings used for calls to listDataTables. */ + public PagedCallSettings< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse> + listDataTablesSettings() { + return listDataTablesSettings; + } + + /** Returns the object with the settings used for calls to getDataTable. */ + public UnaryCallSettings getDataTableSettings() { + return getDataTableSettings; + } + + /** Returns the object with the settings used for calls to updateDataTable. */ + public UnaryCallSettings updateDataTableSettings() { + return updateDataTableSettings; + } + + /** Returns the object with the settings used for calls to deleteDataTable. */ + public UnaryCallSettings deleteDataTableSettings() { + return deleteDataTableSettings; + } + + /** Returns the object with the settings used for calls to createDataTableRow. */ + public UnaryCallSettings createDataTableRowSettings() { + return createDataTableRowSettings; + } + + /** Returns the object with the settings used for calls to updateDataTableRow. */ + public UnaryCallSettings updateDataTableRowSettings() { + return updateDataTableRowSettings; + } + + /** Returns the object with the settings used for calls to listDataTableRows. */ + public PagedCallSettings< + ListDataTableRowsRequest, ListDataTableRowsResponse, ListDataTableRowsPagedResponse> + listDataTableRowsSettings() { + return listDataTableRowsSettings; + } + + /** Returns the object with the settings used for calls to getDataTableRow. */ + public UnaryCallSettings getDataTableRowSettings() { + return getDataTableRowSettings; + } + + /** Returns the object with the settings used for calls to deleteDataTableRow. */ + public UnaryCallSettings deleteDataTableRowSettings() { + return deleteDataTableRowSettings; + } + + /** Returns the object with the settings used for calls to bulkCreateDataTableRows. */ + public UnaryCallSettings + bulkCreateDataTableRowsSettings() { + return bulkCreateDataTableRowsSettings; + } + + /** Returns the object with the settings used for calls to bulkGetDataTableRows. */ + public UnaryCallSettings + bulkGetDataTableRowsSettings() { + return bulkGetDataTableRowsSettings; + } + + /** Returns the object with the settings used for calls to bulkReplaceDataTableRows. */ + public UnaryCallSettings + bulkReplaceDataTableRowsSettings() { + return bulkReplaceDataTableRowsSettings; + } + + /** Returns the object with the settings used for calls to bulkUpdateDataTableRows. */ + public UnaryCallSettings + bulkUpdateDataTableRowsSettings() { + return bulkUpdateDataTableRowsSettings; + } + + /** Returns the object with the settings used for calls to getDataTableOperationErrors. */ + public UnaryCallSettings + getDataTableOperationErrorsSettings() { + return getDataTableOperationErrorsSettings; + } + + public DataTableServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDataTableServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDataTableServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataTableServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataTableServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataTableServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataTableServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createDataTableSettings = settingsBuilder.createDataTableSettings().build(); + listDataTablesSettings = settingsBuilder.listDataTablesSettings().build(); + getDataTableSettings = settingsBuilder.getDataTableSettings().build(); + updateDataTableSettings = settingsBuilder.updateDataTableSettings().build(); + deleteDataTableSettings = settingsBuilder.deleteDataTableSettings().build(); + createDataTableRowSettings = settingsBuilder.createDataTableRowSettings().build(); + updateDataTableRowSettings = settingsBuilder.updateDataTableRowSettings().build(); + listDataTableRowsSettings = settingsBuilder.listDataTableRowsSettings().build(); + getDataTableRowSettings = settingsBuilder.getDataTableRowSettings().build(); + deleteDataTableRowSettings = settingsBuilder.deleteDataTableRowSettings().build(); + bulkCreateDataTableRowsSettings = settingsBuilder.bulkCreateDataTableRowsSettings().build(); + bulkGetDataTableRowsSettings = settingsBuilder.bulkGetDataTableRowsSettings().build(); + bulkReplaceDataTableRowsSettings = settingsBuilder.bulkReplaceDataTableRowsSettings().build(); + bulkUpdateDataTableRowsSettings = settingsBuilder.bulkUpdateDataTableRowsSettings().build(); + getDataTableOperationErrorsSettings = + settingsBuilder.getDataTableOperationErrorsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for DataTableServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createDataTableSettings; + private final PagedCallSettings.Builder< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse> + listDataTablesSettings; + private final UnaryCallSettings.Builder getDataTableSettings; + private final UnaryCallSettings.Builder + updateDataTableSettings; + private final UnaryCallSettings.Builder deleteDataTableSettings; + private final UnaryCallSettings.Builder + createDataTableRowSettings; + private final UnaryCallSettings.Builder + updateDataTableRowSettings; + private final PagedCallSettings.Builder< + ListDataTableRowsRequest, ListDataTableRowsResponse, ListDataTableRowsPagedResponse> + listDataTableRowsSettings; + private final UnaryCallSettings.Builder + getDataTableRowSettings; + private final UnaryCallSettings.Builder + deleteDataTableRowSettings; + private final UnaryCallSettings.Builder< + BulkCreateDataTableRowsRequest, BulkCreateDataTableRowsResponse> + bulkCreateDataTableRowsSettings; + private final UnaryCallSettings.Builder< + BulkGetDataTableRowsRequest, BulkGetDataTableRowsResponse> + bulkGetDataTableRowsSettings; + private final UnaryCallSettings.Builder< + BulkReplaceDataTableRowsRequest, BulkReplaceDataTableRowsResponse> + bulkReplaceDataTableRowsSettings; + private final UnaryCallSettings.Builder< + BulkUpdateDataTableRowsRequest, BulkUpdateDataTableRowsResponse> + bulkUpdateDataTableRowsSettings; + private final UnaryCallSettings.Builder< + GetDataTableOperationErrorsRequest, DataTableOperationErrors> + getDataTableOperationErrorsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_7_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_6_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_7_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_6_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createDataTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDataTablesSettings = PagedCallSettings.newBuilder(LIST_DATA_TABLES_PAGE_STR_FACT); + getDataTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDataTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDataTableRowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataTableRowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDataTableRowsSettings = PagedCallSettings.newBuilder(LIST_DATA_TABLE_ROWS_PAGE_STR_FACT); + getDataTableRowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDataTableRowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bulkCreateDataTableRowsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bulkGetDataTableRowsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bulkReplaceDataTableRowsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bulkUpdateDataTableRowsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDataTableOperationErrorsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDataTableSettings, + listDataTablesSettings, + getDataTableSettings, + updateDataTableSettings, + deleteDataTableSettings, + createDataTableRowSettings, + updateDataTableRowSettings, + listDataTableRowsSettings, + getDataTableRowSettings, + deleteDataTableRowSettings, + bulkCreateDataTableRowsSettings, + bulkGetDataTableRowsSettings, + bulkReplaceDataTableRowsSettings, + bulkUpdateDataTableRowsSettings, + getDataTableOperationErrorsSettings); + initDefaults(this); + } + + protected Builder(DataTableServiceStubSettings settings) { + super(settings); + + createDataTableSettings = settings.createDataTableSettings.toBuilder(); + listDataTablesSettings = settings.listDataTablesSettings.toBuilder(); + getDataTableSettings = settings.getDataTableSettings.toBuilder(); + updateDataTableSettings = settings.updateDataTableSettings.toBuilder(); + deleteDataTableSettings = settings.deleteDataTableSettings.toBuilder(); + createDataTableRowSettings = settings.createDataTableRowSettings.toBuilder(); + updateDataTableRowSettings = settings.updateDataTableRowSettings.toBuilder(); + listDataTableRowsSettings = settings.listDataTableRowsSettings.toBuilder(); + getDataTableRowSettings = settings.getDataTableRowSettings.toBuilder(); + deleteDataTableRowSettings = settings.deleteDataTableRowSettings.toBuilder(); + bulkCreateDataTableRowsSettings = settings.bulkCreateDataTableRowsSettings.toBuilder(); + bulkGetDataTableRowsSettings = settings.bulkGetDataTableRowsSettings.toBuilder(); + bulkReplaceDataTableRowsSettings = settings.bulkReplaceDataTableRowsSettings.toBuilder(); + bulkUpdateDataTableRowsSettings = settings.bulkUpdateDataTableRowsSettings.toBuilder(); + getDataTableOperationErrorsSettings = + settings.getDataTableOperationErrorsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDataTableSettings, + listDataTablesSettings, + getDataTableSettings, + updateDataTableSettings, + deleteDataTableSettings, + createDataTableRowSettings, + updateDataTableRowSettings, + listDataTableRowsSettings, + getDataTableRowSettings, + deleteDataTableRowSettings, + bulkCreateDataTableRowsSettings, + bulkGetDataTableRowsSettings, + bulkReplaceDataTableRowsSettings, + bulkUpdateDataTableRowsSettings, + getDataTableOperationErrorsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createDataTableSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .listDataTablesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + + builder + .getDataTableSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + + builder + .updateDataTableSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .deleteDataTableSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .createDataTableRowSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .updateDataTableRowSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .listDataTableRowsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + + builder + .getDataTableRowSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + + builder + .deleteDataTableRowSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .bulkCreateDataTableRowsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .bulkGetDataTableRowsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + + builder + .bulkReplaceDataTableRowsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .bulkUpdateDataTableRowsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")); + + builder + .getDataTableOperationErrorsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createDataTable. */ + public UnaryCallSettings.Builder createDataTableSettings() { + return createDataTableSettings; + } + + /** Returns the builder for the settings used for calls to listDataTables. */ + public PagedCallSettings.Builder< + ListDataTablesRequest, ListDataTablesResponse, ListDataTablesPagedResponse> + listDataTablesSettings() { + return listDataTablesSettings; + } + + /** Returns the builder for the settings used for calls to getDataTable. */ + public UnaryCallSettings.Builder getDataTableSettings() { + return getDataTableSettings; + } + + /** Returns the builder for the settings used for calls to updateDataTable. */ + public UnaryCallSettings.Builder updateDataTableSettings() { + return updateDataTableSettings; + } + + /** Returns the builder for the settings used for calls to deleteDataTable. */ + public UnaryCallSettings.Builder deleteDataTableSettings() { + return deleteDataTableSettings; + } + + /** Returns the builder for the settings used for calls to createDataTableRow. */ + public UnaryCallSettings.Builder + createDataTableRowSettings() { + return createDataTableRowSettings; + } + + /** Returns the builder for the settings used for calls to updateDataTableRow. */ + public UnaryCallSettings.Builder + updateDataTableRowSettings() { + return updateDataTableRowSettings; + } + + /** Returns the builder for the settings used for calls to listDataTableRows. */ + public PagedCallSettings.Builder< + ListDataTableRowsRequest, ListDataTableRowsResponse, ListDataTableRowsPagedResponse> + listDataTableRowsSettings() { + return listDataTableRowsSettings; + } + + /** Returns the builder for the settings used for calls to getDataTableRow. */ + public UnaryCallSettings.Builder + getDataTableRowSettings() { + return getDataTableRowSettings; + } + + /** Returns the builder for the settings used for calls to deleteDataTableRow. */ + public UnaryCallSettings.Builder + deleteDataTableRowSettings() { + return deleteDataTableRowSettings; + } + + /** Returns the builder for the settings used for calls to bulkCreateDataTableRows. */ + public UnaryCallSettings.Builder< + BulkCreateDataTableRowsRequest, BulkCreateDataTableRowsResponse> + bulkCreateDataTableRowsSettings() { + return bulkCreateDataTableRowsSettings; + } + + /** Returns the builder for the settings used for calls to bulkGetDataTableRows. */ + public UnaryCallSettings.Builder + bulkGetDataTableRowsSettings() { + return bulkGetDataTableRowsSettings; + } + + /** Returns the builder for the settings used for calls to bulkReplaceDataTableRows. */ + public UnaryCallSettings.Builder< + BulkReplaceDataTableRowsRequest, BulkReplaceDataTableRowsResponse> + bulkReplaceDataTableRowsSettings() { + return bulkReplaceDataTableRowsSettings; + } + + /** Returns the builder for the settings used for calls to bulkUpdateDataTableRows. */ + public UnaryCallSettings.Builder< + BulkUpdateDataTableRowsRequest, BulkUpdateDataTableRowsResponse> + bulkUpdateDataTableRowsSettings() { + return bulkUpdateDataTableRowsSettings; + } + + /** Returns the builder for the settings used for calls to getDataTableOperationErrors. */ + public UnaryCallSettings.Builder + getDataTableOperationErrorsSettings() { + return getDataTableOperationErrorsSettings; + } + + @Override + public DataTableServiceStubSettings build() throws IOException { + return new DataTableServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDataTableServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDataTableServiceCallableFactory.java new file mode 100644 index 000000000000..4b204a82b13d --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDataTableServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DataTableService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDataTableServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDataTableServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDataTableServiceStub.java new file mode 100644 index 000000000000..9443d55b3268 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcDataTableServiceStub.java @@ -0,0 +1,706 @@ +/* + * 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.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTableRowsPagedResponse; +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTablesPagedResponse; + +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.chronicle.v1.BulkCreateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRequest; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DeleteDataTableRequest; +import com.google.cloud.chronicle.v1.DeleteDataTableRowRequest; +import com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest; +import com.google.cloud.chronicle.v1.GetDataTableRequest; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsResponse; +import com.google.cloud.chronicle.v1.ListDataTablesRequest; +import com.google.cloud.chronicle.v1.ListDataTablesResponse; +import com.google.cloud.chronicle.v1.UpdateDataTableRequest; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DataTableService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDataTableServiceStub extends DataTableServiceStub { + private static final MethodDescriptor + createDataTableMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/CreateDataTable") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDataTableRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataTable.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listDataTablesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/ListDataTables") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataTablesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataTablesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getDataTableMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/GetDataTable") + .setRequestMarshaller(ProtoUtils.marshaller(GetDataTableRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataTable.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateDataTableMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/UpdateDataTable") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataTableRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataTable.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteDataTableMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/DeleteDataTable") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDataTableRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createDataTableRowMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/CreateDataTableRow") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDataTableRowRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataTableRow.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateDataTableRowMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/UpdateDataTableRow") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataTableRowRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataTableRow.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listDataTableRowsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/ListDataTableRows") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataTableRowsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataTableRowsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getDataTableRowMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/GetDataTableRow") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataTableRowRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataTableRow.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteDataTableRowMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/DeleteDataTableRow") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDataTableRowRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + BulkCreateDataTableRowsRequest, BulkCreateDataTableRowsResponse> + bulkCreateDataTableRowsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows") + .setRequestMarshaller( + ProtoUtils.marshaller(BulkCreateDataTableRowsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BulkCreateDataTableRowsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + bulkGetDataTableRowsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/BulkGetDataTableRows") + .setRequestMarshaller( + ProtoUtils.marshaller(BulkGetDataTableRowsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BulkGetDataTableRowsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + BulkReplaceDataTableRowsRequest, BulkReplaceDataTableRowsResponse> + bulkReplaceDataTableRowsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/BulkReplaceDataTableRows") + .setRequestMarshaller( + ProtoUtils.marshaller(BulkReplaceDataTableRowsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BulkReplaceDataTableRowsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + BulkUpdateDataTableRowsRequest, BulkUpdateDataTableRowsResponse> + bulkUpdateDataTableRowsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/BulkUpdateDataTableRows") + .setRequestMarshaller( + ProtoUtils.marshaller(BulkUpdateDataTableRowsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BulkUpdateDataTableRowsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetDataTableOperationErrorsRequest, DataTableOperationErrors> + getDataTableOperationErrorsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/GetDataTableOperationErrors") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataTableOperationErrorsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataTableOperationErrors.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable createDataTableCallable; + private final UnaryCallable listDataTablesCallable; + private final UnaryCallable + listDataTablesPagedCallable; + private final UnaryCallable getDataTableCallable; + private final UnaryCallable updateDataTableCallable; + private final UnaryCallable deleteDataTableCallable; + private final UnaryCallable createDataTableRowCallable; + private final UnaryCallable updateDataTableRowCallable; + private final UnaryCallable + listDataTableRowsCallable; + private final UnaryCallable + listDataTableRowsPagedCallable; + private final UnaryCallable getDataTableRowCallable; + private final UnaryCallable deleteDataTableRowCallable; + private final UnaryCallable + bulkCreateDataTableRowsCallable; + private final UnaryCallable + bulkGetDataTableRowsCallable; + private final UnaryCallable + bulkReplaceDataTableRowsCallable; + private final UnaryCallable + bulkUpdateDataTableRowsCallable; + private final UnaryCallable + getDataTableOperationErrorsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDataTableServiceStub create(DataTableServiceStubSettings settings) + throws IOException { + return new GrpcDataTableServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDataTableServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDataTableServiceStub( + DataTableServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDataTableServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDataTableServiceStub( + DataTableServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDataTableServiceStub, 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 GrpcDataTableServiceStub( + DataTableServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDataTableServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDataTableServiceStub, 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 GrpcDataTableServiceStub( + DataTableServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createDataTableTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDataTableMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + listDataTablesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataTablesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getDataTableTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataTableMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateDataTableTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataTableMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_table.name", String.valueOf(request.getDataTable().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDataTableTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDataTableMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createDataTableRowTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDataTableRowMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateDataTableRowTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataTableRowMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_table_row.name", String.valueOf(request.getDataTableRow().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDataTableRowsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataTableRowsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getDataTableRowTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataTableRowMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteDataTableRowTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDataTableRowMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + bulkCreateDataTableRowsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(bulkCreateDataTableRowsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + bulkGetDataTableRowsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(bulkGetDataTableRowsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + bulkReplaceDataTableRowsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(bulkReplaceDataTableRowsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + bulkUpdateDataTableRowsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(bulkUpdateDataTableRowsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getDataTableOperationErrorsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getDataTableOperationErrorsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createDataTableCallable = + callableFactory.createUnaryCallable( + createDataTableTransportSettings, settings.createDataTableSettings(), clientContext); + this.listDataTablesCallable = + callableFactory.createUnaryCallable( + listDataTablesTransportSettings, settings.listDataTablesSettings(), clientContext); + this.listDataTablesPagedCallable = + callableFactory.createPagedCallable( + listDataTablesTransportSettings, settings.listDataTablesSettings(), clientContext); + this.getDataTableCallable = + callableFactory.createUnaryCallable( + getDataTableTransportSettings, settings.getDataTableSettings(), clientContext); + this.updateDataTableCallable = + callableFactory.createUnaryCallable( + updateDataTableTransportSettings, settings.updateDataTableSettings(), clientContext); + this.deleteDataTableCallable = + callableFactory.createUnaryCallable( + deleteDataTableTransportSettings, settings.deleteDataTableSettings(), clientContext); + this.createDataTableRowCallable = + callableFactory.createUnaryCallable( + createDataTableRowTransportSettings, + settings.createDataTableRowSettings(), + clientContext); + this.updateDataTableRowCallable = + callableFactory.createUnaryCallable( + updateDataTableRowTransportSettings, + settings.updateDataTableRowSettings(), + clientContext); + this.listDataTableRowsCallable = + callableFactory.createUnaryCallable( + listDataTableRowsTransportSettings, + settings.listDataTableRowsSettings(), + clientContext); + this.listDataTableRowsPagedCallable = + callableFactory.createPagedCallable( + listDataTableRowsTransportSettings, + settings.listDataTableRowsSettings(), + clientContext); + this.getDataTableRowCallable = + callableFactory.createUnaryCallable( + getDataTableRowTransportSettings, settings.getDataTableRowSettings(), clientContext); + this.deleteDataTableRowCallable = + callableFactory.createUnaryCallable( + deleteDataTableRowTransportSettings, + settings.deleteDataTableRowSettings(), + clientContext); + this.bulkCreateDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkCreateDataTableRowsTransportSettings, + settings.bulkCreateDataTableRowsSettings(), + clientContext); + this.bulkGetDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkGetDataTableRowsTransportSettings, + settings.bulkGetDataTableRowsSettings(), + clientContext); + this.bulkReplaceDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkReplaceDataTableRowsTransportSettings, + settings.bulkReplaceDataTableRowsSettings(), + clientContext); + this.bulkUpdateDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkUpdateDataTableRowsTransportSettings, + settings.bulkUpdateDataTableRowsSettings(), + clientContext); + this.getDataTableOperationErrorsCallable = + callableFactory.createUnaryCallable( + getDataTableOperationErrorsTransportSettings, + settings.getDataTableOperationErrorsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createDataTableCallable() { + return createDataTableCallable; + } + + @Override + public UnaryCallable listDataTablesCallable() { + return listDataTablesCallable; + } + + @Override + public UnaryCallable + listDataTablesPagedCallable() { + return listDataTablesPagedCallable; + } + + @Override + public UnaryCallable getDataTableCallable() { + return getDataTableCallable; + } + + @Override + public UnaryCallable updateDataTableCallable() { + return updateDataTableCallable; + } + + @Override + public UnaryCallable deleteDataTableCallable() { + return deleteDataTableCallable; + } + + @Override + public UnaryCallable createDataTableRowCallable() { + return createDataTableRowCallable; + } + + @Override + public UnaryCallable updateDataTableRowCallable() { + return updateDataTableRowCallable; + } + + @Override + public UnaryCallable + listDataTableRowsCallable() { + return listDataTableRowsCallable; + } + + @Override + public UnaryCallable + listDataTableRowsPagedCallable() { + return listDataTableRowsPagedCallable; + } + + @Override + public UnaryCallable getDataTableRowCallable() { + return getDataTableRowCallable; + } + + @Override + public UnaryCallable deleteDataTableRowCallable() { + return deleteDataTableRowCallable; + } + + @Override + public UnaryCallable + bulkCreateDataTableRowsCallable() { + return bulkCreateDataTableRowsCallable; + } + + @Override + public UnaryCallable + bulkGetDataTableRowsCallable() { + return bulkGetDataTableRowsCallable; + } + + @Override + public UnaryCallable + bulkReplaceDataTableRowsCallable() { + return bulkReplaceDataTableRowsCallable; + } + + @Override + public UnaryCallable + bulkUpdateDataTableRowsCallable() { + return bulkUpdateDataTableRowsCallable; + } + + @Override + public UnaryCallable + getDataTableOperationErrorsCallable() { + return getDataTableOperationErrorsCallable; + } + + @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-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDataTableServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDataTableServiceCallableFactory.java new file mode 100644 index 000000000000..ebf683095e05 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDataTableServiceCallableFactory.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.chronicle.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DataTableService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDataTableServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDataTableServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDataTableServiceStub.java new file mode 100644 index 000000000000..9a901a27c25f --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonDataTableServiceStub.java @@ -0,0 +1,1128 @@ +/* + * 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.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTableRowsPagedResponse; +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTablesPagedResponse; + +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.chronicle.v1.BulkCreateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRequest; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DeleteDataTableRequest; +import com.google.cloud.chronicle.v1.DeleteDataTableRowRequest; +import com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest; +import com.google.cloud.chronicle.v1.GetDataTableRequest; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsResponse; +import com.google.cloud.chronicle.v1.ListDataTablesRequest; +import com.google.cloud.chronicle.v1.ListDataTablesResponse; +import com.google.cloud.chronicle.v1.UpdateDataTableRequest; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DataTableService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDataTableServiceStub extends DataTableServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createDataTableMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/CreateDataTable") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/dataTables", + 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, "dataTableId", request.getDataTableId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataTable", request.getDataTable(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataTable.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDataTablesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/ListDataTables") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/dataTables", + 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, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDataTablesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDataTableMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/GetDataTable") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/dataTables/*}", + 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(DataTable.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDataTableMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/UpdateDataTable") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{dataTable.name=projects/*/locations/*/instances/*/dataTables/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "dataTable.name", request.getDataTable().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("dataTable", request.getDataTable(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataTable.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDataTableMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/DeleteDataTable") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/dataTables/*}", + 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, "force", request.getForce()); + 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 + createDataTableRowMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/CreateDataTableRow") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows", + 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("dataTableRow", request.getDataTableRow(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataTableRow.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDataTableRowMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/UpdateDataTableRow") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{dataTableRow.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "dataTableRow.name", request.getDataTableRow().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("dataTableRow", request.getDataTableRow(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataTableRow.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDataTableRowsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/ListDataTableRows") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDataTableRowsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDataTableRowMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/GetDataTableRow") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}", + 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(DataTableRow.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDataTableRowMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/DeleteDataTableRow") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}", + 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< + BulkCreateDataTableRowsRequest, BulkCreateDataTableRowsResponse> + bulkCreateDataTableRowsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate", + 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(BulkCreateDataTableRowsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BulkGetDataTableRowsRequest, BulkGetDataTableRowsResponse> + bulkGetDataTableRowsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.DataTableService/BulkGetDataTableRows") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet", + 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(BulkGetDataTableRowsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BulkReplaceDataTableRowsRequest, BulkReplaceDataTableRowsResponse> + bulkReplaceDataTableRowsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/BulkReplaceDataTableRows") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace", + 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(BulkReplaceDataTableRowsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BulkUpdateDataTableRowsRequest, BulkUpdateDataTableRowsResponse> + bulkUpdateDataTableRowsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/BulkUpdateDataTableRows") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate", + 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(BulkUpdateDataTableRowsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetDataTableOperationErrorsRequest, DataTableOperationErrors> + getDataTableOperationErrorsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.DataTableService/GetDataTableOperationErrors") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}", + 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(DataTableOperationErrors.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createDataTableCallable; + private final UnaryCallable listDataTablesCallable; + private final UnaryCallable + listDataTablesPagedCallable; + private final UnaryCallable getDataTableCallable; + private final UnaryCallable updateDataTableCallable; + private final UnaryCallable deleteDataTableCallable; + private final UnaryCallable createDataTableRowCallable; + private final UnaryCallable updateDataTableRowCallable; + private final UnaryCallable + listDataTableRowsCallable; + private final UnaryCallable + listDataTableRowsPagedCallable; + private final UnaryCallable getDataTableRowCallable; + private final UnaryCallable deleteDataTableRowCallable; + private final UnaryCallable + bulkCreateDataTableRowsCallable; + private final UnaryCallable + bulkGetDataTableRowsCallable; + private final UnaryCallable + bulkReplaceDataTableRowsCallable; + private final UnaryCallable + bulkUpdateDataTableRowsCallable; + private final UnaryCallable + getDataTableOperationErrorsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDataTableServiceStub create(DataTableServiceStubSettings settings) + throws IOException { + return new HttpJsonDataTableServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDataTableServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDataTableServiceStub( + DataTableServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDataTableServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDataTableServiceStub( + DataTableServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDataTableServiceStub, 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 HttpJsonDataTableServiceStub( + DataTableServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDataTableServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDataTableServiceStub, 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 HttpJsonDataTableServiceStub( + DataTableServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createDataTableTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDataTableMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + listDataTablesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDataTablesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getDataTableTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDataTableMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateDataTableTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDataTableMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_table.name", String.valueOf(request.getDataTable().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteDataTableTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDataTableMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createDataTableRowTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDataTableRowMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateDataTableRowTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDataTableRowMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_table_row.name", + String.valueOf(request.getDataTableRow().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDataTableRowsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDataTableRowsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getDataTableRowTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDataTableRowMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings deleteDataTableRowTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDataTableRowMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + bulkCreateDataTableRowsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(bulkCreateDataTableRowsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + bulkGetDataTableRowsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(bulkGetDataTableRowsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + bulkReplaceDataTableRowsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(bulkReplaceDataTableRowsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + bulkUpdateDataTableRowsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(bulkUpdateDataTableRowsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getDataTableOperationErrorsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getDataTableOperationErrorsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createDataTableCallable = + callableFactory.createUnaryCallable( + createDataTableTransportSettings, settings.createDataTableSettings(), clientContext); + this.listDataTablesCallable = + callableFactory.createUnaryCallable( + listDataTablesTransportSettings, settings.listDataTablesSettings(), clientContext); + this.listDataTablesPagedCallable = + callableFactory.createPagedCallable( + listDataTablesTransportSettings, settings.listDataTablesSettings(), clientContext); + this.getDataTableCallable = + callableFactory.createUnaryCallable( + getDataTableTransportSettings, settings.getDataTableSettings(), clientContext); + this.updateDataTableCallable = + callableFactory.createUnaryCallable( + updateDataTableTransportSettings, settings.updateDataTableSettings(), clientContext); + this.deleteDataTableCallable = + callableFactory.createUnaryCallable( + deleteDataTableTransportSettings, settings.deleteDataTableSettings(), clientContext); + this.createDataTableRowCallable = + callableFactory.createUnaryCallable( + createDataTableRowTransportSettings, + settings.createDataTableRowSettings(), + clientContext); + this.updateDataTableRowCallable = + callableFactory.createUnaryCallable( + updateDataTableRowTransportSettings, + settings.updateDataTableRowSettings(), + clientContext); + this.listDataTableRowsCallable = + callableFactory.createUnaryCallable( + listDataTableRowsTransportSettings, + settings.listDataTableRowsSettings(), + clientContext); + this.listDataTableRowsPagedCallable = + callableFactory.createPagedCallable( + listDataTableRowsTransportSettings, + settings.listDataTableRowsSettings(), + clientContext); + this.getDataTableRowCallable = + callableFactory.createUnaryCallable( + getDataTableRowTransportSettings, settings.getDataTableRowSettings(), clientContext); + this.deleteDataTableRowCallable = + callableFactory.createUnaryCallable( + deleteDataTableRowTransportSettings, + settings.deleteDataTableRowSettings(), + clientContext); + this.bulkCreateDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkCreateDataTableRowsTransportSettings, + settings.bulkCreateDataTableRowsSettings(), + clientContext); + this.bulkGetDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkGetDataTableRowsTransportSettings, + settings.bulkGetDataTableRowsSettings(), + clientContext); + this.bulkReplaceDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkReplaceDataTableRowsTransportSettings, + settings.bulkReplaceDataTableRowsSettings(), + clientContext); + this.bulkUpdateDataTableRowsCallable = + callableFactory.createUnaryCallable( + bulkUpdateDataTableRowsTransportSettings, + settings.bulkUpdateDataTableRowsSettings(), + clientContext); + this.getDataTableOperationErrorsCallable = + callableFactory.createUnaryCallable( + getDataTableOperationErrorsTransportSettings, + settings.getDataTableOperationErrorsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createDataTableMethodDescriptor); + methodDescriptors.add(listDataTablesMethodDescriptor); + methodDescriptors.add(getDataTableMethodDescriptor); + methodDescriptors.add(updateDataTableMethodDescriptor); + methodDescriptors.add(deleteDataTableMethodDescriptor); + methodDescriptors.add(createDataTableRowMethodDescriptor); + methodDescriptors.add(updateDataTableRowMethodDescriptor); + methodDescriptors.add(listDataTableRowsMethodDescriptor); + methodDescriptors.add(getDataTableRowMethodDescriptor); + methodDescriptors.add(deleteDataTableRowMethodDescriptor); + methodDescriptors.add(bulkCreateDataTableRowsMethodDescriptor); + methodDescriptors.add(bulkGetDataTableRowsMethodDescriptor); + methodDescriptors.add(bulkReplaceDataTableRowsMethodDescriptor); + methodDescriptors.add(bulkUpdateDataTableRowsMethodDescriptor); + methodDescriptors.add(getDataTableOperationErrorsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createDataTableCallable() { + return createDataTableCallable; + } + + @Override + public UnaryCallable listDataTablesCallable() { + return listDataTablesCallable; + } + + @Override + public UnaryCallable + listDataTablesPagedCallable() { + return listDataTablesPagedCallable; + } + + @Override + public UnaryCallable getDataTableCallable() { + return getDataTableCallable; + } + + @Override + public UnaryCallable updateDataTableCallable() { + return updateDataTableCallable; + } + + @Override + public UnaryCallable deleteDataTableCallable() { + return deleteDataTableCallable; + } + + @Override + public UnaryCallable createDataTableRowCallable() { + return createDataTableRowCallable; + } + + @Override + public UnaryCallable updateDataTableRowCallable() { + return updateDataTableRowCallable; + } + + @Override + public UnaryCallable + listDataTableRowsCallable() { + return listDataTableRowsCallable; + } + + @Override + public UnaryCallable + listDataTableRowsPagedCallable() { + return listDataTableRowsPagedCallable; + } + + @Override + public UnaryCallable getDataTableRowCallable() { + return getDataTableRowCallable; + } + + @Override + public UnaryCallable deleteDataTableRowCallable() { + return deleteDataTableRowCallable; + } + + @Override + public UnaryCallable + bulkCreateDataTableRowsCallable() { + return bulkCreateDataTableRowsCallable; + } + + @Override + public UnaryCallable + bulkGetDataTableRowsCallable() { + return bulkGetDataTableRowsCallable; + } + + @Override + public UnaryCallable + bulkReplaceDataTableRowsCallable() { + return bulkReplaceDataTableRowsCallable; + } + + @Override + public UnaryCallable + bulkUpdateDataTableRowsCallable() { + return bulkUpdateDataTableRowsCallable; + } + + @Override + public UnaryCallable + getDataTableOperationErrorsCallable() { + return getDataTableOperationErrorsCallable; + } + + @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-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json index ce4ef50300e0..291eb341ae20 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json +++ b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json @@ -476,6 +476,150 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.CompilationDiagnostic", "queryAllDeclaredConstructors": true, @@ -557,6 +701,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRowRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.CreateDataTableRowRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.CreateReferenceListRequest", "queryAllDeclaredConstructors": true, @@ -683,6 +863,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.DataTable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableColumnInfo$DataTableColumnType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableOperationErrors", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableOperationErrors$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableRow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableRow$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableScopeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableScopeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DataTableUpdateSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest", "queryAllDeclaredConstructors": true, @@ -719,6 +1007,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRowRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.DeleteDataTableRowRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.DeleteRuleRequest", "queryAllDeclaredConstructors": true, @@ -791,6 +1115,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRowRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.GetDataTableRowRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.GetInstanceRequest", "queryAllDeclaredConstructors": true, @@ -1025,6 +1403,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTableRowsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTablesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTablesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTablesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListDataTablesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.ListReferenceListsRequest", "queryAllDeclaredConstructors": true, @@ -1511,6 +1961,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.UpdateDataTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.UpdateDataTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.UpdateDataTableRowRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.UpdateDataTableRowRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.UpdateReferenceListRequest", "queryAllDeclaredConstructors": true, diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DataTableServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DataTableServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..74f5ff4129b0 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DataTableServiceClientHttpJsonTest.java @@ -0,0 +1,1591 @@ +/* + * 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.chronicle.v1; + +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTableRowsPagedResponse; +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTablesPagedResponse; + +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.chronicle.v1.stub.HttpJsonDataTableServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import 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 DataTableServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DataTableServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDataTableServiceStub.getMethodDescriptors(), + DataTableServiceSettings.getDefaultEndpoint()); + DataTableServiceSettings settings = + DataTableServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DataTableServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataTableServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createDataTableTest() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + + DataTable actualResponse = client.createDataTable(parent, dataTable, dataTableId); + 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 createDataTableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + client.createDataTable(parent, dataTable, dataTableId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataTableTest2() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + + DataTable actualResponse = client.createDataTable(parent, dataTable, dataTableId); + 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 createDataTableExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + client.createDataTable(parent, dataTable, dataTableId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTablesTest() throws Exception { + DataTable responsesElement = DataTable.newBuilder().build(); + ListDataTablesResponse expectedResponse = + ListDataTablesResponse.newBuilder() + .setNextPageToken("") + .addAllDataTables(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListDataTablesPagedResponse pagedListResponse = client.listDataTables(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTablesList().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 listDataTablesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listDataTables(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTablesTest2() throws Exception { + DataTable responsesElement = DataTable.newBuilder().build(); + ListDataTablesResponse expectedResponse = + ListDataTablesResponse.newBuilder() + .setNextPageToken("") + .addAllDataTables(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + + ListDataTablesPagedResponse pagedListResponse = client.listDataTables(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTablesList().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 listDataTablesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + client.listDataTables(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableTest() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataTableName name = DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + + DataTable actualResponse = client.getDataTable(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 getDataTableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + client.getDataTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableTest2() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7157/locations/location-7157/instances/instance-7157/dataTables/dataTable-7157"; + + DataTable actualResponse = client.getDataTable(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 getDataTableExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7157/locations/location-7157/instances/instance-7157/dataTables/dataTable-7157"; + client.getDataTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataTableTest() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataTable dataTable = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataTable actualResponse = client.updateDataTable(dataTable, 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 updateDataTableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTable dataTable = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataTable(dataTable, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DataTableName name = DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + boolean force = true; + + client.deleteDataTable(name, force); + + 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 deleteDataTableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + boolean force = true; + client.deleteDataTable(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7157/locations/location-7157/instances/instance-7157/dataTables/dataTable-7157"; + boolean force = true; + + client.deleteDataTable(name, force); + + 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 deleteDataTableExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7157/locations/location-7157/instances/instance-7157/dataTables/dataTable-7157"; + boolean force = true; + client.deleteDataTable(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataTableRowTest() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + + DataTableRow actualResponse = client.createDataTableRow(parent, dataTableRow); + 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 createDataTableRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + client.createDataTableRow(parent, dataTableRow); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataTableRowTest2() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + + DataTableRow actualResponse = client.createDataTableRow(parent, dataTableRow); + 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 createDataTableRowExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + client.createDataTableRow(parent, dataTableRow); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataTableRowTest() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockService.addResponse(expectedResponse); + + DataTableRow dataTableRow = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataTableRow actualResponse = client.updateDataTableRow(dataTableRow, 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 updateDataTableRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableRow dataTableRow = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[DATA_TABLE]", + "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataTableRow(dataTableRow, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTableRowsTest() throws Exception { + DataTableRow responsesElement = DataTableRow.newBuilder().build(); + ListDataTableRowsResponse expectedResponse = + ListDataTableRowsResponse.newBuilder() + .setNextPageToken("") + .addAllDataTableRows(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + + ListDataTableRowsPagedResponse pagedListResponse = client.listDataTableRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTableRowsList().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 listDataTableRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + client.listDataTableRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTableRowsTest2() throws Exception { + DataTableRow responsesElement = DataTableRow.newBuilder().build(); + ListDataTableRowsResponse expectedResponse = + ListDataTableRowsResponse.newBuilder() + .setNextPageToken("") + .addAllDataTableRows(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + + ListDataTableRowsPagedResponse pagedListResponse = client.listDataTableRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTableRowsList().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 listDataTableRowsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + client.listDataTableRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableRowTest() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockService.addResponse(expectedResponse); + + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + + DataTableRow actualResponse = client.getDataTableRow(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 getDataTableRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + client.getDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableRowTest2() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5010/locations/location-5010/instances/instance-5010/dataTables/dataTable-5010/dataTableRows/dataTableRow-5010"; + + DataTableRow actualResponse = client.getDataTableRow(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 getDataTableRowExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5010/locations/location-5010/instances/instance-5010/dataTables/dataTable-5010/dataTableRows/dataTableRow-5010"; + client.getDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableRowTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + + client.deleteDataTableRow(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 deleteDataTableRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + client.deleteDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableRowTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5010/locations/location-5010/instances/instance-5010/dataTables/dataTable-5010/dataTableRows/dataTableRow-5010"; + + client.deleteDataTableRow(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 deleteDataTableRowExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5010/locations/location-5010/instances/instance-5010/dataTables/dataTable-5010/dataTableRows/dataTableRow-5010"; + client.deleteDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkCreateDataTableRowsTest() throws Exception { + BulkCreateDataTableRowsResponse expectedResponse = + BulkCreateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkCreateDataTableRowsResponse actualResponse = + client.bulkCreateDataTableRows(parent, requests); + 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 bulkCreateDataTableRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkCreateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkCreateDataTableRowsTest2() throws Exception { + BulkCreateDataTableRowsResponse expectedResponse = + BulkCreateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + + BulkCreateDataTableRowsResponse actualResponse = + client.bulkCreateDataTableRows(parent, requests); + 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 bulkCreateDataTableRowsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + client.bulkCreateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkGetDataTableRowsTest() throws Exception { + BulkGetDataTableRowsResponse expectedResponse = + BulkGetDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkGetDataTableRowsResponse actualResponse = client.bulkGetDataTableRows(parent, requests); + 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 bulkGetDataTableRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkGetDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkGetDataTableRowsTest2() throws Exception { + BulkGetDataTableRowsResponse expectedResponse = + BulkGetDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + + BulkGetDataTableRowsResponse actualResponse = client.bulkGetDataTableRows(parent, requests); + 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 bulkGetDataTableRowsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + client.bulkGetDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkReplaceDataTableRowsTest() throws Exception { + BulkReplaceDataTableRowsResponse expectedResponse = + BulkReplaceDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkReplaceDataTableRowsResponse actualResponse = + client.bulkReplaceDataTableRows(parent, requests); + 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 bulkReplaceDataTableRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkReplaceDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkReplaceDataTableRowsTest2() throws Exception { + BulkReplaceDataTableRowsResponse expectedResponse = + BulkReplaceDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + + BulkReplaceDataTableRowsResponse actualResponse = + client.bulkReplaceDataTableRows(parent, requests); + 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 bulkReplaceDataTableRowsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + client.bulkReplaceDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkUpdateDataTableRowsTest() throws Exception { + BulkUpdateDataTableRowsResponse expectedResponse = + BulkUpdateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkUpdateDataTableRowsResponse actualResponse = + client.bulkUpdateDataTableRows(parent, requests); + 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 bulkUpdateDataTableRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkUpdateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkUpdateDataTableRowsTest2() throws Exception { + BulkUpdateDataTableRowsResponse expectedResponse = + BulkUpdateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + + BulkUpdateDataTableRowsResponse actualResponse = + client.bulkUpdateDataTableRows(parent, requests); + 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 bulkUpdateDataTableRowsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-90/locations/location-90/instances/instance-90/dataTables/dataTable-90"; + List requests = new ArrayList<>(); + client.bulkUpdateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableOperationErrorsTest() throws Exception { + DataTableOperationErrors expectedResponse = + DataTableOperationErrors.newBuilder() + .setName( + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]") + .toString()) + .addAllRpcErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataTableOperationErrorsName name = + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]"); + + DataTableOperationErrors actualResponse = client.getDataTableOperationErrors(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 getDataTableOperationErrorsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataTableOperationErrorsName name = + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]"); + client.getDataTableOperationErrors(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableOperationErrorsTest2() throws Exception { + DataTableOperationErrors expectedResponse = + DataTableOperationErrors.newBuilder() + .setName( + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]") + .toString()) + .addAllRpcErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8100/locations/location-8100/instances/instance-8100/dataTableOperationErrors/dataTableOperationError-8100"; + + DataTableOperationErrors actualResponse = client.getDataTableOperationErrors(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 getDataTableOperationErrorsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8100/locations/location-8100/instances/instance-8100/dataTableOperationErrors/dataTableOperationError-8100"; + client.getDataTableOperationErrors(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DataTableServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DataTableServiceClientTest.java new file mode 100644 index 000000000000..040ded6fe9bd --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/DataTableServiceClientTest.java @@ -0,0 +1,1372 @@ +/* + * 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.chronicle.v1; + +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTableRowsPagedResponse; +import static com.google.cloud.chronicle.v1.DataTableServiceClient.ListDataTablesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import 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 DataTableServiceClientTest { + private static MockDataTableService mockDataTableService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DataTableServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDataTableService = new MockDataTableService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockDataTableService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DataTableServiceSettings settings = + DataTableServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataTableServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createDataTableTest() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + + DataTable actualResponse = client.createDataTable(parent, dataTable, dataTableId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataTableRequest actualRequest = ((CreateDataTableRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dataTable, actualRequest.getDataTable()); + Assert.assertEquals(dataTableId, actualRequest.getDataTableId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataTableExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + client.createDataTable(parent, dataTable, dataTableId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataTableTest2() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + + DataTable actualResponse = client.createDataTable(parent, dataTable, dataTableId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataTableRequest actualRequest = ((CreateDataTableRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dataTable, actualRequest.getDataTable()); + Assert.assertEquals(dataTableId, actualRequest.getDataTableId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataTableExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + client.createDataTable(parent, dataTable, dataTableId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTablesTest() throws Exception { + DataTable responsesElement = DataTable.newBuilder().build(); + ListDataTablesResponse expectedResponse = + ListDataTablesResponse.newBuilder() + .setNextPageToken("") + .addAllDataTables(Arrays.asList(responsesElement)) + .build(); + mockDataTableService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListDataTablesPagedResponse pagedListResponse = client.listDataTables(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTablesList().get(0), resources.get(0)); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataTablesRequest actualRequest = ((ListDataTablesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataTablesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listDataTables(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTablesTest2() throws Exception { + DataTable responsesElement = DataTable.newBuilder().build(); + ListDataTablesResponse expectedResponse = + ListDataTablesResponse.newBuilder() + .setNextPageToken("") + .addAllDataTables(Arrays.asList(responsesElement)) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDataTablesPagedResponse pagedListResponse = client.listDataTables(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTablesList().get(0), resources.get(0)); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataTablesRequest actualRequest = ((ListDataTablesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataTablesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDataTables(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableTest() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName name = DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + + DataTable actualResponse = client.getDataTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataTableRequest actualRequest = ((GetDataTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataTableExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + client.getDataTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableTest2() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataTable actualResponse = client.getDataTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataTableRequest actualRequest = ((GetDataTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataTableExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String name = "name3373707"; + client.getDataTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataTableTest() throws Exception { + DataTable expectedResponse = + DataTable.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllColumnInfo(new ArrayList()) + .setDataTableUuid("dataTableUuid501169183") + .addAllRules(new ArrayList()) + .setRuleAssociationsCount(-1522562875) + .setRowTimeToLive("rowTimeToLive1780890798") + .setApproximateRowCount(-297926913) + .setScopeInfo(DataTableScopeInfo.newBuilder().build()) + .setUpdateSource(DataTableUpdateSource.forNumber(0)) + .setRowTimeToLiveUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTable dataTable = DataTable.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataTable actualResponse = client.updateDataTable(dataTable, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDataTableRequest actualRequest = ((UpdateDataTableRequest) actualRequests.get(0)); + + Assert.assertEquals(dataTable, actualRequest.getDataTable()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDataTableExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTable dataTable = DataTable.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataTable(dataTable, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName name = DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + boolean force = true; + + client.deleteDataTable(name, force); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataTableRequest actualRequest = ((DeleteDataTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataTableExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + boolean force = true; + client.deleteDataTable(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataTableService.addResponse(expectedResponse); + + String name = "name3373707"; + boolean force = true; + + client.deleteDataTable(name, force); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataTableRequest actualRequest = ((DeleteDataTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataTableExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String name = "name3373707"; + boolean force = true; + client.deleteDataTable(name, force); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataTableRowTest() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + + DataTableRow actualResponse = client.createDataTableRow(parent, dataTableRow); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataTableRowRequest actualRequest = ((CreateDataTableRowRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dataTableRow, actualRequest.getDataTableRow()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataTableRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + client.createDataTableRow(parent, dataTableRow); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataTableRowTest2() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + + DataTableRow actualResponse = client.createDataTableRow(parent, dataTableRow); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataTableRowRequest actualRequest = ((CreateDataTableRowRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dataTableRow, actualRequest.getDataTableRow()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataTableRowExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + client.createDataTableRow(parent, dataTableRow); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataTableRowTest() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataTableRow actualResponse = client.updateDataTableRow(dataTableRow, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDataTableRowRequest actualRequest = ((UpdateDataTableRowRequest) actualRequests.get(0)); + + Assert.assertEquals(dataTableRow, actualRequest.getDataTableRow()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDataTableRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataTableRow(dataTableRow, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTableRowsTest() throws Exception { + DataTableRow responsesElement = DataTableRow.newBuilder().build(); + ListDataTableRowsResponse expectedResponse = + ListDataTableRowsResponse.newBuilder() + .setNextPageToken("") + .addAllDataTableRows(Arrays.asList(responsesElement)) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + + ListDataTableRowsPagedResponse pagedListResponse = client.listDataTableRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTableRowsList().get(0), resources.get(0)); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataTableRowsRequest actualRequest = ((ListDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataTableRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + client.listDataTableRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataTableRowsTest2() throws Exception { + DataTableRow responsesElement = DataTableRow.newBuilder().build(); + ListDataTableRowsResponse expectedResponse = + ListDataTableRowsResponse.newBuilder() + .setNextPageToken("") + .addAllDataTableRows(Arrays.asList(responsesElement)) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDataTableRowsPagedResponse pagedListResponse = client.listDataTableRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataTableRowsList().get(0), resources.get(0)); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataTableRowsRequest actualRequest = ((ListDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataTableRowsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDataTableRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableRowTest() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + + DataTableRow actualResponse = client.getDataTableRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataTableRowRequest actualRequest = ((GetDataTableRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataTableRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + client.getDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableRowTest2() throws Exception { + DataTableRow expectedResponse = + DataTableRow.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString()) + .addAllValues(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRowTimeToLive("rowTimeToLive1780890798") + .build(); + mockDataTableService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataTableRow actualResponse = client.getDataTableRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataTableRowRequest actualRequest = ((GetDataTableRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataTableRowExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String name = "name3373707"; + client.getDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableRowTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + + client.deleteDataTableRow(name); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataTableRowRequest actualRequest = ((DeleteDataTableRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataTableRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + client.deleteDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataTableRowTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataTableService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDataTableRow(name); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataTableRowRequest actualRequest = ((DeleteDataTableRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataTableRowExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDataTableRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkCreateDataTableRowsTest() throws Exception { + BulkCreateDataTableRowsResponse expectedResponse = + BulkCreateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkCreateDataTableRowsResponse actualResponse = + client.bulkCreateDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkCreateDataTableRowsRequest actualRequest = + ((BulkCreateDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkCreateDataTableRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkCreateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkCreateDataTableRowsTest2() throws Exception { + BulkCreateDataTableRowsResponse expectedResponse = + BulkCreateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + + BulkCreateDataTableRowsResponse actualResponse = + client.bulkCreateDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkCreateDataTableRowsRequest actualRequest = + ((BulkCreateDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkCreateDataTableRowsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + client.bulkCreateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkGetDataTableRowsTest() throws Exception { + BulkGetDataTableRowsResponse expectedResponse = + BulkGetDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkGetDataTableRowsResponse actualResponse = client.bulkGetDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkGetDataTableRowsRequest actualRequest = + ((BulkGetDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkGetDataTableRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkGetDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkGetDataTableRowsTest2() throws Exception { + BulkGetDataTableRowsResponse expectedResponse = + BulkGetDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + + BulkGetDataTableRowsResponse actualResponse = client.bulkGetDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkGetDataTableRowsRequest actualRequest = + ((BulkGetDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkGetDataTableRowsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + client.bulkGetDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkReplaceDataTableRowsTest() throws Exception { + BulkReplaceDataTableRowsResponse expectedResponse = + BulkReplaceDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkReplaceDataTableRowsResponse actualResponse = + client.bulkReplaceDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkReplaceDataTableRowsRequest actualRequest = + ((BulkReplaceDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkReplaceDataTableRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkReplaceDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkReplaceDataTableRowsTest2() throws Exception { + BulkReplaceDataTableRowsResponse expectedResponse = + BulkReplaceDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + + BulkReplaceDataTableRowsResponse actualResponse = + client.bulkReplaceDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkReplaceDataTableRowsRequest actualRequest = + ((BulkReplaceDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkReplaceDataTableRowsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + client.bulkReplaceDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkUpdateDataTableRowsTest() throws Exception { + BulkUpdateDataTableRowsResponse expectedResponse = + BulkUpdateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + + BulkUpdateDataTableRowsResponse actualResponse = + client.bulkUpdateDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkUpdateDataTableRowsRequest actualRequest = + ((BulkUpdateDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkUpdateDataTableRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + client.bulkUpdateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bulkUpdateDataTableRowsTest2() throws Exception { + BulkUpdateDataTableRowsResponse expectedResponse = + BulkUpdateDataTableRowsResponse.newBuilder() + .addAllDataTableRows(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + + BulkUpdateDataTableRowsResponse actualResponse = + client.bulkUpdateDataTableRows(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkUpdateDataTableRowsRequest actualRequest = + ((BulkUpdateDataTableRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkUpdateDataTableRowsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + client.bulkUpdateDataTableRows(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableOperationErrorsTest() throws Exception { + DataTableOperationErrors expectedResponse = + DataTableOperationErrors.newBuilder() + .setName( + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]") + .toString()) + .addAllRpcErrors(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + DataTableOperationErrorsName name = + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]"); + + DataTableOperationErrors actualResponse = client.getDataTableOperationErrors(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataTableOperationErrorsRequest actualRequest = + ((GetDataTableOperationErrorsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataTableOperationErrorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + DataTableOperationErrorsName name = + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]"); + client.getDataTableOperationErrors(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataTableOperationErrorsTest2() throws Exception { + DataTableOperationErrors expectedResponse = + DataTableOperationErrors.newBuilder() + .setName( + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]") + .toString()) + .addAllRpcErrors(new ArrayList()) + .build(); + mockDataTableService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataTableOperationErrors actualResponse = client.getDataTableOperationErrors(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTableService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataTableOperationErrorsRequest actualRequest = + ((GetDataTableOperationErrorsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataTableOperationErrorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTableService.addException(exception); + + try { + String name = "name3373707"; + client.getDataTableOperationErrors(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDataTableService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDataTableService.java new file mode 100644 index 000000000000..d06609f419e6 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDataTableService.java @@ -0,0 +1,59 @@ +/* + * 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.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDataTableService implements MockGrpcService { + private final MockDataTableServiceImpl serviceImpl; + + public MockDataTableService() { + serviceImpl = new MockDataTableServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDataTableServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDataTableServiceImpl.java new file mode 100644 index 000000000000..57d00179621f --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockDataTableServiceImpl.java @@ -0,0 +1,387 @@ +/* + * 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.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.DataTableServiceGrpc.DataTableServiceImplBase; +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 MockDataTableServiceImpl extends DataTableServiceImplBase { + private List requests; + private Queue responses; + + public MockDataTableServiceImpl() { + 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 createDataTable( + CreateDataTableRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataTable) { + requests.add(request); + responseObserver.onNext(((DataTable) 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 CreateDataTable, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataTable.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDataTables( + ListDataTablesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDataTablesResponse) { + requests.add(request); + responseObserver.onNext(((ListDataTablesResponse) 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 ListDataTables, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDataTablesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataTable( + GetDataTableRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataTable) { + requests.add(request); + responseObserver.onNext(((DataTable) 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 GetDataTable, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataTable.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDataTable( + UpdateDataTableRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataTable) { + requests.add(request); + responseObserver.onNext(((DataTable) 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 UpdateDataTable, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataTable.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDataTable( + DeleteDataTableRequest 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 DeleteDataTable, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDataTableRow( + CreateDataTableRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataTableRow) { + requests.add(request); + responseObserver.onNext(((DataTableRow) 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 CreateDataTableRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataTableRow.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDataTableRow( + UpdateDataTableRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataTableRow) { + requests.add(request); + responseObserver.onNext(((DataTableRow) 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 UpdateDataTableRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataTableRow.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDataTableRows( + ListDataTableRowsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDataTableRowsResponse) { + requests.add(request); + responseObserver.onNext(((ListDataTableRowsResponse) 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 ListDataTableRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDataTableRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataTableRow( + GetDataTableRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataTableRow) { + requests.add(request); + responseObserver.onNext(((DataTableRow) 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 GetDataTableRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataTableRow.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDataTableRow( + DeleteDataTableRowRequest 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 DeleteDataTableRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void bulkCreateDataTableRows( + BulkCreateDataTableRowsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BulkCreateDataTableRowsResponse) { + requests.add(request); + responseObserver.onNext(((BulkCreateDataTableRowsResponse) 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 BulkCreateDataTableRows, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + BulkCreateDataTableRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void bulkGetDataTableRows( + BulkGetDataTableRowsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BulkGetDataTableRowsResponse) { + requests.add(request); + responseObserver.onNext(((BulkGetDataTableRowsResponse) 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 BulkGetDataTableRows, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + BulkGetDataTableRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void bulkReplaceDataTableRows( + BulkReplaceDataTableRowsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BulkReplaceDataTableRowsResponse) { + requests.add(request); + responseObserver.onNext(((BulkReplaceDataTableRowsResponse) 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 BulkReplaceDataTableRows, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + BulkReplaceDataTableRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void bulkUpdateDataTableRows( + BulkUpdateDataTableRowsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BulkUpdateDataTableRowsResponse) { + requests.add(request); + responseObserver.onNext(((BulkUpdateDataTableRowsResponse) 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 BulkUpdateDataTableRows, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + BulkUpdateDataTableRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataTableOperationErrors( + GetDataTableOperationErrorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataTableOperationErrors) { + requests.add(request); + responseObserver.onNext(((DataTableOperationErrors) 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 GetDataTableOperationErrors, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + DataTableOperationErrors.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceGrpc.java new file mode 100644 index 000000000000..0898dd1cc4ab --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceGrpc.java @@ -0,0 +1,2306 @@ +/* + * 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.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * DataTableManager provides an interface for managing data tables.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class DataTableServiceGrpc { + + private DataTableServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.chronicle.v1.DataTableService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getCreateDataTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataTable", + requestType = com.google.cloud.chronicle.v1.CreateDataTableRequest.class, + responseType = com.google.cloud.chronicle.v1.DataTable.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getCreateDataTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getCreateDataTableMethod; + if ((getCreateDataTableMethod = DataTableServiceGrpc.getCreateDataTableMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getCreateDataTableMethod = DataTableServiceGrpc.getCreateDataTableMethod) == null) { + DataTableServiceGrpc.getCreateDataTableMethod = + getCreateDataTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.CreateDataTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DataTable.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("CreateDataTable")) + .build(); + } + } + } + return getCreateDataTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListDataTablesRequest, + com.google.cloud.chronicle.v1.ListDataTablesResponse> + getListDataTablesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataTables", + requestType = com.google.cloud.chronicle.v1.ListDataTablesRequest.class, + responseType = com.google.cloud.chronicle.v1.ListDataTablesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListDataTablesRequest, + com.google.cloud.chronicle.v1.ListDataTablesResponse> + getListDataTablesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListDataTablesRequest, + com.google.cloud.chronicle.v1.ListDataTablesResponse> + getListDataTablesMethod; + if ((getListDataTablesMethod = DataTableServiceGrpc.getListDataTablesMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getListDataTablesMethod = DataTableServiceGrpc.getListDataTablesMethod) == null) { + DataTableServiceGrpc.getListDataTablesMethod = + getListDataTablesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataTables")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListDataTablesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListDataTablesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("ListDataTables")) + .build(); + } + } + } + return getListDataTablesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getGetDataTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataTable", + requestType = com.google.cloud.chronicle.v1.GetDataTableRequest.class, + responseType = com.google.cloud.chronicle.v1.DataTable.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getGetDataTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getGetDataTableMethod; + if ((getGetDataTableMethod = DataTableServiceGrpc.getGetDataTableMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getGetDataTableMethod = DataTableServiceGrpc.getGetDataTableMethod) == null) { + DataTableServiceGrpc.getGetDataTableMethod = + getGetDataTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetDataTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DataTable.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("GetDataTable")) + .build(); + } + } + } + return getGetDataTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getUpdateDataTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataTable", + requestType = com.google.cloud.chronicle.v1.UpdateDataTableRequest.class, + responseType = com.google.cloud.chronicle.v1.DataTable.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getUpdateDataTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable> + getUpdateDataTableMethod; + if ((getUpdateDataTableMethod = DataTableServiceGrpc.getUpdateDataTableMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getUpdateDataTableMethod = DataTableServiceGrpc.getUpdateDataTableMethod) == null) { + DataTableServiceGrpc.getUpdateDataTableMethod = + getUpdateDataTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.UpdateDataTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DataTable.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("UpdateDataTable")) + .build(); + } + } + } + return getUpdateDataTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteDataTableRequest, com.google.protobuf.Empty> + getDeleteDataTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataTable", + requestType = com.google.cloud.chronicle.v1.DeleteDataTableRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteDataTableRequest, com.google.protobuf.Empty> + getDeleteDataTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteDataTableRequest, com.google.protobuf.Empty> + getDeleteDataTableMethod; + if ((getDeleteDataTableMethod = DataTableServiceGrpc.getDeleteDataTableMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getDeleteDataTableMethod = DataTableServiceGrpc.getDeleteDataTableMethod) == null) { + DataTableServiceGrpc.getDeleteDataTableMethod = + getDeleteDataTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DeleteDataTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("DeleteDataTable")) + .build(); + } + } + } + return getDeleteDataTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getCreateDataTableRowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataTableRow", + requestType = com.google.cloud.chronicle.v1.CreateDataTableRowRequest.class, + responseType = com.google.cloud.chronicle.v1.DataTableRow.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getCreateDataTableRowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getCreateDataTableRowMethod; + if ((getCreateDataTableRowMethod = DataTableServiceGrpc.getCreateDataTableRowMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getCreateDataTableRowMethod = DataTableServiceGrpc.getCreateDataTableRowMethod) + == null) { + DataTableServiceGrpc.getCreateDataTableRowMethod = + getCreateDataTableRowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataTableRow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("CreateDataTableRow")) + .build(); + } + } + } + return getCreateDataTableRowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getUpdateDataTableRowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataTableRow", + requestType = com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.class, + responseType = com.google.cloud.chronicle.v1.DataTableRow.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getUpdateDataTableRowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getUpdateDataTableRowMethod; + if ((getUpdateDataTableRowMethod = DataTableServiceGrpc.getUpdateDataTableRowMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getUpdateDataTableRowMethod = DataTableServiceGrpc.getUpdateDataTableRowMethod) + == null) { + DataTableServiceGrpc.getUpdateDataTableRowMethod = + getUpdateDataTableRowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataTableRow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("UpdateDataTableRow")) + .build(); + } + } + } + return getUpdateDataTableRowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListDataTableRowsRequest, + com.google.cloud.chronicle.v1.ListDataTableRowsResponse> + getListDataTableRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataTableRows", + requestType = com.google.cloud.chronicle.v1.ListDataTableRowsRequest.class, + responseType = com.google.cloud.chronicle.v1.ListDataTableRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListDataTableRowsRequest, + com.google.cloud.chronicle.v1.ListDataTableRowsResponse> + getListDataTableRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListDataTableRowsRequest, + com.google.cloud.chronicle.v1.ListDataTableRowsResponse> + getListDataTableRowsMethod; + if ((getListDataTableRowsMethod = DataTableServiceGrpc.getListDataTableRowsMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getListDataTableRowsMethod = DataTableServiceGrpc.getListDataTableRowsMethod) + == null) { + DataTableServiceGrpc.getListDataTableRowsMethod = + getListDataTableRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataTableRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListDataTableRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListDataTableRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("ListDataTableRows")) + .build(); + } + } + } + return getListDataTableRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getGetDataTableRowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataTableRow", + requestType = com.google.cloud.chronicle.v1.GetDataTableRowRequest.class, + responseType = com.google.cloud.chronicle.v1.DataTableRow.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getGetDataTableRowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow> + getGetDataTableRowMethod; + if ((getGetDataTableRowMethod = DataTableServiceGrpc.getGetDataTableRowMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getGetDataTableRowMethod = DataTableServiceGrpc.getGetDataTableRowMethod) == null) { + DataTableServiceGrpc.getGetDataTableRowMethod = + getGetDataTableRowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataTableRow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetDataTableRowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("GetDataTableRow")) + .build(); + } + } + } + return getGetDataTableRowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest, com.google.protobuf.Empty> + getDeleteDataTableRowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataTableRow", + requestType = com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest, com.google.protobuf.Empty> + getDeleteDataTableRowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest, com.google.protobuf.Empty> + getDeleteDataTableRowMethod; + if ((getDeleteDataTableRowMethod = DataTableServiceGrpc.getDeleteDataTableRowMethod) == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getDeleteDataTableRowMethod = DataTableServiceGrpc.getDeleteDataTableRowMethod) + == null) { + DataTableServiceGrpc.getDeleteDataTableRowMethod = + getDeleteDataTableRowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataTableRow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("DeleteDataTableRow")) + .build(); + } + } + } + return getDeleteDataTableRowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse> + getBulkCreateDataTableRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkCreateDataTableRows", + requestType = com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.class, + responseType = com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse> + getBulkCreateDataTableRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse> + getBulkCreateDataTableRowsMethod; + if ((getBulkCreateDataTableRowsMethod = DataTableServiceGrpc.getBulkCreateDataTableRowsMethod) + == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getBulkCreateDataTableRowsMethod = + DataTableServiceGrpc.getBulkCreateDataTableRowsMethod) + == null) { + DataTableServiceGrpc.getBulkCreateDataTableRowsMethod = + getBulkCreateDataTableRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BulkCreateDataTableRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("BulkCreateDataTableRows")) + .build(); + } + } + } + return getBulkCreateDataTableRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse> + getBulkGetDataTableRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkGetDataTableRows", + requestType = com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.class, + responseType = com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse> + getBulkGetDataTableRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse> + getBulkGetDataTableRowsMethod; + if ((getBulkGetDataTableRowsMethod = DataTableServiceGrpc.getBulkGetDataTableRowsMethod) + == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getBulkGetDataTableRowsMethod = DataTableServiceGrpc.getBulkGetDataTableRowsMethod) + == null) { + DataTableServiceGrpc.getBulkGetDataTableRowsMethod = + getBulkGetDataTableRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BulkGetDataTableRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("BulkGetDataTableRows")) + .build(); + } + } + } + return getBulkGetDataTableRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse> + getBulkReplaceDataTableRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkReplaceDataTableRows", + requestType = com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.class, + responseType = com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse> + getBulkReplaceDataTableRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse> + getBulkReplaceDataTableRowsMethod; + if ((getBulkReplaceDataTableRowsMethod = DataTableServiceGrpc.getBulkReplaceDataTableRowsMethod) + == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getBulkReplaceDataTableRowsMethod = + DataTableServiceGrpc.getBulkReplaceDataTableRowsMethod) + == null) { + DataTableServiceGrpc.getBulkReplaceDataTableRowsMethod = + getBulkReplaceDataTableRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BulkReplaceDataTableRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("BulkReplaceDataTableRows")) + .build(); + } + } + } + return getBulkReplaceDataTableRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse> + getBulkUpdateDataTableRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkUpdateDataTableRows", + requestType = com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.class, + responseType = com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse> + getBulkUpdateDataTableRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse> + getBulkUpdateDataTableRowsMethod; + if ((getBulkUpdateDataTableRowsMethod = DataTableServiceGrpc.getBulkUpdateDataTableRowsMethod) + == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getBulkUpdateDataTableRowsMethod = + DataTableServiceGrpc.getBulkUpdateDataTableRowsMethod) + == null) { + DataTableServiceGrpc.getBulkUpdateDataTableRowsMethod = + getBulkUpdateDataTableRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BulkUpdateDataTableRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier("BulkUpdateDataTableRows")) + .build(); + } + } + } + return getBulkUpdateDataTableRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest, + com.google.cloud.chronicle.v1.DataTableOperationErrors> + getGetDataTableOperationErrorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataTableOperationErrors", + requestType = com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.class, + responseType = com.google.cloud.chronicle.v1.DataTableOperationErrors.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest, + com.google.cloud.chronicle.v1.DataTableOperationErrors> + getGetDataTableOperationErrorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest, + com.google.cloud.chronicle.v1.DataTableOperationErrors> + getGetDataTableOperationErrorsMethod; + if ((getGetDataTableOperationErrorsMethod = + DataTableServiceGrpc.getGetDataTableOperationErrorsMethod) + == null) { + synchronized (DataTableServiceGrpc.class) { + if ((getGetDataTableOperationErrorsMethod = + DataTableServiceGrpc.getGetDataTableOperationErrorsMethod) + == null) { + DataTableServiceGrpc.getGetDataTableOperationErrorsMethod = + getGetDataTableOperationErrorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataTableOperationErrors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.DataTableOperationErrors + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTableServiceMethodDescriptorSupplier( + "GetDataTableOperationErrors")) + .build(); + } + } + } + return getGetDataTableOperationErrorsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataTableServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTableServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceStub(channel, callOptions); + } + }; + return DataTableServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DataTableServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTableServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceBlockingV2Stub(channel, callOptions); + } + }; + return DataTableServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataTableServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTableServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceBlockingStub(channel, callOptions); + } + }; + return DataTableServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataTableServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTableServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceFutureStub(channel, callOptions); + } + }; + return DataTableServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * DataTableManager provides an interface for managing data tables.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Create a new data table.
+     * 
+ */ + default void createDataTable( + com.google.cloud.chronicle.v1.CreateDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataTableMethod(), responseObserver); + } + + /** + * + * + *
+     * List data tables.
+     * 
+ */ + default void listDataTables( + com.google.cloud.chronicle.v1.ListDataTablesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataTablesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get data table info.
+     * 
+ */ + default void getDataTable( + com.google.cloud.chronicle.v1.GetDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Update data table.
+     * 
+ */ + default void updateDataTable( + com.google.cloud.chronicle.v1.UpdateDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete data table.
+     * 
+ */ + default void deleteDataTable( + com.google.cloud.chronicle.v1.DeleteDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new data table row.
+     * 
+ */ + default void createDataTableRow( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataTableRowMethod(), responseObserver); + } + + /** + * + * + *
+     * Update data table row
+     * 
+ */ + default void updateDataTableRow( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataTableRowMethod(), responseObserver); + } + + /** + * + * + *
+     * List data table rows.
+     * 
+ */ + default void listDataTableRows( + com.google.cloud.chronicle.v1.ListDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataTableRowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get data table row
+     * 
+ */ + default void getDataTableRow( + com.google.cloud.chronicle.v1.GetDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataTableRowMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete data table row.
+     * 
+ */ + default void deleteDataTableRow( + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataTableRowMethod(), responseObserver); + } + + /** + * + * + *
+     * Create data table rows in bulk.
+     * 
+ */ + default void bulkCreateDataTableRows( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBulkCreateDataTableRowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get data table rows in bulk.
+     * 
+ */ + default void bulkGetDataTableRows( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBulkGetDataTableRowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Replace all existing data table rows with new data table rows.
+     * 
+ */ + default void bulkReplaceDataTableRows( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBulkReplaceDataTableRowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Update data table rows in bulk.
+     * 
+ */ + default void bulkUpdateDataTableRows( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBulkUpdateDataTableRowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get the error for a data table operation.
+     * 
+ */ + default void getDataTableOperationErrors( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataTableOperationErrorsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DataTableService. + * + *
+   * DataTableManager provides an interface for managing data tables.
+   * 
+ */ + public abstract static class DataTableServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DataTableServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DataTableService. + * + *
+   * DataTableManager provides an interface for managing data tables.
+   * 
+ */ + public static final class DataTableServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataTableServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTableServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new data table.
+     * 
+ */ + public void createDataTable( + com.google.cloud.chronicle.v1.CreateDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List data tables.
+     * 
+ */ + public void listDataTables( + com.google.cloud.chronicle.v1.ListDataTablesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataTablesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get data table info.
+     * 
+ */ + public void getDataTable( + com.google.cloud.chronicle.v1.GetDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update data table.
+     * 
+ */ + public void updateDataTable( + com.google.cloud.chronicle.v1.UpdateDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete data table.
+     * 
+ */ + public void deleteDataTable( + com.google.cloud.chronicle.v1.DeleteDataTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a new data table row.
+     * 
+ */ + public void createDataTableRow( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataTableRowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update data table row
+     * 
+ */ + public void updateDataTableRow( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataTableRowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List data table rows.
+     * 
+ */ + public void listDataTableRows( + com.google.cloud.chronicle.v1.ListDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataTableRowsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get data table row
+     * 
+ */ + public void getDataTableRow( + com.google.cloud.chronicle.v1.GetDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataTableRowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete data table row.
+     * 
+ */ + public void deleteDataTableRow( + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataTableRowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create data table rows in bulk.
+     * 
+ */ + public void bulkCreateDataTableRows( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkCreateDataTableRowsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get data table rows in bulk.
+     * 
+ */ + public void bulkGetDataTableRows( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkGetDataTableRowsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Replace all existing data table rows with new data table rows.
+     * 
+ */ + public void bulkReplaceDataTableRows( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkReplaceDataTableRowsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update data table rows in bulk.
+     * 
+ */ + public void bulkUpdateDataTableRows( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkUpdateDataTableRowsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get the error for a data table operation.
+     * 
+ */ + public void getDataTableOperationErrors( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataTableOperationErrorsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DataTableService. + * + *
+   * DataTableManager provides an interface for managing data tables.
+   * 
+ */ + public static final class DataTableServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DataTableServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTableServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new data table.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTable createDataTable( + com.google.cloud.chronicle.v1.CreateDataTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List data tables.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListDataTablesResponse listDataTables( + com.google.cloud.chronicle.v1.ListDataTablesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDataTablesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data table info.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTable getDataTable( + com.google.cloud.chronicle.v1.GetDataTableRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update data table.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTable updateDataTable( + com.google.cloud.chronicle.v1.UpdateDataTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete data table.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataTable( + com.google.cloud.chronicle.v1.DeleteDataTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new data table row.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableRow createDataTableRow( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update data table row
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableRow updateDataTableRow( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List data table rows.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListDataTableRowsResponse listDataTableRows( + com.google.cloud.chronicle.v1.ListDataTableRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data table row
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRow( + com.google.cloud.chronicle.v1.GetDataTableRowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete data table row.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataTableRow( + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create data table rows in bulk.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse bulkCreateDataTableRows( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getBulkCreateDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data table rows in bulk.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse bulkGetDataTableRows( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getBulkGetDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Replace all existing data table rows with new data table rows.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getBulkReplaceDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update data table rows in bulk.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getBulkUpdateDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get the error for a data table operation.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableOperationErrors getDataTableOperationErrors( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDataTableOperationErrorsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service DataTableService. + * + *
+   * DataTableManager provides an interface for managing data tables.
+   * 
+ */ + public static final class DataTableServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataTableServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTableServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new data table.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTable createDataTable( + com.google.cloud.chronicle.v1.CreateDataTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List data tables.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListDataTablesResponse listDataTables( + com.google.cloud.chronicle.v1.ListDataTablesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataTablesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data table info.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTable getDataTable( + com.google.cloud.chronicle.v1.GetDataTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update data table.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTable updateDataTable( + com.google.cloud.chronicle.v1.UpdateDataTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete data table.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataTable( + com.google.cloud.chronicle.v1.DeleteDataTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new data table row.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableRow createDataTableRow( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update data table row
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableRow updateDataTableRow( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List data table rows.
+     * 
+ */ + public com.google.cloud.chronicle.v1.ListDataTableRowsResponse listDataTableRows( + com.google.cloud.chronicle.v1.ListDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data table row
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRow( + com.google.cloud.chronicle.v1.GetDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete data table row.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataTableRow( + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataTableRowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create data table rows in bulk.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse bulkCreateDataTableRows( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkCreateDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data table rows in bulk.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse bulkGetDataTableRows( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkGetDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Replace all existing data table rows with new data table rows.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkReplaceDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update data table rows in bulk.
+     * 
+ */ + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkUpdateDataTableRowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get the error for a data table operation.
+     * 
+ */ + public com.google.cloud.chronicle.v1.DataTableOperationErrors getDataTableOperationErrors( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataTableOperationErrorsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DataTableService. + * + *
+   * DataTableManager provides an interface for managing data tables.
+   * 
+ */ + public static final class DataTableServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataTableServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTableServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTableServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new data table.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DataTable> + createDataTable(com.google.cloud.chronicle.v1.CreateDataTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List data tables.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ListDataTablesResponse> + listDataTables(com.google.cloud.chronicle.v1.ListDataTablesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataTablesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get data table info.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DataTable> + getDataTable(com.google.cloud.chronicle.v1.GetDataTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update data table.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DataTable> + updateDataTable(com.google.cloud.chronicle.v1.UpdateDataTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete data table.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataTable(com.google.cloud.chronicle.v1.DeleteDataTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new data table row.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DataTableRow> + createDataTableRow(com.google.cloud.chronicle.v1.CreateDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataTableRowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update data table row
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DataTableRow> + updateDataTableRow(com.google.cloud.chronicle.v1.UpdateDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataTableRowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List data table rows.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ListDataTableRowsResponse> + listDataTableRows(com.google.cloud.chronicle.v1.ListDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataTableRowsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get data table row
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DataTableRow> + getDataTableRow(com.google.cloud.chronicle.v1.GetDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataTableRowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete data table row.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataTableRow(com.google.cloud.chronicle.v1.DeleteDataTableRowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataTableRowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create data table rows in bulk.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse> + bulkCreateDataTableRows( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkCreateDataTableRowsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get data table rows in bulk.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse> + bulkGetDataTableRows(com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkGetDataTableRowsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Replace all existing data table rows with new data table rows.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse> + bulkReplaceDataTableRows( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkReplaceDataTableRowsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update data table rows in bulk.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse> + bulkUpdateDataTableRows( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkUpdateDataTableRowsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get the error for a data table operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.DataTableOperationErrors> + getDataTableOperationErrors( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataTableOperationErrorsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DATA_TABLE = 0; + private static final int METHODID_LIST_DATA_TABLES = 1; + private static final int METHODID_GET_DATA_TABLE = 2; + private static final int METHODID_UPDATE_DATA_TABLE = 3; + private static final int METHODID_DELETE_DATA_TABLE = 4; + private static final int METHODID_CREATE_DATA_TABLE_ROW = 5; + private static final int METHODID_UPDATE_DATA_TABLE_ROW = 6; + private static final int METHODID_LIST_DATA_TABLE_ROWS = 7; + private static final int METHODID_GET_DATA_TABLE_ROW = 8; + private static final int METHODID_DELETE_DATA_TABLE_ROW = 9; + private static final int METHODID_BULK_CREATE_DATA_TABLE_ROWS = 10; + private static final int METHODID_BULK_GET_DATA_TABLE_ROWS = 11; + private static final int METHODID_BULK_REPLACE_DATA_TABLE_ROWS = 12; + private static final int METHODID_BULK_UPDATE_DATA_TABLE_ROWS = 13; + private static final int METHODID_GET_DATA_TABLE_OPERATION_ERRORS = 14; + + 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_CREATE_DATA_TABLE: + serviceImpl.createDataTable( + (com.google.cloud.chronicle.v1.CreateDataTableRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_TABLES: + serviceImpl.listDataTables( + (com.google.cloud.chronicle.v1.ListDataTablesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DATA_TABLE: + serviceImpl.getDataTable( + (com.google.cloud.chronicle.v1.GetDataTableRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DATA_TABLE: + serviceImpl.updateDataTable( + (com.google.cloud.chronicle.v1.UpdateDataTableRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DATA_TABLE: + serviceImpl.deleteDataTable( + (com.google.cloud.chronicle.v1.DeleteDataTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DATA_TABLE_ROW: + serviceImpl.createDataTableRow( + (com.google.cloud.chronicle.v1.CreateDataTableRowRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DATA_TABLE_ROW: + serviceImpl.updateDataTableRow( + (com.google.cloud.chronicle.v1.UpdateDataTableRowRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_TABLE_ROWS: + serviceImpl.listDataTableRows( + (com.google.cloud.chronicle.v1.ListDataTableRowsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DATA_TABLE_ROW: + serviceImpl.getDataTableRow( + (com.google.cloud.chronicle.v1.GetDataTableRowRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DATA_TABLE_ROW: + serviceImpl.deleteDataTableRow( + (com.google.cloud.chronicle.v1.DeleteDataTableRowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BULK_CREATE_DATA_TABLE_ROWS: + serviceImpl.bulkCreateDataTableRows( + (com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse>) + responseObserver); + break; + case METHODID_BULK_GET_DATA_TABLE_ROWS: + serviceImpl.bulkGetDataTableRows( + (com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse>) + responseObserver); + break; + case METHODID_BULK_REPLACE_DATA_TABLE_ROWS: + serviceImpl.bulkReplaceDataTableRows( + (com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse>) + responseObserver); + break; + case METHODID_BULK_UPDATE_DATA_TABLE_ROWS: + serviceImpl.bulkUpdateDataTableRows( + (com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse>) + responseObserver); + break; + case METHODID_GET_DATA_TABLE_OPERATION_ERRORS: + serviceImpl.getDataTableOperationErrors( + (com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest) 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( + getCreateDataTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.CreateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable>(service, METHODID_CREATE_DATA_TABLE))) + .addMethod( + getListDataTablesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ListDataTablesRequest, + com.google.cloud.chronicle.v1.ListDataTablesResponse>( + service, METHODID_LIST_DATA_TABLES))) + .addMethod( + getGetDataTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetDataTableRequest, + com.google.cloud.chronicle.v1.DataTable>(service, METHODID_GET_DATA_TABLE))) + .addMethod( + getUpdateDataTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.UpdateDataTableRequest, + com.google.cloud.chronicle.v1.DataTable>(service, METHODID_UPDATE_DATA_TABLE))) + .addMethod( + getDeleteDataTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.DeleteDataTableRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DATA_TABLE))) + .addMethod( + getCreateDataTableRowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow>( + service, METHODID_CREATE_DATA_TABLE_ROW))) + .addMethod( + getUpdateDataTableRowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow>( + service, METHODID_UPDATE_DATA_TABLE_ROW))) + .addMethod( + getListDataTableRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ListDataTableRowsRequest, + com.google.cloud.chronicle.v1.ListDataTableRowsResponse>( + service, METHODID_LIST_DATA_TABLE_ROWS))) + .addMethod( + getGetDataTableRowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetDataTableRowRequest, + com.google.cloud.chronicle.v1.DataTableRow>( + service, METHODID_GET_DATA_TABLE_ROW))) + .addMethod( + getDeleteDataTableRowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DATA_TABLE_ROW))) + .addMethod( + getBulkCreateDataTableRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse>( + service, METHODID_BULK_CREATE_DATA_TABLE_ROWS))) + .addMethod( + getBulkGetDataTableRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse>( + service, METHODID_BULK_GET_DATA_TABLE_ROWS))) + .addMethod( + getBulkReplaceDataTableRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse>( + service, METHODID_BULK_REPLACE_DATA_TABLE_ROWS))) + .addMethod( + getBulkUpdateDataTableRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse>( + service, METHODID_BULK_UPDATE_DATA_TABLE_ROWS))) + .addMethod( + getGetDataTableOperationErrorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest, + com.google.cloud.chronicle.v1.DataTableOperationErrors>( + service, METHODID_GET_DATA_TABLE_OPERATION_ERRORS))) + .build(); + } + + private abstract static class DataTableServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataTableServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataTableService"); + } + } + + private static final class DataTableServiceFileDescriptorSupplier + extends DataTableServiceBaseDescriptorSupplier { + DataTableServiceFileDescriptorSupplier() {} + } + + private static final class DataTableServiceMethodDescriptorSupplier + extends DataTableServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DataTableServiceMethodDescriptorSupplier(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 (DataTableServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataTableServiceFileDescriptorSupplier()) + .addMethod(getCreateDataTableMethod()) + .addMethod(getListDataTablesMethod()) + .addMethod(getGetDataTableMethod()) + .addMethod(getUpdateDataTableMethod()) + .addMethod(getDeleteDataTableMethod()) + .addMethod(getCreateDataTableRowMethod()) + .addMethod(getUpdateDataTableRowMethod()) + .addMethod(getListDataTableRowsMethod()) + .addMethod(getGetDataTableRowMethod()) + .addMethod(getDeleteDataTableRowMethod()) + .addMethod(getBulkCreateDataTableRowsMethod()) + .addMethod(getBulkGetDataTableRowsMethod()) + .addMethod(getBulkReplaceDataTableRowsMethod()) + .addMethod(getBulkUpdateDataTableRowsMethod()) + .addMethod(getGetDataTableOperationErrorsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsRequest.java new file mode 100644 index 000000000000..42c00dc27d9b --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsRequest.java @@ -0,0 +1,1252 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to create data table rows in bulk.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest} + */ +@com.google.protobuf.Generated +public final class BulkCreateDataTableRowsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) + BulkCreateDataTableRowsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkCreateDataTableRowsRequest"); + } + + // Use BulkCreateDataTableRowsRequest.newBuilder() to construct. + private BulkCreateDataTableRowsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkCreateDataTableRowsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.chronicle.v1.BulkCreateDataTableRowsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest other = + (com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest 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.chronicle.v1.BulkCreateDataTableRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest 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.chronicle.v1.BulkCreateDataTableRowsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest 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.chronicle.v1.BulkCreateDataTableRowsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 create data table rows in bulk.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest build() { + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest buildPartial() { + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest result = + new com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest other) { + if (other + == com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + com.google.cloud.chronicle.v1.CreateDataTableRowRequest m = + input.readMessage( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.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 parent_ = ""; + + /** + * + * + *
+     * Required. The resource id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.cloud.chronicle.v1.CreateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.cloud.chronicle.v1.CreateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.cloud.chronicle.v1.CreateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder getRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder addRequestsBuilder() { + return internalGetRequestsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.CreateDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder addRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.chronicle.v1.CreateDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to create. A maximum of 1000 rows (for sync
+     * requests) or 2000 rows (for async requests) can be created in a single
+     * request. Total size of the rows should be less than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return internalGetRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder> + internalGetRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) + private static final com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest(); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkCreateDataTableRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsRequestOrBuilder.java new file mode 100644 index 000000000000..186ea8b23746 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsRequestOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkCreateDataTableRowsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.CreateDataTableRowRequest getRequests(int index); + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. Data table rows to create. A maximum of 1000 rows (for sync
+   * requests) or 2000 rows (for async requests) can be created in a single
+   * request. Total size of the rows should be less than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsResponse.java new file mode 100644 index 000000000000..34c3b3bd2537 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsResponse.java @@ -0,0 +1,933 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message with created data table rows.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse} + */ +@com.google.protobuf.Generated +public final class BulkCreateDataTableRowsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) + BulkCreateDataTableRowsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkCreateDataTableRowsResponse"); + } + + // Use BulkCreateDataTableRowsResponse.newBuilder() to construct. + private BulkCreateDataTableRowsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkCreateDataTableRowsResponse() { + dataTableRows_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.Builder.class); + } + + public static final int DATA_TABLE_ROWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataTableRows_; + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List getDataTableRowsList() { + return dataTableRows_; + } + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List + getDataTableRowsOrBuilderList() { + return dataTableRows_; + } + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public int getDataTableRowsCount() { + return dataTableRows_.size(); + } + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + return dataTableRows_.get(index); + } + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index) { + return dataTableRows_.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 < dataTableRows_.size(); i++) { + output.writeMessage(1, dataTableRows_.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 < dataTableRows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataTableRows_.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.chronicle.v1.BulkCreateDataTableRowsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse other = + (com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) obj; + + if (!getDataTableRowsList().equals(other.getDataTableRowsList())) return false; + if (!getUnknownFields().equals(other.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 (getDataTableRowsCount() > 0) { + hash = (37 * hash) + DATA_TABLE_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getDataTableRowsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse 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.chronicle.v1.BulkCreateDataTableRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse 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.chronicle.v1.BulkCreateDataTableRowsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse 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.chronicle.v1.BulkCreateDataTableRowsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 with created data table rows.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + } else { + dataTableRows_ = null; + dataTableRowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse build() { + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse buildPartial() { + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse result = + new com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse result) { + if (dataTableRowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = java.util.Collections.unmodifiableList(dataTableRows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataTableRows_ = dataTableRows_; + } else { + result.dataTableRows_ = dataTableRowsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse other) { + if (other + == com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse.getDefaultInstance()) + return this; + if (dataTableRowsBuilder_ == null) { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRows_.isEmpty()) { + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataTableRowsIsMutable(); + dataTableRows_.addAll(other.dataTableRows_); + } + onChanged(); + } + } else { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRowsBuilder_.isEmpty()) { + dataTableRowsBuilder_.dispose(); + dataTableRowsBuilder_ = null; + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + dataTableRowsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTableRowsFieldBuilder() + : null; + } else { + dataTableRowsBuilder_.addAllMessages(other.dataTableRows_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.chronicle.v1.DataTableRow m = + input.readMessage( + com.google.cloud.chronicle.v1.DataTableRow.parser(), extensionRegistry); + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(m); + } else { + dataTableRowsBuilder_.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 dataTableRows_ = + java.util.Collections.emptyList(); + + private void ensureDataTableRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = + new java.util.ArrayList(dataTableRows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + dataTableRowsBuilder_; + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List getDataTableRowsList() { + if (dataTableRowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTableRows_); + } else { + return dataTableRowsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public int getDataTableRowsCount() { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.size(); + } else { + return dataTableRowsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addAllDataTableRows( + java.lang.Iterable values) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTableRows_); + onChanged(); + } else { + dataTableRowsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder clearDataTableRows() { + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataTableRowsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder removeDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.remove(index); + onChanged(); + } else { + dataTableRowsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder getDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder( + int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsOrBuilderList() { + if (dataTableRowsBuilder_ != null) { + return dataTableRowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTableRows_); + } + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder() { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * DataTableRows created
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsBuilderList() { + return internalGetDataTableRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + internalGetDataTableRowsFieldBuilder() { + if (dataTableRowsBuilder_ == null) { + dataTableRowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder>( + dataTableRows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataTableRows_ = null; + } + return dataTableRowsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) + private static final com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse(); + } + + public static com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkCreateDataTableRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsResponseOrBuilder.java new file mode 100644 index 000000000000..738caed207f4 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkCreateDataTableRowsResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkCreateDataTableRowsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List getDataTableRowsList(); + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index); + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + int getDataTableRowsCount(); + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List + getDataTableRowsOrBuilderList(); + + /** + * + * + *
+   * DataTableRows created
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsRequest.java new file mode 100644 index 000000000000..ed6c5d0947d1 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsRequest.java @@ -0,0 +1,1220 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to get data table rows in bulk.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkGetDataTableRowsRequest} + */ +@com.google.protobuf.Generated +public final class BulkGetDataTableRowsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) + BulkGetDataTableRowsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkGetDataTableRowsRequest"); + } + + // Use BulkGetDataTableRowsRequest.newBuilder() to construct. + private BulkGetDataTableRowsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkGetDataTableRowsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRowRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.chronicle.v1.BulkGetDataTableRowsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest other = + (com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest 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.chronicle.v1.BulkGetDataTableRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest 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.chronicle.v1.BulkGetDataTableRowsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest 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.chronicle.v1.BulkGetDataTableRowsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 get data table rows in bulk.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkGetDataTableRowsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest build() { + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest buildPartial() { + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest result = + new com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest other) { + if (other == com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + com.google.cloud.chronicle.v1.GetDataTableRowRequest m = + input.readMessage( + com.google.cloud.chronicle.v1.GetDataTableRowRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.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 parent_ = ""; + + /** + * + * + *
+     * Required. The resource id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.GetDataTableRowRequest, + com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.GetDataTableRowRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.GetDataTableRowRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.cloud.chronicle.v1.GetDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.cloud.chronicle.v1.GetDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.cloud.chronicle.v1.GetDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder getRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.GetDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder addRequestsBuilder() { + return internalGetRequestsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.GetDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder addRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.chronicle.v1.GetDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to get. At max 1,000 rows can be there in a
+     * request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return internalGetRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.GetDataTableRowRequest, + com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.GetDataTableRowRequestOrBuilder> + internalGetRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.GetDataTableRowRequest, + com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.GetDataTableRowRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) + private static final com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest(); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkGetDataTableRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsRequestOrBuilder.java new file mode 100644 index 000000000000..f1fb8b71d89b --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkGetDataTableRowsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkGetDataTableRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.GetDataTableRowRequest getRequests(int index); + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. Data table rows to get. At max 1,000 rows can be there in a
+   * request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.GetDataTableRowRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsResponse.java new file mode 100644 index 000000000000..20a0dbae91b1 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsResponse.java @@ -0,0 +1,929 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message with data table rows.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkGetDataTableRowsResponse} + */ +@com.google.protobuf.Generated +public final class BulkGetDataTableRowsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) + BulkGetDataTableRowsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkGetDataTableRowsResponse"); + } + + // Use BulkGetDataTableRowsResponse.newBuilder() to construct. + private BulkGetDataTableRowsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkGetDataTableRowsResponse() { + dataTableRows_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.Builder.class); + } + + public static final int DATA_TABLE_ROWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataTableRows_; + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List getDataTableRowsList() { + return dataTableRows_; + } + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List + getDataTableRowsOrBuilderList() { + return dataTableRows_; + } + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public int getDataTableRowsCount() { + return dataTableRows_.size(); + } + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + return dataTableRows_.get(index); + } + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index) { + return dataTableRows_.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 < dataTableRows_.size(); i++) { + output.writeMessage(1, dataTableRows_.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 < dataTableRows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataTableRows_.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.chronicle.v1.BulkGetDataTableRowsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse other = + (com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) obj; + + if (!getDataTableRowsList().equals(other.getDataTableRowsList())) return false; + if (!getUnknownFields().equals(other.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 (getDataTableRowsCount() > 0) { + hash = (37 * hash) + DATA_TABLE_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getDataTableRowsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse 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.chronicle.v1.BulkGetDataTableRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse 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.chronicle.v1.BulkGetDataTableRowsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse 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.chronicle.v1.BulkGetDataTableRowsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 with data table rows.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkGetDataTableRowsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + } else { + dataTableRows_ = null; + dataTableRowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse build() { + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse buildPartial() { + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse result = + new com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse result) { + if (dataTableRowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = java.util.Collections.unmodifiableList(dataTableRows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataTableRows_ = dataTableRows_; + } else { + result.dataTableRows_ = dataTableRowsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse other) { + if (other == com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse.getDefaultInstance()) + return this; + if (dataTableRowsBuilder_ == null) { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRows_.isEmpty()) { + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataTableRowsIsMutable(); + dataTableRows_.addAll(other.dataTableRows_); + } + onChanged(); + } + } else { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRowsBuilder_.isEmpty()) { + dataTableRowsBuilder_.dispose(); + dataTableRowsBuilder_ = null; + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + dataTableRowsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTableRowsFieldBuilder() + : null; + } else { + dataTableRowsBuilder_.addAllMessages(other.dataTableRows_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.chronicle.v1.DataTableRow m = + input.readMessage( + com.google.cloud.chronicle.v1.DataTableRow.parser(), extensionRegistry); + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(m); + } else { + dataTableRowsBuilder_.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 dataTableRows_ = + java.util.Collections.emptyList(); + + private void ensureDataTableRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = + new java.util.ArrayList(dataTableRows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + dataTableRowsBuilder_; + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List getDataTableRowsList() { + if (dataTableRowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTableRows_); + } else { + return dataTableRowsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public int getDataTableRowsCount() { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.size(); + } else { + return dataTableRowsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addAllDataTableRows( + java.lang.Iterable values) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTableRows_); + onChanged(); + } else { + dataTableRowsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder clearDataTableRows() { + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataTableRowsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder removeDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.remove(index); + onChanged(); + } else { + dataTableRowsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder getDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder( + int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsOrBuilderList() { + if (dataTableRowsBuilder_ != null) { + return dataTableRowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTableRows_); + } + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder() { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * The requested data table rows.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsBuilderList() { + return internalGetDataTableRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + internalGetDataTableRowsFieldBuilder() { + if (dataTableRowsBuilder_ == null) { + dataTableRowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder>( + dataTableRows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataTableRows_ = null; + } + return dataTableRowsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) + private static final com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse(); + } + + public static com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkGetDataTableRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsResponseOrBuilder.java new file mode 100644 index 000000000000..056dbc1f4226 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkGetDataTableRowsResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkGetDataTableRowsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkGetDataTableRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List getDataTableRowsList(); + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index); + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + int getDataTableRowsCount(); + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List + getDataTableRowsOrBuilderList(); + + /** + * + * + *
+   * The requested data table rows.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsRequest.java new file mode 100644 index 000000000000..a438fec64c15 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsRequest.java @@ -0,0 +1,1275 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to replace data table rows in bulk.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest} + */ +@com.google.protobuf.Generated +public final class BulkReplaceDataTableRowsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) + BulkReplaceDataTableRowsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkReplaceDataTableRowsRequest"); + } + + // Use BulkReplaceDataTableRowsRequest.newBuilder() to construct. + private BulkReplaceDataTableRowsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkReplaceDataTableRowsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.chronicle.v1.BulkReplaceDataTableRowsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest other = + (com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest 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.chronicle.v1.BulkReplaceDataTableRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest 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.chronicle.v1.BulkReplaceDataTableRowsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest 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.chronicle.v1.BulkReplaceDataTableRowsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 replace data table rows in bulk.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest build() { + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest buildPartial() { + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest result = + new com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest other) { + if (other + == com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + com.google.cloud.chronicle.v1.CreateDataTableRowRequest m = + input.readMessage( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.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 parent_ = ""; + + /** + * + * + *
+     * Required. The resource id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.cloud.chronicle.v1.CreateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.cloud.chronicle.v1.CreateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.cloud.chronicle.v1.CreateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder getRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder addRequestsBuilder() { + return internalGetRequestsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.CreateDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder addRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.chronicle.v1.CreateDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to replace the existing data table rows. A
+     * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+     * can be replaced in a single request. Total size of the rows should be less
+     * than 4MB.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return internalGetRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder> + internalGetRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CreateDataTableRowRequest, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) + private static final com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest(); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkReplaceDataTableRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsRequestOrBuilder.java new file mode 100644 index 000000000000..5dfbb6ad3c21 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkReplaceDataTableRowsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.CreateDataTableRowRequest getRequests(int index); + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. Data table rows to replace the existing data table rows. A
+   * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
+   * can be replaced in a single request. Total size of the rows should be less
+   * than 4MB.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsResponse.java new file mode 100644 index 000000000000..2fc5a20ca7a2 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsResponse.java @@ -0,0 +1,936 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message with data table rows that replaced existing data table rows.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse} + */ +@com.google.protobuf.Generated +public final class BulkReplaceDataTableRowsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) + BulkReplaceDataTableRowsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkReplaceDataTableRowsResponse"); + } + + // Use BulkReplaceDataTableRowsResponse.newBuilder() to construct. + private BulkReplaceDataTableRowsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkReplaceDataTableRowsResponse() { + dataTableRows_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.Builder.class); + } + + public static final int DATA_TABLE_ROWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataTableRows_; + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List getDataTableRowsList() { + return dataTableRows_; + } + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List + getDataTableRowsOrBuilderList() { + return dataTableRows_; + } + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public int getDataTableRowsCount() { + return dataTableRows_.size(); + } + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + return dataTableRows_.get(index); + } + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index) { + return dataTableRows_.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 < dataTableRows_.size(); i++) { + output.writeMessage(1, dataTableRows_.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 < dataTableRows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataTableRows_.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.chronicle.v1.BulkReplaceDataTableRowsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse other = + (com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) obj; + + if (!getDataTableRowsList().equals(other.getDataTableRowsList())) return false; + if (!getUnknownFields().equals(other.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 (getDataTableRowsCount() > 0) { + hash = (37 * hash) + DATA_TABLE_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getDataTableRowsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse 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.chronicle.v1.BulkReplaceDataTableRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse 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.chronicle.v1.BulkReplaceDataTableRowsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse 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.chronicle.v1.BulkReplaceDataTableRowsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 with data table rows that replaced existing data table rows.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + } else { + dataTableRows_ = null; + dataTableRowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse build() { + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse buildPartial() { + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse result = + new com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse result) { + if (dataTableRowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = java.util.Collections.unmodifiableList(dataTableRows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataTableRows_ = dataTableRows_; + } else { + result.dataTableRows_ = dataTableRowsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse other) { + if (other + == com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse.getDefaultInstance()) + return this; + if (dataTableRowsBuilder_ == null) { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRows_.isEmpty()) { + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataTableRowsIsMutable(); + dataTableRows_.addAll(other.dataTableRows_); + } + onChanged(); + } + } else { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRowsBuilder_.isEmpty()) { + dataTableRowsBuilder_.dispose(); + dataTableRowsBuilder_ = null; + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + dataTableRowsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTableRowsFieldBuilder() + : null; + } else { + dataTableRowsBuilder_.addAllMessages(other.dataTableRows_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.chronicle.v1.DataTableRow m = + input.readMessage( + com.google.cloud.chronicle.v1.DataTableRow.parser(), extensionRegistry); + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(m); + } else { + dataTableRowsBuilder_.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 dataTableRows_ = + java.util.Collections.emptyList(); + + private void ensureDataTableRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = + new java.util.ArrayList(dataTableRows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + dataTableRowsBuilder_; + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List getDataTableRowsList() { + if (dataTableRowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTableRows_); + } else { + return dataTableRowsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public int getDataTableRowsCount() { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.size(); + } else { + return dataTableRowsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addAllDataTableRows( + java.lang.Iterable values) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTableRows_); + onChanged(); + } else { + dataTableRowsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder clearDataTableRows() { + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataTableRowsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder removeDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.remove(index); + onChanged(); + } else { + dataTableRowsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder getDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder( + int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsOrBuilderList() { + if (dataTableRowsBuilder_ != null) { + return dataTableRowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTableRows_); + } + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder() { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * DataTableRows that replaced existing data table rows
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsBuilderList() { + return internalGetDataTableRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + internalGetDataTableRowsFieldBuilder() { + if (dataTableRowsBuilder_ == null) { + dataTableRowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder>( + dataTableRows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataTableRows_ = null; + } + return dataTableRowsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) + private static final com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse(); + } + + public static com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkReplaceDataTableRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsResponseOrBuilder.java new file mode 100644 index 000000000000..565aec74ad2f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkReplaceDataTableRowsResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkReplaceDataTableRowsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List getDataTableRowsList(); + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index); + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + int getDataTableRowsCount(); + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List + getDataTableRowsOrBuilderList(); + + /** + * + * + *
+   * DataTableRows that replaced existing data table rows
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsRequest.java new file mode 100644 index 000000000000..aa3c3be14a40 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsRequest.java @@ -0,0 +1,1229 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to update data table rows in bulk.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest} + */ +@com.google.protobuf.Generated +public final class BulkUpdateDataTableRowsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) + BulkUpdateDataTableRowsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkUpdateDataTableRowsRequest"); + } + + // Use BulkUpdateDataTableRowsRequest.newBuilder() to construct. + private BulkUpdateDataTableRowsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkUpdateDataTableRowsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.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_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.chronicle.v1.BulkUpdateDataTableRowsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest other = + (com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest 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.chronicle.v1.BulkUpdateDataTableRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest 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.chronicle.v1.BulkUpdateDataTableRowsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest 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.chronicle.v1.BulkUpdateDataTableRowsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 update data table rows in bulk.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest build() { + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest buildPartial() { + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest result = + new com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest other) { + if (other + == com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest m = + input.readMessage( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.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 parent_ = ""; + + /** + * + * + *
+     * Required. The resource id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.cloud.chronicle.v1.UpdateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.cloud.chronicle.v1.UpdateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.cloud.chronicle.v1.UpdateDataTableRowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder getRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder addRequestsBuilder() { + return internalGetRequestsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder addRequestsBuilder( + int index) { + return internalGetRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Data table rows to update. At max 1,000 rows (or rows with size
+     * less than 2MB) can be there in a request.
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return internalGetRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder> + internalGetRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) + private static final com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest(); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkUpdateDataTableRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsRequestOrBuilder.java new file mode 100644 index 000000000000..2dc5bcc338c2 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkUpdateDataTableRowsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest getRequests(int index); + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. Data table rows to update. At max 1,000 rows (or rows with size
+   * less than 2MB) can be there in a request.
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsResponse.java new file mode 100644 index 000000000000..a2e7c2ebdda9 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsResponse.java @@ -0,0 +1,933 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message with updated data table rows.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse} + */ +@com.google.protobuf.Generated +public final class BulkUpdateDataTableRowsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) + BulkUpdateDataTableRowsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BulkUpdateDataTableRowsResponse"); + } + + // Use BulkUpdateDataTableRowsResponse.newBuilder() to construct. + private BulkUpdateDataTableRowsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BulkUpdateDataTableRowsResponse() { + dataTableRows_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.Builder.class); + } + + public static final int DATA_TABLE_ROWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataTableRows_; + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List getDataTableRowsList() { + return dataTableRows_; + } + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List + getDataTableRowsOrBuilderList() { + return dataTableRows_; + } + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public int getDataTableRowsCount() { + return dataTableRows_.size(); + } + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + return dataTableRows_.get(index); + } + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index) { + return dataTableRows_.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 < dataTableRows_.size(); i++) { + output.writeMessage(1, dataTableRows_.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 < dataTableRows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataTableRows_.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.chronicle.v1.BulkUpdateDataTableRowsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse other = + (com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) obj; + + if (!getDataTableRowsList().equals(other.getDataTableRowsList())) return false; + if (!getUnknownFields().equals(other.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 (getDataTableRowsCount() > 0) { + hash = (37 * hash) + DATA_TABLE_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getDataTableRowsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse 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.chronicle.v1.BulkUpdateDataTableRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse 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.chronicle.v1.BulkUpdateDataTableRowsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse 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.chronicle.v1.BulkUpdateDataTableRowsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 with updated data table rows.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + } else { + dataTableRows_ = null; + dataTableRowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse build() { + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse buildPartial() { + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse result = + new com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse result) { + if (dataTableRowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = java.util.Collections.unmodifiableList(dataTableRows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataTableRows_ = dataTableRows_; + } else { + result.dataTableRows_ = dataTableRowsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse other) { + if (other + == com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse.getDefaultInstance()) + return this; + if (dataTableRowsBuilder_ == null) { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRows_.isEmpty()) { + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataTableRowsIsMutable(); + dataTableRows_.addAll(other.dataTableRows_); + } + onChanged(); + } + } else { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRowsBuilder_.isEmpty()) { + dataTableRowsBuilder_.dispose(); + dataTableRowsBuilder_ = null; + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + dataTableRowsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTableRowsFieldBuilder() + : null; + } else { + dataTableRowsBuilder_.addAllMessages(other.dataTableRows_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.chronicle.v1.DataTableRow m = + input.readMessage( + com.google.cloud.chronicle.v1.DataTableRow.parser(), extensionRegistry); + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(m); + } else { + dataTableRowsBuilder_.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 dataTableRows_ = + java.util.Collections.emptyList(); + + private void ensureDataTableRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = + new java.util.ArrayList(dataTableRows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + dataTableRowsBuilder_; + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List getDataTableRowsList() { + if (dataTableRowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTableRows_); + } else { + return dataTableRowsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public int getDataTableRowsCount() { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.size(); + } else { + return dataTableRowsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addAllDataTableRows( + java.lang.Iterable values) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTableRows_); + onChanged(); + } else { + dataTableRowsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder clearDataTableRows() { + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataTableRowsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder removeDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.remove(index); + onChanged(); + } else { + dataTableRowsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder getDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder( + int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsOrBuilderList() { + if (dataTableRowsBuilder_ != null) { + return dataTableRowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTableRows_); + } + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder() { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * DataTableRows updated
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsBuilderList() { + return internalGetDataTableRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + internalGetDataTableRowsFieldBuilder() { + if (dataTableRowsBuilder_ == null) { + dataTableRowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder>( + dataTableRows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataTableRows_ = null; + } + return dataTableRowsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) + private static final com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse(); + } + + public static com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkUpdateDataTableRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsResponseOrBuilder.java new file mode 100644 index 000000000000..5dfe180d9a20 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BulkUpdateDataTableRowsResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface BulkUpdateDataTableRowsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List getDataTableRowsList(); + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index); + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + int getDataTableRowsCount(); + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List + getDataTableRowsOrBuilderList(); + + /** + * + * + *
+   * DataTableRows updated
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRequest.java new file mode 100644 index 000000000000..383145ea4ed6 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRequest.java @@ -0,0 +1,1150 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * A request to create DataTable.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.CreateDataTableRequest} + */ +@com.google.protobuf.Generated +public final class CreateDataTableRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.CreateDataTableRequest) + CreateDataTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateDataTableRequest"); + } + + // Use CreateDataTableRequest.newBuilder() to construct. + private CreateDataTableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateDataTableRequest() { + parent_ = ""; + dataTableId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.CreateDataTableRequest.class, + com.google.cloud.chronicle.v1.CreateDataTableRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * 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 DATA_TABLE_FIELD_NUMBER = 2; + private com.google.cloud.chronicle.v1.DataTable dataTable_; + + /** + * + * + *
+   * Required. The data table being created.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTable field is set. + */ + @java.lang.Override + public boolean hasDataTable() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The data table being created.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTable. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTable getDataTable() { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } + + /** + * + * + *
+   * Required. The data table being created.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTableOrBuilder() { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } + + public static final int DATA_TABLE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataTableId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the data table. This is also the display name
+   * for the data table. It must satisfy the following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataTableId. + */ + @java.lang.Override + public java.lang.String getDataTableId() { + java.lang.Object ref = dataTableId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataTableId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the data table. This is also the display name
+   * for the data table. It must satisfy the following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataTableId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataTableIdBytes() { + java.lang.Object ref = dataTableId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataTableId_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDataTable()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataTableId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataTableId_); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataTable()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataTableId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataTableId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.CreateDataTableRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.CreateDataTableRequest other = + (com.google.cloud.chronicle.v1.CreateDataTableRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDataTable() != other.hasDataTable()) return false; + if (hasDataTable()) { + if (!getDataTable().equals(other.getDataTable())) return false; + } + if (!getDataTableId().equals(other.getDataTableId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDataTable()) { + hash = (37 * hash) + DATA_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getDataTable().hashCode(); + } + hash = (37 * hash) + DATA_TABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDataTableId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest 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.chronicle.v1.CreateDataTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest 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.chronicle.v1.CreateDataTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest 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.chronicle.v1.CreateDataTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to create DataTable.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.CreateDataTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.CreateDataTableRequest) + com.google.cloud.chronicle.v1.CreateDataTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.CreateDataTableRequest.class, + com.google.cloud.chronicle.v1.CreateDataTableRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.CreateDataTableRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataTableFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + dataTable_ = null; + if (dataTableBuilder_ != null) { + dataTableBuilder_.dispose(); + dataTableBuilder_ = null; + } + dataTableId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.CreateDataTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRequest build() { + com.google.cloud.chronicle.v1.CreateDataTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRequest buildPartial() { + com.google.cloud.chronicle.v1.CreateDataTableRequest result = + new com.google.cloud.chronicle.v1.CreateDataTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.CreateDataTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataTable_ = dataTableBuilder_ == null ? dataTable_ : dataTableBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataTableId_ = dataTableId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.CreateDataTableRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.CreateDataTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.CreateDataTableRequest other) { + if (other == com.google.cloud.chronicle.v1.CreateDataTableRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDataTable()) { + mergeDataTable(other.getDataTable()); + } + if (!other.getDataTableId().isEmpty()) { + dataTableId_ = other.dataTableId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDataTableFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + dataTableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.DataTable dataTable_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder> + dataTableBuilder_; + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTable field is set. + */ + public boolean hasDataTable() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTable. + */ + public com.google.cloud.chronicle.v1.DataTable getDataTable() { + if (dataTableBuilder_ == null) { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } else { + return dataTableBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTable(com.google.cloud.chronicle.v1.DataTable value) { + if (dataTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataTable_ = value; + } else { + dataTableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTable(com.google.cloud.chronicle.v1.DataTable.Builder builderForValue) { + if (dataTableBuilder_ == null) { + dataTable_ = builderForValue.build(); + } else { + dataTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataTable(com.google.cloud.chronicle.v1.DataTable value) { + if (dataTableBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataTable_ != null + && dataTable_ != com.google.cloud.chronicle.v1.DataTable.getDefaultInstance()) { + getDataTableBuilder().mergeFrom(value); + } else { + dataTable_ = value; + } + } else { + dataTableBuilder_.mergeFrom(value); + } + if (dataTable_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataTable() { + bitField0_ = (bitField0_ & ~0x00000002); + dataTable_ = null; + if (dataTableBuilder_ != null) { + dataTableBuilder_.dispose(); + dataTableBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTable.Builder getDataTableBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDataTableFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTableOrBuilder() { + if (dataTableBuilder_ != null) { + return dataTableBuilder_.getMessageOrBuilder(); + } else { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } + } + + /** + * + * + *
+     * Required. The data table being created.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder> + internalGetDataTableFieldBuilder() { + if (dataTableBuilder_ == null) { + dataTableBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder>( + getDataTable(), getParentForChildren(), isClean()); + dataTable_ = null; + } + return dataTableBuilder_; + } + + private java.lang.Object dataTableId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the data table. This is also the display name
+     * for the data table. It must satisfy the following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataTableId. + */ + public java.lang.String getDataTableId() { + java.lang.Object ref = dataTableId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataTableId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the data table. This is also the display name
+     * for the data table. It must satisfy the following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataTableId. + */ + public com.google.protobuf.ByteString getDataTableIdBytes() { + java.lang.Object ref = dataTableId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataTableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the data table. This is also the display name
+     * for the data table. It must satisfy the following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataTableId to set. + * @return This builder for chaining. + */ + public Builder setDataTableId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataTableId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the data table. This is also the display name
+     * for the data table. It must satisfy the following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDataTableId() { + dataTableId_ = getDefaultInstance().getDataTableId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the data table. This is also the display name
+     * for the data table. It must satisfy the following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dataTableId to set. + * @return This builder for chaining. + */ + public Builder setDataTableIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataTableId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.CreateDataTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.CreateDataTableRequest) + private static final com.google.cloud.chronicle.v1.CreateDataTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.CreateDataTableRequest(); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRequestOrBuilder.java new file mode 100644 index 000000000000..ef50d303d8da --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface CreateDataTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.CreateDataTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The data table being created.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTable field is set. + */ + boolean hasDataTable(); + + /** + * + * + *
+   * Required. The data table being created.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTable. + */ + com.google.cloud.chronicle.v1.DataTable getDataTable(); + + /** + * + * + *
+   * Required. The data table being created.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTableOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the data table. This is also the display name
+   * for the data table. It must satisfy the following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataTableId. + */ + java.lang.String getDataTableId(); + + /** + * + * + *
+   * Required. The ID to use for the data table. This is also the display name
+   * for the data table. It must satisfy the following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataTableId. + */ + com.google.protobuf.ByteString getDataTableIdBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRowRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRowRequest.java new file mode 100644 index 000000000000..f79c98f65cdf --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRowRequest.java @@ -0,0 +1,943 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to create data table row.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.CreateDataTableRowRequest} + */ +@com.google.protobuf.Generated +public final class CreateDataTableRowRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.CreateDataTableRowRequest) + CreateDataTableRowRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateDataTableRowRequest"); + } + + // Use CreateDataTableRowRequest.newBuilder() to construct. + private CreateDataTableRowRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateDataTableRowRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.class, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 DATA_TABLE_ROW_FIELD_NUMBER = 2; + private com.google.cloud.chronicle.v1.DataTableRow dataTableRow_; + + /** + * + * + *
+   * Required. The data table row to create.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTableRow field is set. + */ + @java.lang.Override + public boolean hasDataTableRow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The data table row to create.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTableRow. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRow() { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } + + /** + * + * + *
+   * Required. The data table row to create.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowOrBuilder() { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDataTableRow()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataTableRow()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.CreateDataTableRowRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.CreateDataTableRowRequest other = + (com.google.cloud.chronicle.v1.CreateDataTableRowRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDataTableRow() != other.hasDataTableRow()) return false; + if (hasDataTableRow()) { + if (!getDataTableRow().equals(other.getDataTableRow())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDataTableRow()) { + hash = (37 * hash) + DATA_TABLE_ROW_FIELD_NUMBER; + hash = (53 * hash) + getDataTableRow().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest 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.chronicle.v1.CreateDataTableRowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest 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.chronicle.v1.CreateDataTableRowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest 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.chronicle.v1.CreateDataTableRowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 create data table row.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.CreateDataTableRowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.CreateDataTableRowRequest) + com.google.cloud.chronicle.v1.CreateDataTableRowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.class, + com.google.cloud.chronicle.v1.CreateDataTableRowRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.CreateDataTableRowRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataTableRowFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + dataTableRow_ = null; + if (dataTableRowBuilder_ != null) { + dataTableRowBuilder_.dispose(); + dataTableRowBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.CreateDataTableRowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest build() { + com.google.cloud.chronicle.v1.CreateDataTableRowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest buildPartial() { + com.google.cloud.chronicle.v1.CreateDataTableRowRequest result = + new com.google.cloud.chronicle.v1.CreateDataTableRowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.CreateDataTableRowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataTableRow_ = + dataTableRowBuilder_ == null ? dataTableRow_ : dataTableRowBuilder_.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.chronicle.v1.CreateDataTableRowRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.CreateDataTableRowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.CreateDataTableRowRequest other) { + if (other == com.google.cloud.chronicle.v1.CreateDataTableRowRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDataTableRow()) { + mergeDataTableRow(other.getDataTableRow()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDataTableRowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The resource id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.DataTableRow dataTableRow_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + dataTableRowBuilder_; + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTableRow field is set. + */ + public boolean hasDataTableRow() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTableRow. + */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRow() { + if (dataTableRowBuilder_ == null) { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } else { + return dataTableRowBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTableRow(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataTableRow_ = value; + } else { + dataTableRowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTableRow( + com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowBuilder_ == null) { + dataTableRow_ = builderForValue.build(); + } else { + dataTableRowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataTableRow(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataTableRow_ != null + && dataTableRow_ != com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()) { + getDataTableRowBuilder().mergeFrom(value); + } else { + dataTableRow_ = value; + } + } else { + dataTableRowBuilder_.mergeFrom(value); + } + if (dataTableRow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataTableRow() { + bitField0_ = (bitField0_ & ~0x00000002); + dataTableRow_ = null; + if (dataTableRowBuilder_ != null) { + dataTableRowBuilder_.dispose(); + dataTableRowBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder getDataTableRowBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDataTableRowFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowOrBuilder() { + if (dataTableRowBuilder_ != null) { + return dataTableRowBuilder_.getMessageOrBuilder(); + } else { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } + } + + /** + * + * + *
+     * Required. The data table row to create.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + internalGetDataTableRowFieldBuilder() { + if (dataTableRowBuilder_ == null) { + dataTableRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder>( + getDataTableRow(), getParentForChildren(), isClean()); + dataTableRow_ = null; + } + return dataTableRowBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.CreateDataTableRowRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.CreateDataTableRowRequest) + private static final com.google.cloud.chronicle.v1.CreateDataTableRowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.CreateDataTableRowRequest(); + } + + public static com.google.cloud.chronicle.v1.CreateDataTableRowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataTableRowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.CreateDataTableRowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRowRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRowRequestOrBuilder.java new file mode 100644 index 000000000000..820903c6dad0 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/CreateDataTableRowRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface CreateDataTableRowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.CreateDataTableRowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The data table row to create.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTableRow field is set. + */ + boolean hasDataTableRow(); + + /** + * + * + *
+   * Required. The data table row to create.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTableRow. + */ + com.google.cloud.chronicle.v1.DataTableRow getDataTableRow(); + + /** + * + * + *
+   * Required. The data table row to create.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTable.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTable.java new file mode 100644 index 000000000000..f10ddc57d525 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTable.java @@ -0,0 +1,3909 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * DataTable represents the data table resource.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTable} + */ +@com.google.protobuf.Generated +public final class DataTable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DataTable) + DataTableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTable"); + } + + // Use DataTable.newBuilder() to construct. + private DataTable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataTable() { + name_ = ""; + displayName_ = ""; + description_ = ""; + columnInfo_ = java.util.Collections.emptyList(); + dataTableUuid_ = ""; + rules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rowTimeToLive_ = ""; + updateSource_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTable.class, + com.google.cloud.chronicle.v1.DataTable.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name of the data table
+   * Format:
+   * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+   * 
+ * + * 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 resource name of the data table
+   * Format:
+   * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The unique display name of the data table.
+   * 
+ * + * 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 unique display name of the data table.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Required. A user-provided description of the data table.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. A user-provided description of the data table.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Table create time
+   * 
+ * + * .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_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Table create time
+   * 
+ * + * .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. Table create time
+   * 
+ * + * .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 UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Table update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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. Table update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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. Table update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 COLUMN_INFO_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List columnInfo_; + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List getColumnInfoList() { + return columnInfo_; + } + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List + getColumnInfoOrBuilderList() { + return columnInfo_; + } + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public int getColumnInfoCount() { + return columnInfo_.size(); + } + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableColumnInfo getColumnInfo(int index) { + return columnInfo_.get(index); + } + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableColumnInfoOrBuilder getColumnInfoOrBuilder( + int index) { + return columnInfo_.get(index); + } + + public static final int DATA_TABLE_UUID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataTableUuid_ = ""; + + /** + * + * + *
+   * Output only. Data table unique id
+   * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataTableUuid. + */ + @java.lang.Override + public java.lang.String getDataTableUuid() { + java.lang.Object ref = dataTableUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataTableUuid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Data table unique id
+   * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataTableUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataTableUuidBytes() { + java.lang.Object ref = dataTableUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataTableUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList rules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the rules. + */ + public com.google.protobuf.ProtocolStringList getRulesList() { + return rules_; + } + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of rules. + */ + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The rules at the given index. + */ + public java.lang.String getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the rules at the given index. + */ + public com.google.protobuf.ByteString getRulesBytes(int index) { + return rules_.getByteString(index); + } + + public static final int RULE_ASSOCIATIONS_COUNT_FIELD_NUMBER = 9; + private int ruleAssociationsCount_ = 0; + + /** + * + * + *
+   * Output only. The count of rules using the data table.
+   * 
+ * + * int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ruleAssociationsCount. + */ + @java.lang.Override + public int getRuleAssociationsCount() { + return ruleAssociationsCount_; + } + + public static final int ROW_TIME_TO_LIVE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object rowTimeToLive_ = ""; + + /** + * + * + *
+   * Optional. User-provided TTL of the data table.
+   * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rowTimeToLive. + */ + @java.lang.Override + public java.lang.String getRowTimeToLive() { + java.lang.Object ref = rowTimeToLive_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowTimeToLive_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. User-provided TTL of the data table.
+   * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rowTimeToLive. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRowTimeToLiveBytes() { + java.lang.Object ref = rowTimeToLive_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rowTimeToLive_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPROXIMATE_ROW_COUNT_FIELD_NUMBER = 11; + private long approximateRowCount_ = 0L; + + /** + * + * + *
+   * Output only. The count of rows in the data table.
+   * 
+ * + * int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The approximateRowCount. + */ + @java.lang.Override + public long getApproximateRowCount() { + return approximateRowCount_; + } + + public static final int SCOPE_INFO_FIELD_NUMBER = 12; + private com.google.cloud.chronicle.v1.DataTableScopeInfo scopeInfo_; + + /** + * + * + *
+   * Optional. The scope info of the data table.
+   * During data table creation, if this field is not set, the data
+   * table without scopes (an unscoped table) will be created for a global
+   * user. For a scoped user, this field must be set. During data table
+   * update, if scope_info is requested to be updated, this field must be set.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scopeInfo field is set. + */ + @java.lang.Override + public boolean hasScopeInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The scope info of the data table.
+   * During data table creation, if this field is not set, the data
+   * table without scopes (an unscoped table) will be created for a global
+   * user. For a scoped user, this field must be set. During data table
+   * update, if scope_info is requested to be updated, this field must be set.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scopeInfo. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableScopeInfo getScopeInfo() { + return scopeInfo_ == null + ? com.google.cloud.chronicle.v1.DataTableScopeInfo.getDefaultInstance() + : scopeInfo_; + } + + /** + * + * + *
+   * Optional. The scope info of the data table.
+   * During data table creation, if this field is not set, the data
+   * table without scopes (an unscoped table) will be created for a global
+   * user. For a scoped user, this field must be set. During data table
+   * update, if scope_info is requested to be updated, this field must be set.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableScopeInfoOrBuilder getScopeInfoOrBuilder() { + return scopeInfo_ == null + ? com.google.cloud.chronicle.v1.DataTableScopeInfo.getDefaultInstance() + : scopeInfo_; + } + + public static final int UPDATE_SOURCE_FIELD_NUMBER = 13; + private int updateSource_ = 0; + + /** + * + * + *
+   * Output only. Source of the data table update.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateSource. + */ + @java.lang.Override + public int getUpdateSourceValue() { + return updateSource_; + } + + /** + * + * + *
+   * Output only. Source of the data table update.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateSource. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableUpdateSource getUpdateSource() { + com.google.cloud.chronicle.v1.DataTableUpdateSource result = + com.google.cloud.chronicle.v1.DataTableUpdateSource.forNumber(updateSource_); + return result == null + ? com.google.cloud.chronicle.v1.DataTableUpdateSource.UNRECOGNIZED + : result; + } + + public static final int ROW_TIME_TO_LIVE_UPDATE_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp rowTimeToLiveUpdateTime_; + + /** + * + * + *
+   * Output only. Last update time of the TTL of the data table.
+   * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rowTimeToLiveUpdateTime field is set. + */ + @java.lang.Override + public boolean hasRowTimeToLiveUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Last update time of the TTL of the data table.
+   * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rowTimeToLiveUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRowTimeToLiveUpdateTime() { + return rowTimeToLiveUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rowTimeToLiveUpdateTime_; + } + + /** + * + * + *
+   * Output only. Last update time of the TTL of the data table.
+   * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRowTimeToLiveUpdateTimeOrBuilder() { + return rowTimeToLiveUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rowTimeToLiveUpdateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + for (int i = 0; i < columnInfo_.size(); i++) { + output.writeMessage(6, columnInfo_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataTableUuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, dataTableUuid_); + } + for (int i = 0; i < rules_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, rules_.getRaw(i)); + } + if (ruleAssociationsCount_ != 0) { + output.writeInt32(9, ruleAssociationsCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rowTimeToLive_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, rowTimeToLive_); + } + if (approximateRowCount_ != 0L) { + output.writeInt64(11, approximateRowCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getScopeInfo()); + } + if (updateSource_ + != com.google.cloud.chronicle.v1.DataTableUpdateSource.DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, updateSource_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getRowTimeToLiveUpdateTime()); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + for (int i = 0; i < columnInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, columnInfo_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataTableUuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, dataTableUuid_); + } + { + int dataSize = 0; + for (int i = 0; i < rules_.size(); i++) { + dataSize += computeStringSizeNoTag(rules_.getRaw(i)); + } + size += dataSize; + size += 1 * getRulesList().size(); + } + if (ruleAssociationsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ruleAssociationsCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rowTimeToLive_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, rowTimeToLive_); + } + if (approximateRowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, approximateRowCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getScopeInfo()); + } + if (updateSource_ + != com.google.cloud.chronicle.v1.DataTableUpdateSource.DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, updateSource_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getRowTimeToLiveUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.DataTable)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DataTable other = (com.google.cloud.chronicle.v1.DataTable) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (!getColumnInfoList().equals(other.getColumnInfoList())) return false; + if (!getDataTableUuid().equals(other.getDataTableUuid())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (getRuleAssociationsCount() != other.getRuleAssociationsCount()) return false; + if (!getRowTimeToLive().equals(other.getRowTimeToLive())) return false; + if (getApproximateRowCount() != other.getApproximateRowCount()) return false; + if (hasScopeInfo() != other.hasScopeInfo()) return false; + if (hasScopeInfo()) { + if (!getScopeInfo().equals(other.getScopeInfo())) return false; + } + if (updateSource_ != other.updateSource_) return false; + if (hasRowTimeToLiveUpdateTime() != other.hasRowTimeToLiveUpdateTime()) return false; + if (hasRowTimeToLiveUpdateTime()) { + if (!getRowTimeToLiveUpdateTime().equals(other.getRowTimeToLiveUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getColumnInfoCount() > 0) { + hash = (37 * hash) + COLUMN_INFO_FIELD_NUMBER; + hash = (53 * hash) + getColumnInfoList().hashCode(); + } + hash = (37 * hash) + DATA_TABLE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getDataTableUuid().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + RULE_ASSOCIATIONS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRuleAssociationsCount(); + hash = (37 * hash) + ROW_TIME_TO_LIVE_FIELD_NUMBER; + hash = (53 * hash) + getRowTimeToLive().hashCode(); + hash = (37 * hash) + APPROXIMATE_ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getApproximateRowCount()); + if (hasScopeInfo()) { + hash = (37 * hash) + SCOPE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getScopeInfo().hashCode(); + } + hash = (37 * hash) + UPDATE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + updateSource_; + if (hasRowTimeToLiveUpdateTime()) { + hash = (37 * hash) + ROW_TIME_TO_LIVE_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRowTimeToLiveUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DataTable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTable parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTable 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.chronicle.v1.DataTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTable 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.chronicle.v1.DataTable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTable 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.chronicle.v1.DataTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+   * DataTable represents the data table resource.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DataTable) + com.google.cloud.chronicle.v1.DataTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTable.class, + com.google.cloud.chronicle.v1.DataTable.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DataTable.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(); + internalGetUpdateTimeFieldBuilder(); + internalGetColumnInfoFieldBuilder(); + internalGetScopeInfoFieldBuilder(); + internalGetRowTimeToLiveUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + if (columnInfoBuilder_ == null) { + columnInfo_ = java.util.Collections.emptyList(); + } else { + columnInfo_ = null; + columnInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + dataTableUuid_ = ""; + rules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ruleAssociationsCount_ = 0; + rowTimeToLive_ = ""; + approximateRowCount_ = 0L; + scopeInfo_ = null; + if (scopeInfoBuilder_ != null) { + scopeInfoBuilder_.dispose(); + scopeInfoBuilder_ = null; + } + updateSource_ = 0; + rowTimeToLiveUpdateTime_ = null; + if (rowTimeToLiveUpdateTimeBuilder_ != null) { + rowTimeToLiveUpdateTimeBuilder_.dispose(); + rowTimeToLiveUpdateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTable getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DataTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTable build() { + com.google.cloud.chronicle.v1.DataTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTable buildPartial() { + com.google.cloud.chronicle.v1.DataTable result = + new com.google.cloud.chronicle.v1.DataTable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.chronicle.v1.DataTable result) { + if (columnInfoBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + columnInfo_ = java.util.Collections.unmodifiableList(columnInfo_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.columnInfo_ = columnInfo_; + } else { + result.columnInfo_ = columnInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DataTable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dataTableUuid_ = dataTableUuid_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + rules_.makeImmutable(); + result.rules_ = rules_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ruleAssociationsCount_ = ruleAssociationsCount_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.rowTimeToLive_ = rowTimeToLive_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.approximateRowCount_ = approximateRowCount_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.scopeInfo_ = scopeInfoBuilder_ == null ? scopeInfo_ : scopeInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateSource_ = updateSource_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.rowTimeToLiveUpdateTime_ = + rowTimeToLiveUpdateTimeBuilder_ == null + ? rowTimeToLiveUpdateTime_ + : rowTimeToLiveUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.DataTable) { + return mergeFrom((com.google.cloud.chronicle.v1.DataTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DataTable other) { + if (other == com.google.cloud.chronicle.v1.DataTable.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (columnInfoBuilder_ == null) { + if (!other.columnInfo_.isEmpty()) { + if (columnInfo_.isEmpty()) { + columnInfo_ = other.columnInfo_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureColumnInfoIsMutable(); + columnInfo_.addAll(other.columnInfo_); + } + onChanged(); + } + } else { + if (!other.columnInfo_.isEmpty()) { + if (columnInfoBuilder_.isEmpty()) { + columnInfoBuilder_.dispose(); + columnInfoBuilder_ = null; + columnInfo_ = other.columnInfo_; + bitField0_ = (bitField0_ & ~0x00000020); + columnInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetColumnInfoFieldBuilder() + : null; + } else { + columnInfoBuilder_.addAllMessages(other.columnInfo_); + } + } + } + if (!other.getDataTableUuid().isEmpty()) { + dataTableUuid_ = other.dataTableUuid_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ |= 0x00000080; + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + if (other.getRuleAssociationsCount() != 0) { + setRuleAssociationsCount(other.getRuleAssociationsCount()); + } + if (!other.getRowTimeToLive().isEmpty()) { + rowTimeToLive_ = other.rowTimeToLive_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.getApproximateRowCount() != 0L) { + setApproximateRowCount(other.getApproximateRowCount()); + } + if (other.hasScopeInfo()) { + mergeScopeInfo(other.getScopeInfo()); + } + if (other.updateSource_ != 0) { + setUpdateSourceValue(other.getUpdateSourceValue()); + } + if (other.hasRowTimeToLiveUpdateTime()) { + mergeRowTimeToLiveUpdateTime(other.getRowTimeToLiveUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.chronicle.v1.DataTableColumnInfo m = + input.readMessage( + com.google.cloud.chronicle.v1.DataTableColumnInfo.parser(), + extensionRegistry); + if (columnInfoBuilder_ == null) { + ensureColumnInfoIsMutable(); + columnInfo_.add(m); + } else { + columnInfoBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + dataTableUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRulesIsMutable(); + rules_.add(s); + break; + } // case 66 + case 72: + { + ruleAssociationsCount_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + rowTimeToLive_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + approximateRowCount_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + input.readMessage( + internalGetScopeInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: + { + updateSource_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + input.readMessage( + internalGetRowTimeToLiveUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the data table
+     * Format:
+     * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Output only. The unique display name of the data table.
+     * 
+ * + * 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 unique display name of the data table.
+     * 
+ * + * 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 unique display name of the data table.
+     * 
+ * + * 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 unique display name of the data table.
+     * 
+ * + * 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 unique display name of the data table.
+     * 
+ * + * 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 description_ = ""; + + /** + * + * + *
+     * Required. A user-provided description of the data table.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. A user-provided description of the data table.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. A user-provided description of the data table.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Required. A user-provided description of the data table.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A user-provided description of the data table.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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. Table create time
+     * 
+ * + * + * .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.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Table update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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 java.util.List columnInfo_ = + java.util.Collections.emptyList(); + + private void ensureColumnInfoIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + columnInfo_ = + new java.util.ArrayList(columnInfo_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableColumnInfo, + com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder, + com.google.cloud.chronicle.v1.DataTableColumnInfoOrBuilder> + columnInfoBuilder_; + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List getColumnInfoList() { + if (columnInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(columnInfo_); + } else { + return columnInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public int getColumnInfoCount() { + if (columnInfoBuilder_ == null) { + return columnInfo_.size(); + } else { + return columnInfoBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.chronicle.v1.DataTableColumnInfo getColumnInfo(int index) { + if (columnInfoBuilder_ == null) { + return columnInfo_.get(index); + } else { + return columnInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setColumnInfo( + int index, com.google.cloud.chronicle.v1.DataTableColumnInfo value) { + if (columnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnInfoIsMutable(); + columnInfo_.set(index, value); + onChanged(); + } else { + columnInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setColumnInfo( + int index, com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder builderForValue) { + if (columnInfoBuilder_ == null) { + ensureColumnInfoIsMutable(); + columnInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + columnInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addColumnInfo(com.google.cloud.chronicle.v1.DataTableColumnInfo value) { + if (columnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnInfoIsMutable(); + columnInfo_.add(value); + onChanged(); + } else { + columnInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addColumnInfo( + int index, com.google.cloud.chronicle.v1.DataTableColumnInfo value) { + if (columnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnInfoIsMutable(); + columnInfo_.add(index, value); + onChanged(); + } else { + columnInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addColumnInfo( + com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder builderForValue) { + if (columnInfoBuilder_ == null) { + ensureColumnInfoIsMutable(); + columnInfo_.add(builderForValue.build()); + onChanged(); + } else { + columnInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addColumnInfo( + int index, com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder builderForValue) { + if (columnInfoBuilder_ == null) { + ensureColumnInfoIsMutable(); + columnInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + columnInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAllColumnInfo( + java.lang.Iterable values) { + if (columnInfoBuilder_ == null) { + ensureColumnInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnInfo_); + onChanged(); + } else { + columnInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearColumnInfo() { + if (columnInfoBuilder_ == null) { + columnInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + columnInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder removeColumnInfo(int index) { + if (columnInfoBuilder_ == null) { + ensureColumnInfoIsMutable(); + columnInfo_.remove(index); + onChanged(); + } else { + columnInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder getColumnInfoBuilder( + int index) { + return internalGetColumnInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.chronicle.v1.DataTableColumnInfoOrBuilder getColumnInfoOrBuilder( + int index) { + if (columnInfoBuilder_ == null) { + return columnInfo_.get(index); + } else { + return columnInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getColumnInfoOrBuilderList() { + if (columnInfoBuilder_ != null) { + return columnInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columnInfo_); + } + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder addColumnInfoBuilder() { + return internalGetColumnInfoFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DataTableColumnInfo.getDefaultInstance()); + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder addColumnInfoBuilder( + int index) { + return internalGetColumnInfoFieldBuilder() + .addBuilder( + index, com.google.cloud.chronicle.v1.DataTableColumnInfo.getDefaultInstance()); + } + + /** + * + * + *
+     * Immutable. Details of all the columns in the table
+     * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getColumnInfoBuilderList() { + return internalGetColumnInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableColumnInfo, + com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder, + com.google.cloud.chronicle.v1.DataTableColumnInfoOrBuilder> + internalGetColumnInfoFieldBuilder() { + if (columnInfoBuilder_ == null) { + columnInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableColumnInfo, + com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder, + com.google.cloud.chronicle.v1.DataTableColumnInfoOrBuilder>( + columnInfo_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + columnInfo_ = null; + } + return columnInfoBuilder_; + } + + private java.lang.Object dataTableUuid_ = ""; + + /** + * + * + *
+     * Output only. Data table unique id
+     * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataTableUuid. + */ + public java.lang.String getDataTableUuid() { + java.lang.Object ref = dataTableUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataTableUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Data table unique id
+     * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataTableUuid. + */ + public com.google.protobuf.ByteString getDataTableUuidBytes() { + java.lang.Object ref = dataTableUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataTableUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Data table unique id
+     * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataTableUuid to set. + * @return This builder for chaining. + */ + public Builder setDataTableUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataTableUuid_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Data table unique id
+     * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataTableUuid() { + dataTableUuid_ = getDefaultInstance().getDataTableUuid(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Data table unique id
+     * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dataTableUuid to set. + * @return This builder for chaining. + */ + public Builder setDataTableUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataTableUuid_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList rules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRulesIsMutable() { + if (!rules_.isModifiable()) { + rules_ = new com.google.protobuf.LazyStringArrayList(rules_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the rules. + */ + public com.google.protobuf.ProtocolStringList getRulesList() { + rules_.makeImmutable(); + return rules_; + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of rules. + */ + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The rules at the given index. + */ + public java.lang.String getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the rules at the given index. + */ + public com.google.protobuf.ByteString getRulesBytes(int index) { + return rules_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The rules to set. + * @return This builder for chaining. + */ + public Builder setRules(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The rules to add. + * @return This builder for chaining. + */ + public Builder addRules(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The rules to add. + * @return This builder for chaining. + */ + public Builder addAllRules(java.lang.Iterable values) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRules() { + rules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource names for the associated Rules that use this
+     * data table. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+     * {rule} here refers to the rule id.
+     * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the rules to add. + * @return This builder for chaining. + */ + public Builder addRulesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRulesIsMutable(); + rules_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int ruleAssociationsCount_; + + /** + * + * + *
+     * Output only. The count of rules using the data table.
+     * 
+ * + * int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ruleAssociationsCount. + */ + @java.lang.Override + public int getRuleAssociationsCount() { + return ruleAssociationsCount_; + } + + /** + * + * + *
+     * Output only. The count of rules using the data table.
+     * 
+ * + * int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ruleAssociationsCount to set. + * @return This builder for chaining. + */ + public Builder setRuleAssociationsCount(int value) { + + ruleAssociationsCount_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The count of rules using the data table.
+     * 
+ * + * int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRuleAssociationsCount() { + bitField0_ = (bitField0_ & ~0x00000100); + ruleAssociationsCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object rowTimeToLive_ = ""; + + /** + * + * + *
+     * Optional. User-provided TTL of the data table.
+     * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rowTimeToLive. + */ + public java.lang.String getRowTimeToLive() { + java.lang.Object ref = rowTimeToLive_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowTimeToLive_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table.
+     * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rowTimeToLive. + */ + public com.google.protobuf.ByteString getRowTimeToLiveBytes() { + java.lang.Object ref = rowTimeToLive_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rowTimeToLive_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table.
+     * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rowTimeToLive to set. + * @return This builder for chaining. + */ + public Builder setRowTimeToLive(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rowTimeToLive_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table.
+     * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRowTimeToLive() { + rowTimeToLive_ = getDefaultInstance().getRowTimeToLive(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table.
+     * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for rowTimeToLive to set. + * @return This builder for chaining. + */ + public Builder setRowTimeToLiveBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rowTimeToLive_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private long approximateRowCount_; + + /** + * + * + *
+     * Output only. The count of rows in the data table.
+     * 
+ * + * int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The approximateRowCount. + */ + @java.lang.Override + public long getApproximateRowCount() { + return approximateRowCount_; + } + + /** + * + * + *
+     * Output only. The count of rows in the data table.
+     * 
+ * + * int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The approximateRowCount to set. + * @return This builder for chaining. + */ + public Builder setApproximateRowCount(long value) { + + approximateRowCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The count of rows in the data table.
+     * 
+ * + * int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApproximateRowCount() { + bitField0_ = (bitField0_ & ~0x00000400); + approximateRowCount_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.chronicle.v1.DataTableScopeInfo scopeInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableScopeInfo, + com.google.cloud.chronicle.v1.DataTableScopeInfo.Builder, + com.google.cloud.chronicle.v1.DataTableScopeInfoOrBuilder> + scopeInfoBuilder_; + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scopeInfo field is set. + */ + public boolean hasScopeInfo() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scopeInfo. + */ + public com.google.cloud.chronicle.v1.DataTableScopeInfo getScopeInfo() { + if (scopeInfoBuilder_ == null) { + return scopeInfo_ == null + ? com.google.cloud.chronicle.v1.DataTableScopeInfo.getDefaultInstance() + : scopeInfo_; + } else { + return scopeInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScopeInfo(com.google.cloud.chronicle.v1.DataTableScopeInfo value) { + if (scopeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scopeInfo_ = value; + } else { + scopeInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScopeInfo( + com.google.cloud.chronicle.v1.DataTableScopeInfo.Builder builderForValue) { + if (scopeInfoBuilder_ == null) { + scopeInfo_ = builderForValue.build(); + } else { + scopeInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScopeInfo(com.google.cloud.chronicle.v1.DataTableScopeInfo value) { + if (scopeInfoBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && scopeInfo_ != null + && scopeInfo_ + != com.google.cloud.chronicle.v1.DataTableScopeInfo.getDefaultInstance()) { + getScopeInfoBuilder().mergeFrom(value); + } else { + scopeInfo_ = value; + } + } else { + scopeInfoBuilder_.mergeFrom(value); + } + if (scopeInfo_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScopeInfo() { + bitField0_ = (bitField0_ & ~0x00000800); + scopeInfo_ = null; + if (scopeInfoBuilder_ != null) { + scopeInfoBuilder_.dispose(); + scopeInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataTableScopeInfo.Builder getScopeInfoBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetScopeInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.chronicle.v1.DataTableScopeInfoOrBuilder getScopeInfoOrBuilder() { + if (scopeInfoBuilder_ != null) { + return scopeInfoBuilder_.getMessageOrBuilder(); + } else { + return scopeInfo_ == null + ? com.google.cloud.chronicle.v1.DataTableScopeInfo.getDefaultInstance() + : scopeInfo_; + } + } + + /** + * + * + *
+     * Optional. The scope info of the data table.
+     * During data table creation, if this field is not set, the data
+     * table without scopes (an unscoped table) will be created for a global
+     * user. For a scoped user, this field must be set. During data table
+     * update, if scope_info is requested to be updated, this field must be set.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableScopeInfo, + com.google.cloud.chronicle.v1.DataTableScopeInfo.Builder, + com.google.cloud.chronicle.v1.DataTableScopeInfoOrBuilder> + internalGetScopeInfoFieldBuilder() { + if (scopeInfoBuilder_ == null) { + scopeInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableScopeInfo, + com.google.cloud.chronicle.v1.DataTableScopeInfo.Builder, + com.google.cloud.chronicle.v1.DataTableScopeInfoOrBuilder>( + getScopeInfo(), getParentForChildren(), isClean()); + scopeInfo_ = null; + } + return scopeInfoBuilder_; + } + + private int updateSource_ = 0; + + /** + * + * + *
+     * Output only. Source of the data table update.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateSource. + */ + @java.lang.Override + public int getUpdateSourceValue() { + return updateSource_; + } + + /** + * + * + *
+     * Output only. Source of the data table update.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for updateSource to set. + * @return This builder for chaining. + */ + public Builder setUpdateSourceValue(int value) { + updateSource_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Source of the data table update.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateSource. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableUpdateSource getUpdateSource() { + com.google.cloud.chronicle.v1.DataTableUpdateSource result = + com.google.cloud.chronicle.v1.DataTableUpdateSource.forNumber(updateSource_); + return result == null + ? com.google.cloud.chronicle.v1.DataTableUpdateSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Source of the data table update.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The updateSource to set. + * @return This builder for chaining. + */ + public Builder setUpdateSource(com.google.cloud.chronicle.v1.DataTableUpdateSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + updateSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Source of the data table update.
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdateSource() { + bitField0_ = (bitField0_ & ~0x00001000); + updateSource_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp rowTimeToLiveUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + rowTimeToLiveUpdateTimeBuilder_; + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rowTimeToLiveUpdateTime field is set. + */ + public boolean hasRowTimeToLiveUpdateTime() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rowTimeToLiveUpdateTime. + */ + public com.google.protobuf.Timestamp getRowTimeToLiveUpdateTime() { + if (rowTimeToLiveUpdateTimeBuilder_ == null) { + return rowTimeToLiveUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rowTimeToLiveUpdateTime_; + } else { + return rowTimeToLiveUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRowTimeToLiveUpdateTime(com.google.protobuf.Timestamp value) { + if (rowTimeToLiveUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rowTimeToLiveUpdateTime_ = value; + } else { + rowTimeToLiveUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRowTimeToLiveUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (rowTimeToLiveUpdateTimeBuilder_ == null) { + rowTimeToLiveUpdateTime_ = builderForValue.build(); + } else { + rowTimeToLiveUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRowTimeToLiveUpdateTime(com.google.protobuf.Timestamp value) { + if (rowTimeToLiveUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && rowTimeToLiveUpdateTime_ != null + && rowTimeToLiveUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRowTimeToLiveUpdateTimeBuilder().mergeFrom(value); + } else { + rowTimeToLiveUpdateTime_ = value; + } + } else { + rowTimeToLiveUpdateTimeBuilder_.mergeFrom(value); + } + if (rowTimeToLiveUpdateTime_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRowTimeToLiveUpdateTime() { + bitField0_ = (bitField0_ & ~0x00002000); + rowTimeToLiveUpdateTime_ = null; + if (rowTimeToLiveUpdateTimeBuilder_ != null) { + rowTimeToLiveUpdateTimeBuilder_.dispose(); + rowTimeToLiveUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getRowTimeToLiveUpdateTimeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetRowTimeToLiveUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRowTimeToLiveUpdateTimeOrBuilder() { + if (rowTimeToLiveUpdateTimeBuilder_ != null) { + return rowTimeToLiveUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return rowTimeToLiveUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rowTimeToLiveUpdateTime_; + } + } + + /** + * + * + *
+     * Output only. Last update time of the TTL of the data table.
+     * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetRowTimeToLiveUpdateTimeFieldBuilder() { + if (rowTimeToLiveUpdateTimeBuilder_ == null) { + rowTimeToLiveUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRowTimeToLiveUpdateTime(), getParentForChildren(), isClean()); + rowTimeToLiveUpdateTime_ = null; + } + return rowTimeToLiveUpdateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DataTable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DataTable) + private static final com.google.cloud.chronicle.v1.DataTable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DataTable(); + } + + public static com.google.cloud.chronicle.v1.DataTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableColumnInfo.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableColumnInfo.java new file mode 100644 index 000000000000..685a3931a34f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableColumnInfo.java @@ -0,0 +1,1698 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * DataTableColumnInfo represents the column metadata of the
+ * datatable. The column_index represents the ordering of the
+ * values in DataTableRow.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableColumnInfo} + */ +@com.google.protobuf.Generated +public final class DataTableColumnInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DataTableColumnInfo) + DataTableColumnInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTableColumnInfo"); + } + + // Use DataTableColumnInfo.newBuilder() to construct. + private DataTableColumnInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataTableColumnInfo() { + originalColumn_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableColumnInfo.class, + com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder.class); + } + + /** + * + * + *
+   * DataTableColumnType denotes the type of the column to be referenced in the
+   * rule.
+   * 
+ * + * Protobuf enum {@code google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType} + */ + public enum DataTableColumnType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default Data Table Column Type.
+     * 
+ * + * DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; + */ + DATA_TABLE_COLUMN_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Denotes the type of the column as STRING.
+     * 
+ * + * STRING = 1; + */ + STRING(1), + /** + * + * + *
+     * Denotes the type of the column as REGEX.
+     * 
+ * + * REGEX = 2; + */ + REGEX(2), + /** + * + * + *
+     * Denotes the type of the column as CIDR.
+     * 
+ * + * CIDR = 3; + */ + CIDR(3), + /** + * + * + *
+     * Denotes the type of the column as NUMBER (includes int and float).
+     * 
+ * + * NUMBER = 4; + */ + NUMBER(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTableColumnType"); + } + + /** + * + * + *
+     * The default Data Table Column Type.
+     * 
+ * + * DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_TABLE_COLUMN_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Denotes the type of the column as STRING.
+     * 
+ * + * STRING = 1; + */ + public static final int STRING_VALUE = 1; + + /** + * + * + *
+     * Denotes the type of the column as REGEX.
+     * 
+ * + * REGEX = 2; + */ + public static final int REGEX_VALUE = 2; + + /** + * + * + *
+     * Denotes the type of the column as CIDR.
+     * 
+ * + * CIDR = 3; + */ + public static final int CIDR_VALUE = 3; + + /** + * + * + *
+     * Denotes the type of the column as NUMBER (includes int and float).
+     * 
+ * + * NUMBER = 4; + */ + public static final int NUMBER_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 DataTableColumnType 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 DataTableColumnType forNumber(int value) { + switch (value) { + case 0: + return DATA_TABLE_COLUMN_TYPE_UNSPECIFIED; + case 1: + return STRING; + case 2: + return REGEX; + case 3: + return CIDR; + case 4: + return NUMBER; + 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 DataTableColumnType findValueByNumber(int number) { + return DataTableColumnType.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.chronicle.v1.DataTableColumnInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DataTableColumnType[] VALUES = values(); + + public static DataTableColumnType 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 DataTableColumnType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType) + } + + private int pathOrTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object pathOrType_; + + public enum PathOrTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAPPED_COLUMN_PATH(3), + COLUMN_TYPE(4), + PATHORTYPE_NOT_SET(0); + private final int value; + + private PathOrTypeCase(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 PathOrTypeCase valueOf(int value) { + return forNumber(value); + } + + public static PathOrTypeCase forNumber(int value) { + switch (value) { + case 3: + return MAPPED_COLUMN_PATH; + case 4: + return COLUMN_TYPE; + case 0: + return PATHORTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PathOrTypeCase getPathOrTypeCase() { + return PathOrTypeCase.forNumber(pathOrTypeCase_); + } + + public static final int MAPPED_COLUMN_PATH_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Entity proto field path that the column is mapped to
+   * 
+ * + * string mapped_column_path = 3; + * + * @return Whether the mappedColumnPath field is set. + */ + public boolean hasMappedColumnPath() { + return pathOrTypeCase_ == 3; + } + + /** + * + * + *
+   * Entity proto field path that the column is mapped to
+   * 
+ * + * string mapped_column_path = 3; + * + * @return The mappedColumnPath. + */ + public java.lang.String getMappedColumnPath() { + java.lang.Object ref = ""; + if (pathOrTypeCase_ == 3) { + ref = pathOrType_; + } + if (ref instanceof java.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 (pathOrTypeCase_ == 3) { + pathOrType_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Entity proto field path that the column is mapped to
+   * 
+ * + * string mapped_column_path = 3; + * + * @return The bytes for mappedColumnPath. + */ + public com.google.protobuf.ByteString getMappedColumnPathBytes() { + java.lang.Object ref = ""; + if (pathOrTypeCase_ == 3) { + ref = pathOrType_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (pathOrTypeCase_ == 3) { + pathOrType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMN_TYPE_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+   * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return Whether the columnType field is set. + */ + public boolean hasColumnType() { + return pathOrTypeCase_ == 4; + } + + /** + * + * + *
+   * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+   * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return The enum numeric value on the wire for columnType. + */ + public int getColumnTypeValue() { + if (pathOrTypeCase_ == 4) { + return (java.lang.Integer) pathOrType_; + } + return 0; + } + + /** + * + * + *
+   * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+   * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return The columnType. + */ + public com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType getColumnType() { + if (pathOrTypeCase_ == 4) { + com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType result = + com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType.forNumber( + (java.lang.Integer) pathOrType_); + return result == null + ? com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType.UNRECOGNIZED + : result; + } + return com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType + .DATA_TABLE_COLUMN_TYPE_UNSPECIFIED; + } + + public static final int COLUMN_INDEX_FIELD_NUMBER = 1; + private int columnIndex_ = 0; + + /** + * + * + *
+   * Required. Column Index. 0,1,2...
+   * 
+ * + * int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The columnIndex. + */ + @java.lang.Override + public int getColumnIndex() { + return columnIndex_; + } + + public static final int ORIGINAL_COLUMN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object originalColumn_ = ""; + + /** + * + * + *
+   * Required. Original column name of the Data Table (present in the CSV header
+   * in case of creation of data tables using file uploads). It must satisfy the
+   * following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The originalColumn. + */ + @java.lang.Override + public java.lang.String getOriginalColumn() { + java.lang.Object ref = originalColumn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalColumn_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Original column name of the Data Table (present in the CSV header
+   * in case of creation of data tables using file uploads). It must satisfy the
+   * following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for originalColumn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOriginalColumnBytes() { + java.lang.Object ref = originalColumn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalColumn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_COLUMN_FIELD_NUMBER = 5; + private boolean keyColumn_ = false; + + /** + * + * + *
+   * Optional. Whether to include this column in the calculation of the row ID.
+   * If no columns have key_column = true, all columns will be included in the
+   * calculation of the row ID.
+   * 
+ * + * bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyColumn. + */ + @java.lang.Override + public boolean getKeyColumn() { + return keyColumn_; + } + + public static final int REPEATED_VALUES_FIELD_NUMBER = 6; + private boolean repeatedValues_ = false; + + /** + * + * + *
+   * Optional. Whether the column is a repeated values column.
+   * 
+ * + * bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The repeatedValues. + */ + @java.lang.Override + public boolean getRepeatedValues() { + return repeatedValues_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (columnIndex_ != 0) { + output.writeInt32(1, columnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalColumn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, originalColumn_); + } + if (pathOrTypeCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pathOrType_); + } + if (pathOrTypeCase_ == 4) { + output.writeEnum(4, ((java.lang.Integer) pathOrType_)); + } + if (keyColumn_ != false) { + output.writeBool(5, keyColumn_); + } + if (repeatedValues_ != false) { + output.writeBool(6, repeatedValues_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (columnIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, columnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalColumn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, originalColumn_); + } + if (pathOrTypeCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pathOrType_); + } + if (pathOrTypeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 4, ((java.lang.Integer) pathOrType_)); + } + if (keyColumn_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, keyColumn_); + } + if (repeatedValues_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, repeatedValues_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.DataTableColumnInfo)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DataTableColumnInfo other = + (com.google.cloud.chronicle.v1.DataTableColumnInfo) obj; + + if (getColumnIndex() != other.getColumnIndex()) return false; + if (!getOriginalColumn().equals(other.getOriginalColumn())) return false; + if (getKeyColumn() != other.getKeyColumn()) return false; + if (getRepeatedValues() != other.getRepeatedValues()) return false; + if (!getPathOrTypeCase().equals(other.getPathOrTypeCase())) return false; + switch (pathOrTypeCase_) { + case 3: + if (!getMappedColumnPath().equals(other.getMappedColumnPath())) return false; + break; + case 4: + if (getColumnTypeValue() != other.getColumnTypeValue()) 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) + COLUMN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getColumnIndex(); + hash = (37 * hash) + ORIGINAL_COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getOriginalColumn().hashCode(); + hash = (37 * hash) + KEY_COLUMN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyColumn()); + hash = (37 * hash) + REPEATED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRepeatedValues()); + switch (pathOrTypeCase_) { + case 3: + hash = (37 * hash) + MAPPED_COLUMN_PATH_FIELD_NUMBER; + hash = (53 * hash) + getMappedColumnPath().hashCode(); + break; + case 4: + hash = (37 * hash) + COLUMN_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getColumnTypeValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo 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.chronicle.v1.DataTableColumnInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo 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.chronicle.v1.DataTableColumnInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo 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.chronicle.v1.DataTableColumnInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+   * DataTableColumnInfo represents the column metadata of the
+   * datatable. The column_index represents the ordering of the
+   * values in DataTableRow.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableColumnInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DataTableColumnInfo) + com.google.cloud.chronicle.v1.DataTableColumnInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableColumnInfo.class, + com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DataTableColumnInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + columnIndex_ = 0; + originalColumn_ = ""; + keyColumn_ = false; + repeatedValues_ = false; + pathOrTypeCase_ = 0; + pathOrType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableColumnInfo getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DataTableColumnInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableColumnInfo build() { + com.google.cloud.chronicle.v1.DataTableColumnInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableColumnInfo buildPartial() { + com.google.cloud.chronicle.v1.DataTableColumnInfo result = + new com.google.cloud.chronicle.v1.DataTableColumnInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DataTableColumnInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.columnIndex_ = columnIndex_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.originalColumn_ = originalColumn_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.keyColumn_ = keyColumn_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.repeatedValues_ = repeatedValues_; + } + } + + private void buildPartialOneofs(com.google.cloud.chronicle.v1.DataTableColumnInfo result) { + result.pathOrTypeCase_ = pathOrTypeCase_; + result.pathOrType_ = this.pathOrType_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.DataTableColumnInfo) { + return mergeFrom((com.google.cloud.chronicle.v1.DataTableColumnInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DataTableColumnInfo other) { + if (other == com.google.cloud.chronicle.v1.DataTableColumnInfo.getDefaultInstance()) + return this; + if (other.getColumnIndex() != 0) { + setColumnIndex(other.getColumnIndex()); + } + if (!other.getOriginalColumn().isEmpty()) { + originalColumn_ = other.originalColumn_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getKeyColumn() != false) { + setKeyColumn(other.getKeyColumn()); + } + if (other.getRepeatedValues() != false) { + setRepeatedValues(other.getRepeatedValues()); + } + switch (other.getPathOrTypeCase()) { + case MAPPED_COLUMN_PATH: + { + pathOrTypeCase_ = 3; + pathOrType_ = other.pathOrType_; + onChanged(); + break; + } + case COLUMN_TYPE: + { + setColumnTypeValue(other.getColumnTypeValue()); + break; + } + case PATHORTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + columnIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 8 + case 18: + { + originalColumn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + pathOrTypeCase_ = 3; + pathOrType_ = s; + break; + } // case 26 + case 32: + { + int rawValue = input.readEnum(); + pathOrTypeCase_ = 4; + pathOrType_ = rawValue; + break; + } // case 32 + case 40: + { + keyColumn_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + repeatedValues_ = input.readBool(); + 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 pathOrTypeCase_ = 0; + private java.lang.Object pathOrType_; + + public PathOrTypeCase getPathOrTypeCase() { + return PathOrTypeCase.forNumber(pathOrTypeCase_); + } + + public Builder clearPathOrType() { + pathOrTypeCase_ = 0; + pathOrType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Entity proto field path that the column is mapped to
+     * 
+ * + * string mapped_column_path = 3; + * + * @return Whether the mappedColumnPath field is set. + */ + @java.lang.Override + public boolean hasMappedColumnPath() { + return pathOrTypeCase_ == 3; + } + + /** + * + * + *
+     * Entity proto field path that the column is mapped to
+     * 
+ * + * string mapped_column_path = 3; + * + * @return The mappedColumnPath. + */ + @java.lang.Override + public java.lang.String getMappedColumnPath() { + java.lang.Object ref = ""; + if (pathOrTypeCase_ == 3) { + ref = pathOrType_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (pathOrTypeCase_ == 3) { + pathOrType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Entity proto field path that the column is mapped to
+     * 
+ * + * string mapped_column_path = 3; + * + * @return The bytes for mappedColumnPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMappedColumnPathBytes() { + java.lang.Object ref = ""; + if (pathOrTypeCase_ == 3) { + ref = pathOrType_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (pathOrTypeCase_ == 3) { + pathOrType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Entity proto field path that the column is mapped to
+     * 
+ * + * string mapped_column_path = 3; + * + * @param value The mappedColumnPath to set. + * @return This builder for chaining. + */ + public Builder setMappedColumnPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pathOrTypeCase_ = 3; + pathOrType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Entity proto field path that the column is mapped to
+     * 
+ * + * string mapped_column_path = 3; + * + * @return This builder for chaining. + */ + public Builder clearMappedColumnPath() { + if (pathOrTypeCase_ == 3) { + pathOrTypeCase_ = 0; + pathOrType_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Entity proto field path that the column is mapped to
+     * 
+ * + * string mapped_column_path = 3; + * + * @param value The bytes for mappedColumnPath to set. + * @return This builder for chaining. + */ + public Builder setMappedColumnPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pathOrTypeCase_ = 3; + pathOrType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+     * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return Whether the columnType field is set. + */ + @java.lang.Override + public boolean hasColumnType() { + return pathOrTypeCase_ == 4; + } + + /** + * + * + *
+     * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+     * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return The enum numeric value on the wire for columnType. + */ + @java.lang.Override + public int getColumnTypeValue() { + if (pathOrTypeCase_ == 4) { + return ((java.lang.Integer) pathOrType_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+     * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @param value The enum numeric value on the wire for columnType to set. + * @return This builder for chaining. + */ + public Builder setColumnTypeValue(int value) { + pathOrTypeCase_ = 4; + pathOrType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+     * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return The columnType. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType getColumnType() { + if (pathOrTypeCase_ == 4) { + com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType result = + com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType.forNumber( + (java.lang.Integer) pathOrType_); + return result == null + ? com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType.UNRECOGNIZED + : result; + } + return com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType + .DATA_TABLE_COLUMN_TYPE_UNSPECIFIED; + } + + /** + * + * + *
+     * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+     * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @param value The columnType to set. + * @return This builder for chaining. + */ + public Builder setColumnType( + com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType value) { + if (value == null) { + throw new NullPointerException(); + } + pathOrTypeCase_ = 4; + pathOrType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+     * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearColumnType() { + if (pathOrTypeCase_ == 4) { + pathOrTypeCase_ = 0; + pathOrType_ = null; + onChanged(); + } + return this; + } + + private int columnIndex_; + + /** + * + * + *
+     * Required. Column Index. 0,1,2...
+     * 
+ * + * int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The columnIndex. + */ + @java.lang.Override + public int getColumnIndex() { + return columnIndex_; + } + + /** + * + * + *
+     * Required. Column Index. 0,1,2...
+     * 
+ * + * int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The columnIndex to set. + * @return This builder for chaining. + */ + public Builder setColumnIndex(int value) { + + columnIndex_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Column Index. 0,1,2...
+     * 
+ * + * int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearColumnIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + columnIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object originalColumn_ = ""; + + /** + * + * + *
+     * Required. Original column name of the Data Table (present in the CSV header
+     * in case of creation of data tables using file uploads). It must satisfy the
+     * following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The originalColumn. + */ + public java.lang.String getOriginalColumn() { + java.lang.Object ref = originalColumn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalColumn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Original column name of the Data Table (present in the CSV header
+     * in case of creation of data tables using file uploads). It must satisfy the
+     * following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for originalColumn. + */ + public com.google.protobuf.ByteString getOriginalColumnBytes() { + java.lang.Object ref = originalColumn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalColumn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Original column name of the Data Table (present in the CSV header
+     * in case of creation of data tables using file uploads). It must satisfy the
+     * following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The originalColumn to set. + * @return This builder for chaining. + */ + public Builder setOriginalColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + originalColumn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Original column name of the Data Table (present in the CSV header
+     * in case of creation of data tables using file uploads). It must satisfy the
+     * following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOriginalColumn() { + originalColumn_ = getDefaultInstance().getOriginalColumn(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Original column name of the Data Table (present in the CSV header
+     * in case of creation of data tables using file uploads). It must satisfy the
+     * following requirements:
+     * - Starts with letter.
+     * - Contains only letters, numbers and underscore.
+     * - Must be unique and has length < 256.
+     * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for originalColumn to set. + * @return This builder for chaining. + */ + public Builder setOriginalColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalColumn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean keyColumn_; + + /** + * + * + *
+     * Optional. Whether to include this column in the calculation of the row ID.
+     * If no columns have key_column = true, all columns will be included in the
+     * calculation of the row ID.
+     * 
+ * + * bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyColumn. + */ + @java.lang.Override + public boolean getKeyColumn() { + return keyColumn_; + } + + /** + * + * + *
+     * Optional. Whether to include this column in the calculation of the row ID.
+     * If no columns have key_column = true, all columns will be included in the
+     * calculation of the row ID.
+     * 
+ * + * bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The keyColumn to set. + * @return This builder for chaining. + */ + public Builder setKeyColumn(boolean value) { + + keyColumn_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to include this column in the calculation of the row ID.
+     * If no columns have key_column = true, all columns will be included in the
+     * calculation of the row ID.
+     * 
+ * + * bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKeyColumn() { + bitField0_ = (bitField0_ & ~0x00000010); + keyColumn_ = false; + onChanged(); + return this; + } + + private boolean repeatedValues_; + + /** + * + * + *
+     * Optional. Whether the column is a repeated values column.
+     * 
+ * + * bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The repeatedValues. + */ + @java.lang.Override + public boolean getRepeatedValues() { + return repeatedValues_; + } + + /** + * + * + *
+     * Optional. Whether the column is a repeated values column.
+     * 
+ * + * bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The repeatedValues to set. + * @return This builder for chaining. + */ + public Builder setRepeatedValues(boolean value) { + + repeatedValues_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the column is a repeated values column.
+     * 
+ * + * bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRepeatedValues() { + bitField0_ = (bitField0_ & ~0x00000020); + repeatedValues_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DataTableColumnInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DataTableColumnInfo) + private static final com.google.cloud.chronicle.v1.DataTableColumnInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DataTableColumnInfo(); + } + + public static com.google.cloud.chronicle.v1.DataTableColumnInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataTableColumnInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableColumnInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableColumnInfoOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableColumnInfoOrBuilder.java new file mode 100644 index 000000000000..3cfa85b3fc30 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableColumnInfoOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DataTableColumnInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DataTableColumnInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Entity proto field path that the column is mapped to
+   * 
+ * + * string mapped_column_path = 3; + * + * @return Whether the mappedColumnPath field is set. + */ + boolean hasMappedColumnPath(); + + /** + * + * + *
+   * Entity proto field path that the column is mapped to
+   * 
+ * + * string mapped_column_path = 3; + * + * @return The mappedColumnPath. + */ + java.lang.String getMappedColumnPath(); + + /** + * + * + *
+   * Entity proto field path that the column is mapped to
+   * 
+ * + * string mapped_column_path = 3; + * + * @return The bytes for mappedColumnPath. + */ + com.google.protobuf.ByteString getMappedColumnPathBytes(); + + /** + * + * + *
+   * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+   * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return Whether the columnType field is set. + */ + boolean hasColumnType(); + + /** + * + * + *
+   * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+   * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return The enum numeric value on the wire for columnType. + */ + int getColumnTypeValue(); + + /** + * + * + *
+   * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
+   * 
+ * + * .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * + * + * @return The columnType. + */ + com.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType getColumnType(); + + /** + * + * + *
+   * Required. Column Index. 0,1,2...
+   * 
+ * + * int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The columnIndex. + */ + int getColumnIndex(); + + /** + * + * + *
+   * Required. Original column name of the Data Table (present in the CSV header
+   * in case of creation of data tables using file uploads). It must satisfy the
+   * following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The originalColumn. + */ + java.lang.String getOriginalColumn(); + + /** + * + * + *
+   * Required. Original column name of the Data Table (present in the CSV header
+   * in case of creation of data tables using file uploads). It must satisfy the
+   * following requirements:
+   * - Starts with letter.
+   * - Contains only letters, numbers and underscore.
+   * - Must be unique and has length < 256.
+   * 
+ * + * string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for originalColumn. + */ + com.google.protobuf.ByteString getOriginalColumnBytes(); + + /** + * + * + *
+   * Optional. Whether to include this column in the calculation of the row ID.
+   * If no columns have key_column = true, all columns will be included in the
+   * calculation of the row ID.
+   * 
+ * + * bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The keyColumn. + */ + boolean getKeyColumn(); + + /** + * + * + *
+   * Optional. Whether the column is a repeated values column.
+   * 
+ * + * bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The repeatedValues. + */ + boolean getRepeatedValues(); + + com.google.cloud.chronicle.v1.DataTableColumnInfo.PathOrTypeCase getPathOrTypeCase(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableName.java new file mode 100644 index 000000000000..4fb45b695e18 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableName.java @@ -0,0 +1,261 @@ +/* + * 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.chronicle.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataTableName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE_DATA_TABLE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + private final String dataTable; + + @Deprecated + protected DataTableName() { + project = null; + location = null; + instance = null; + dataTable = null; + } + + private DataTableName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + dataTable = Preconditions.checkNotNull(builder.getDataTable()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getDataTable() { + return dataTable; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataTableName of( + String project, String location, String instance, String dataTable) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setDataTable(dataTable) + .build(); + } + + public static String format(String project, String location, String instance, String dataTable) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setDataTable(dataTable) + .build() + .toString(); + } + + public static DataTableName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE_DATA_TABLE.validatedMatch( + formattedString, "DataTableName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("instance"), + matchMap.get("data_table")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataTableName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE_DATA_TABLE.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 (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (dataTable != null) { + fieldMapBuilder.put("data_table", dataTable); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE_DATA_TABLE.instantiate( + "project", project, "location", location, "instance", instance, "data_table", dataTable); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DataTableName that = ((DataTableName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.dataTable, that.dataTable); + } + 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(instance); + h *= 1000003; + h ^= Objects.hashCode(dataTable); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}. + */ + public static class Builder { + private String project; + private String location; + private String instance; + private String dataTable; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getDataTable() { + return dataTable; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setDataTable(String dataTable) { + this.dataTable = dataTable; + return this; + } + + private Builder(DataTableName dataTableName) { + this.project = dataTableName.project; + this.location = dataTableName.location; + this.instance = dataTableName.instance; + this.dataTable = dataTableName.dataTable; + } + + public DataTableName build() { + return new DataTableName(this); + } + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrors.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrors.java new file mode 100644 index 000000000000..727db90b1a48 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrors.java @@ -0,0 +1,1137 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * The message containing the errors for a data table operation.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableOperationErrors} + */ +@com.google.protobuf.Generated +public final class DataTableOperationErrors extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DataTableOperationErrors) + DataTableOperationErrorsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTableOperationErrors"); + } + + // Use DataTableOperationErrors.newBuilder() to construct. + private DataTableOperationErrors(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataTableOperationErrors() { + name_ = ""; + rpcErrors_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableOperationErrors.class, + com.google.cloud.chronicle.v1.DataTableOperationErrors.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * 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. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * 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 RPC_ERRORS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List rpcErrors_; + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + @java.lang.Override + public java.util.List getRpcErrorsList() { + return rpcErrors_; + } + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + @java.lang.Override + public java.util.List getRpcErrorsOrBuilderList() { + return rpcErrors_; + } + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + @java.lang.Override + public int getRpcErrorsCount() { + return rpcErrors_.size(); + } + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + @java.lang.Override + public com.google.rpc.Status getRpcErrors(int index) { + return rpcErrors_.get(index); + } + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getRpcErrorsOrBuilder(int index) { + return rpcErrors_.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 < rpcErrors_.size(); i++) { + output.writeMessage(3, rpcErrors_.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 < rpcErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rpcErrors_.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.chronicle.v1.DataTableOperationErrors)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DataTableOperationErrors other = + (com.google.cloud.chronicle.v1.DataTableOperationErrors) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRpcErrorsList().equals(other.getRpcErrorsList())) return false; + if (!getUnknownFields().equals(other.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 (getRpcErrorsCount() > 0) { + hash = (37 * hash) + RPC_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getRpcErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors 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.chronicle.v1.DataTableOperationErrors parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors 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.chronicle.v1.DataTableOperationErrors parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors 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.chronicle.v1.DataTableOperationErrors prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 message containing the errors for a data table operation.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableOperationErrors} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DataTableOperationErrors) + com.google.cloud.chronicle.v1.DataTableOperationErrorsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableOperationErrors.class, + com.google.cloud.chronicle.v1.DataTableOperationErrors.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DataTableOperationErrors.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 (rpcErrorsBuilder_ == null) { + rpcErrors_ = java.util.Collections.emptyList(); + } else { + rpcErrors_ = null; + rpcErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableOperationErrors getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DataTableOperationErrors.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableOperationErrors build() { + com.google.cloud.chronicle.v1.DataTableOperationErrors result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableOperationErrors buildPartial() { + com.google.cloud.chronicle.v1.DataTableOperationErrors result = + new com.google.cloud.chronicle.v1.DataTableOperationErrors(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.DataTableOperationErrors result) { + if (rpcErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rpcErrors_ = java.util.Collections.unmodifiableList(rpcErrors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rpcErrors_ = rpcErrors_; + } else { + result.rpcErrors_ = rpcErrorsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DataTableOperationErrors 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.chronicle.v1.DataTableOperationErrors) { + return mergeFrom((com.google.cloud.chronicle.v1.DataTableOperationErrors) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DataTableOperationErrors other) { + if (other == com.google.cloud.chronicle.v1.DataTableOperationErrors.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (rpcErrorsBuilder_ == null) { + if (!other.rpcErrors_.isEmpty()) { + if (rpcErrors_.isEmpty()) { + rpcErrors_ = other.rpcErrors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRpcErrorsIsMutable(); + rpcErrors_.addAll(other.rpcErrors_); + } + onChanged(); + } + } else { + if (!other.rpcErrors_.isEmpty()) { + if (rpcErrorsBuilder_.isEmpty()) { + rpcErrorsBuilder_.dispose(); + rpcErrorsBuilder_ = null; + rpcErrors_ = other.rpcErrors_; + bitField0_ = (bitField0_ & ~0x00000002); + rpcErrorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRpcErrorsFieldBuilder() + : null; + } else { + rpcErrorsBuilder_.addAllMessages(other.rpcErrors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (rpcErrorsBuilder_ == null) { + ensureRpcErrorsIsMutable(); + rpcErrors_.add(m); + } else { + rpcErrorsBuilder_.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 name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * 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. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * 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. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * 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. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * 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. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * 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 rpcErrors_ = java.util.Collections.emptyList(); + + private void ensureRpcErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rpcErrors_ = new java.util.ArrayList(rpcErrors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + rpcErrorsBuilder_; + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public java.util.List getRpcErrorsList() { + if (rpcErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rpcErrors_); + } else { + return rpcErrorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public int getRpcErrorsCount() { + if (rpcErrorsBuilder_ == null) { + return rpcErrors_.size(); + } else { + return rpcErrorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public com.google.rpc.Status getRpcErrors(int index) { + if (rpcErrorsBuilder_ == null) { + return rpcErrors_.get(index); + } else { + return rpcErrorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder setRpcErrors(int index, com.google.rpc.Status value) { + if (rpcErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRpcErrorsIsMutable(); + rpcErrors_.set(index, value); + onChanged(); + } else { + rpcErrorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder setRpcErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (rpcErrorsBuilder_ == null) { + ensureRpcErrorsIsMutable(); + rpcErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + rpcErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder addRpcErrors(com.google.rpc.Status value) { + if (rpcErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRpcErrorsIsMutable(); + rpcErrors_.add(value); + onChanged(); + } else { + rpcErrorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder addRpcErrors(int index, com.google.rpc.Status value) { + if (rpcErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRpcErrorsIsMutable(); + rpcErrors_.add(index, value); + onChanged(); + } else { + rpcErrorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder addRpcErrors(com.google.rpc.Status.Builder builderForValue) { + if (rpcErrorsBuilder_ == null) { + ensureRpcErrorsIsMutable(); + rpcErrors_.add(builderForValue.build()); + onChanged(); + } else { + rpcErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder addRpcErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (rpcErrorsBuilder_ == null) { + ensureRpcErrorsIsMutable(); + rpcErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + rpcErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder addAllRpcErrors(java.lang.Iterable values) { + if (rpcErrorsBuilder_ == null) { + ensureRpcErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rpcErrors_); + onChanged(); + } else { + rpcErrorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder clearRpcErrors() { + if (rpcErrorsBuilder_ == null) { + rpcErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rpcErrorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public Builder removeRpcErrors(int index) { + if (rpcErrorsBuilder_ == null) { + ensureRpcErrorsIsMutable(); + rpcErrors_.remove(index); + onChanged(); + } else { + rpcErrorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public com.google.rpc.Status.Builder getRpcErrorsBuilder(int index) { + return internalGetRpcErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public com.google.rpc.StatusOrBuilder getRpcErrorsOrBuilder(int index) { + if (rpcErrorsBuilder_ == null) { + return rpcErrors_.get(index); + } else { + return rpcErrorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public java.util.List getRpcErrorsOrBuilderList() { + if (rpcErrorsBuilder_ != null) { + return rpcErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rpcErrors_); + } + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public com.google.rpc.Status.Builder addRpcErrorsBuilder() { + return internalGetRpcErrorsFieldBuilder() + .addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public com.google.rpc.Status.Builder addRpcErrorsBuilder(int index) { + return internalGetRpcErrorsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of errors.
+     * Replaces the deprecated `errors` field.
+     * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + public java.util.List getRpcErrorsBuilderList() { + return internalGetRpcErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetRpcErrorsFieldBuilder() { + if (rpcErrorsBuilder_ == null) { + rpcErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + rpcErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rpcErrors_ = null; + } + return rpcErrorsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DataTableOperationErrors) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DataTableOperationErrors) + private static final com.google.cloud.chronicle.v1.DataTableOperationErrors DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DataTableOperationErrors(); + } + + public static com.google.cloud.chronicle.v1.DataTableOperationErrors getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataTableOperationErrors parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableOperationErrors getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsName.java new file mode 100644 index 000000000000..ce2b57552d60 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsName.java @@ -0,0 +1,270 @@ +/* + * 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.chronicle.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataTableOperationErrorsName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE_DATA_TABLE_OPERATION_ERRORS = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + private final String dataTableOperationErrors; + + @Deprecated + protected DataTableOperationErrorsName() { + project = null; + location = null; + instance = null; + dataTableOperationErrors = null; + } + + private DataTableOperationErrorsName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + dataTableOperationErrors = Preconditions.checkNotNull(builder.getDataTableOperationErrors()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getDataTableOperationErrors() { + return dataTableOperationErrors; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataTableOperationErrorsName of( + String project, String location, String instance, String dataTableOperationErrors) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setDataTableOperationErrors(dataTableOperationErrors) + .build(); + } + + public static String format( + String project, String location, String instance, String dataTableOperationErrors) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setDataTableOperationErrors(dataTableOperationErrors) + .build() + .toString(); + } + + public static DataTableOperationErrorsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE_DATA_TABLE_OPERATION_ERRORS.validatedMatch( + formattedString, + "DataTableOperationErrorsName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("instance"), + matchMap.get("data_table_operation_errors")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataTableOperationErrorsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE_DATA_TABLE_OPERATION_ERRORS.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 (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (dataTableOperationErrors != null) { + fieldMapBuilder.put("data_table_operation_errors", dataTableOperationErrors); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE_DATA_TABLE_OPERATION_ERRORS.instantiate( + "project", + project, + "location", + location, + "instance", + instance, + "data_table_operation_errors", + dataTableOperationErrors); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DataTableOperationErrorsName that = ((DataTableOperationErrorsName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.dataTableOperationErrors, that.dataTableOperationErrors); + } + 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(instance); + h *= 1000003; + h ^= Objects.hashCode(dataTableOperationErrors); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}. + */ + public static class Builder { + private String project; + private String location; + private String instance; + private String dataTableOperationErrors; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getDataTableOperationErrors() { + return dataTableOperationErrors; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setDataTableOperationErrors(String dataTableOperationErrors) { + this.dataTableOperationErrors = dataTableOperationErrors; + return this; + } + + private Builder(DataTableOperationErrorsName dataTableOperationErrorsName) { + this.project = dataTableOperationErrorsName.project; + this.location = dataTableOperationErrorsName.location; + this.instance = dataTableOperationErrorsName.instance; + this.dataTableOperationErrors = dataTableOperationErrorsName.dataTableOperationErrors; + } + + public DataTableOperationErrorsName build() { + return new DataTableOperationErrorsName(this); + } + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsOrBuilder.java new file mode 100644 index 000000000000..11052cc4ce0b --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsOrBuilder.java @@ -0,0 +1,118 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DataTableOperationErrorsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DataTableOperationErrors) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + java.util.List getRpcErrorsList(); + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + com.google.rpc.Status getRpcErrors(int index); + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + int getRpcErrorsCount(); + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + java.util.List getRpcErrorsOrBuilderList(); + + /** + * + * + *
+   * The list of errors.
+   * Replaces the deprecated `errors` field.
+   * 
+ * + * repeated .google.rpc.Status rpc_errors = 3; + */ + com.google.rpc.StatusOrBuilder getRpcErrorsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOrBuilder.java new file mode 100644 index 000000000000..844963fba78f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOrBuilder.java @@ -0,0 +1,528 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DataTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DataTable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the data table
+   * Format:
+   * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the data table
+   * Format:
+   * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The unique display name of the data table.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The unique display name of the data table.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. A user-provided description of the data table.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Required. A user-provided description of the data table.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Table create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Table create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Table create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Table update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Table update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Table update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List getColumnInfoList(); + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.chronicle.v1.DataTableColumnInfo getColumnInfo(int index); + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + int getColumnInfoCount(); + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List + getColumnInfoOrBuilderList(); + + /** + * + * + *
+   * Immutable. Details of all the columns in the table
+   * 
+ * + * + * repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.chronicle.v1.DataTableColumnInfoOrBuilder getColumnInfoOrBuilder(int index); + + /** + * + * + *
+   * Output only. Data table unique id
+   * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataTableUuid. + */ + java.lang.String getDataTableUuid(); + + /** + * + * + *
+   * Output only. Data table unique id
+   * 
+ * + * string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataTableUuid. + */ + com.google.protobuf.ByteString getDataTableUuidBytes(); + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the rules. + */ + java.util.List getRulesList(); + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of rules. + */ + int getRulesCount(); + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The rules at the given index. + */ + java.lang.String getRules(int index); + + /** + * + * + *
+   * Output only. The resource names for the associated Rules that use this
+   * data table. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}.
+   * {rule} here refers to the rule id.
+   * 
+ * + * repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the rules at the given index. + */ + com.google.protobuf.ByteString getRulesBytes(int index); + + /** + * + * + *
+   * Output only. The count of rules using the data table.
+   * 
+ * + * int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ruleAssociationsCount. + */ + int getRuleAssociationsCount(); + + /** + * + * + *
+   * Optional. User-provided TTL of the data table.
+   * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rowTimeToLive. + */ + java.lang.String getRowTimeToLive(); + + /** + * + * + *
+   * Optional. User-provided TTL of the data table.
+   * 
+ * + * string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rowTimeToLive. + */ + com.google.protobuf.ByteString getRowTimeToLiveBytes(); + + /** + * + * + *
+   * Output only. The count of rows in the data table.
+   * 
+ * + * int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The approximateRowCount. + */ + long getApproximateRowCount(); + + /** + * + * + *
+   * Optional. The scope info of the data table.
+   * During data table creation, if this field is not set, the data
+   * table without scopes (an unscoped table) will be created for a global
+   * user. For a scoped user, this field must be set. During data table
+   * update, if scope_info is requested to be updated, this field must be set.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scopeInfo field is set. + */ + boolean hasScopeInfo(); + + /** + * + * + *
+   * Optional. The scope info of the data table.
+   * During data table creation, if this field is not set, the data
+   * table without scopes (an unscoped table) will be created for a global
+   * user. For a scoped user, this field must be set. During data table
+   * update, if scope_info is requested to be updated, this field must be set.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scopeInfo. + */ + com.google.cloud.chronicle.v1.DataTableScopeInfo getScopeInfo(); + + /** + * + * + *
+   * Optional. The scope info of the data table.
+   * During data table creation, if this field is not set, the data
+   * table without scopes (an unscoped table) will be created for a global
+   * user. For a scoped user, this field must be set. During data table
+   * update, if scope_info is requested to be updated, this field must be set.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.chronicle.v1.DataTableScopeInfoOrBuilder getScopeInfoOrBuilder(); + + /** + * + * + *
+   * Output only. Source of the data table update.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateSource. + */ + int getUpdateSourceValue(); + + /** + * + * + *
+   * Output only. Source of the data table update.
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateSource. + */ + com.google.cloud.chronicle.v1.DataTableUpdateSource getUpdateSource(); + + /** + * + * + *
+   * Output only. Last update time of the TTL of the data table.
+   * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rowTimeToLiveUpdateTime field is set. + */ + boolean hasRowTimeToLiveUpdateTime(); + + /** + * + * + *
+   * Output only. Last update time of the TTL of the data table.
+   * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rowTimeToLiveUpdateTime. + */ + com.google.protobuf.Timestamp getRowTimeToLiveUpdateTime(); + + /** + * + * + *
+   * Output only. Last update time of the TTL of the data table.
+   * 
+ * + * + * .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getRowTimeToLiveUpdateTimeOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableProto.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableProto.java new file mode 100644 index 000000000000..26861a7a84d6 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableProto.java @@ -0,0 +1,656 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public final class DataTableProto extends com.google.protobuf.GeneratedFile { + private DataTableProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTableProto"); + } + + 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_chronicle_v1_CreateDataTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_GetDataTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_GetDataTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DataTable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DataTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DataTableRow_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DataTableRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_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/chronicle/v1/data_table.p" + + "roto\022\031google.cloud.chronicle.v1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_m" + + "ask.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\257\001\n" + + "\026CreateDataTableRequest\022:\n" + + "\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"chronicle.googleapis.com/DataTable\022=\n\n" + + "data_table\030\002" + + " \001(\0132$.google.cloud.chronicle.v1.DataTableB\003\340A\002\022\032\n\r" + + "data_table_id\030\003 \001(\tB\003\340A\002\"O\n" + + "\023GetDataTableRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"chronicle.googleapis.com/DataTable\"\215\001\n" + + "\026UpdateDataTableRequest\022=\n\n" + + "data_table\030\001" + + " \001(\0132$.google.cloud.chronicle.v1.DataTableB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\233\001\n" + + "\025ListDataTablesRequest\022:\n" + + "\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"chronicle.googleapis.com/DataTable\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\"f\n" + + "\026DeleteDataTableRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"chronicle.googleapis.com/DataTable\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"l\n" + + "\026ListDataTablesResponse\0229\n" + + "\013data_tables\030\001 \003(\0132$.google.cloud.chronicle.v1.DataTable\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\240\001\n" + + "\031CreateDataTableRowRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%chronicle.googleapis.com/DataTableRow\022D\n" + + "\016data_table_row\030\002 \001(\0132" + + "\'.google.cloud.chronicle.v1.DataTableRowB\003\340A\002\"\227\001\n" + + "\031UpdateDataTableRowRequest\022D\n" + + "\016data_table_row\030\001" + + " \001(\0132\'.google.cloud.chronicle.v1.DataTableRowB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\266\001\n" + + "\030ListDataTableRowsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%chronicle.googleapis.com/DataTableRow\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"{\n" + + "\031ListDataTableRowsResponse\022@\n" + + "\017data_table_rows\030\001 \003(\0132\'" + + ".google.cloud.chronicle.v1.DataTableRow\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"U\n" + + "\026GetDataTableRowRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%chronicle.googleapis.com/DataTableRow\"X\n" + + "\031DeleteDataTableRowRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%chronicle.googleapis.com/DataTableRow\"\254\001\n" + + "\036BulkCreateDataTableRowsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%chronicle.googleapis.com/DataTableRow\022K\n" + + "\010requests\030\002 \003" + + "(\01324.google.cloud.chronicle.v1.CreateDataTableRowRequestB\003\340A\002\"c\n" + + "\037BulkCreateDataTableRowsResponse\022@\n" + + "\017data_table_rows\030\001 \003(" + + "\0132\'.google.cloud.chronicle.v1.DataTableRow\"\246\001\n" + + "\033BulkGetDataTableRowsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%chronicle.googleapis.com/DataTableRow\022H\n" + + "\010requests\030\002 \003(\01321.go" + + "ogle.cloud.chronicle.v1.GetDataTableRowRequestB\003\340A\002\"`\n" + + "\034BulkGetDataTableRowsResponse\022@\n" + + "\017data_table_rows\030\001" + + " \003(\0132\'.google.cloud.chronicle.v1.DataTableRow\"\255\001\n" + + "\037BulkReplaceDataTableRowsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%chronicle.googleapis.com/DataTableRow\022K\n" + + "\010requests\030\002 \003(\01324.google.clou" + + "d.chronicle.v1.CreateDataTableRowRequestB\003\340A\002\"d\n" + + " BulkReplaceDataTableRowsResponse\022@\n" + + "\017data_table_rows\030\001" + + " \003(\0132\'.google.cloud.chronicle.v1.DataTableRow\"\254\001\n" + + "\036BulkUpdateDataTableRowsRequest\022=\n" + + "\006parent\030\001 \001(\tB-" + + "\340A\002\372A\'\022%chronicle.googleapis.com/DataTableRow\022K\n" + + "\010requests\030\002 \003(\01324.google.cloud.c" + + "hronicle.v1.UpdateDataTableRowRequestB\003\340A\002\"c\n" + + "\037BulkUpdateDataTableRowsResponse\022@\n" + + "\017data_table_rows\030\001 \003(\0132\'.google.cloud.chronicle.v1.DataTableRow\"b\n" + + "\022DataTableScopeInfo\022L\n" + + "\022data_access_scopes\030\001 \003(\tB0\340A\002\372A*\n" + + "(chronicle.googleapis.com/DataAccessScope\"\231\006\n" + + "\tDataTable\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\002\0224\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n" + + "\013column_info\030\006" + + " \003(\0132..google.cloud.chronicle.v1.DataTableColumnInfoB\003\340A\005\022\034\n" + + "\017data_table_uuid\030\007 \001(\tB\003\340A\003\022\022\n" + + "\005rules\030\010 \003(\tB\003\340A\003\022$\n" + + "\027rule_associations_count\030\t \001(\005B\003\340A\003\022\035\n" + + "\020row_time_to_live\030\n" + + " \001(\tB\003\340A\001\022\"\n" + + "\025approximate_row_count\030\013 \001(\003B\003\340A\003\022F\n\n" + + "scope_info\030\014" + + " \001(\0132-.google.cloud.chronicle.v1.DataTableScopeInfoB\003\340A\001\022L\n\r" + + "update_source\030\r" + + " \001(\01620.google.cloud.chronicle.v1.DataTableUpdateSourceB\003\340A\003\022E\n" + + "\034row_time_to_live_update_time\030\016" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\225\001\352A\221\001\n" + + "\"chronicle.googleapis.com/DataTable\022Tprojects/{project}/locations" + + "/{location}/instances/{instance}/dataTables/{data_table}*\n" + + "dataTables2\tdataTable\"\201\003\n" + + "\014DataTableRow\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\023\n" + + "\006values\030\002 \003(\tB\003\340A\002\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\035\n" + + "\020row_time_to_live\030\005 \001(\tB\003\340A\001:\275\001\352A\271\001\n" + + "%chronicle.googleapis.com/DataTableRow\022sprojects/{project}/locations/{locatio" + + "n}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}*\r" + + "dataTableRows2\014dataTableRow\"\372\002\n" + + "\023DataTableColumnInfo\022\034\n" + + "\022mapped_column_path\030\003 \001(\tH\000\022Y\n" + + "\013column_type\030\004 \001(\0162B.google.cloud.ch" + + "ronicle.v1.DataTableColumnInfo.DataTableColumnTypeH\000\022\031\n" + + "\014column_index\030\001 \001(\005B\003\340A\002\022\034\n" + + "\017original_column\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "key_column\030\005 \001(\010B\003\340A\001\022\034\n" + + "\017repeated_values\030\006 \001(\010B\003\340A\001\"j\n" + + "\023DataTableColumnType\022&\n" + + "\"DATA_TABLE_COLUMN_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006STRING\020\001\022\t\n" + + "\005REGEX\020\002\022\010\n" + + "\004CIDR\020\003\022\n\n" + + "\006NUMBER\020\004B\016\n" + + "\014path_or_type\"m\n" + + "\"GetDataTableOperationErrorsRequest\022G\n" + + "\004name\030\001 \001(\tB9\340A\002\372A3\n" + + "1chronicle.googleapis.com/DataTableOperationErrors\"\270\002\n" + + "\030DataTableOperationErrors\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022&\n\n" + + "rpc_errors\030\003 \003(\0132\022.google.rpc.Status:\340\001\352A\334\001\n" + + "1chronicle.googleapis.com/DataTableOperationErrors\022sprojects/{pro" + + "ject}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_t" + + "able_operation_errors}*\030dataTableOperationErrors2\030dataTableOperationErrors*a\n" + + "\025DataTableUpdateSource\022(\n" + + "$DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED\020\000\022\010\n" + + "\004USER\020\001\022\010\n" + + "\004RULE\020\002\022\n\n" + + "\006SEARCH\020\0032\211\034\n" + + "\020DataTableService\022\334\001\n" + + "\017CreateDataTable\0221.google.cloud.chronicle." + + "v1.CreateDataTableRequest\032$.google.cloud" + + ".chronicle.v1.DataTable\"p\332A\037parent,data_" + + "table,data_table_id\202\323\344\223\002H\":/v1/{parent=p" + + "rojects/*/locations/*/instances/*}/dataTables:\n" + + "data_table\022\302\001\n" + + "\016ListDataTables\0220.google.cloud.chronicle.v1.ListDataTablesR" + + "equest\0321.google.cloud.chronicle.v1.ListD" + + "ataTablesResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/" + + "{parent=projects/*/locations/*/instances/*}/dataTables\022\257\001\n" + + "\014GetDataTable\022..google.cloud.chronicle.v1.GetDataTableRequest\032" + + "$.google.cloud.chronicle.v1.DataTable\"I\332" + + "A\004name\202\323\344\223\002<\022:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\022\336\001\n" + + "\017UpdateDataTable\0221.google.cloud.chronicle.v1" + + ".UpdateDataTableRequest\032$.google.cloud.c" + + "hronicle.v1.DataTable\"r\332A\026data_table,upd" + + "ate_mask\202\323\344\223\002S2E/v1/{data_table.name=pro" + + "jects/*/locations/*/instances/*/dataTables/*}:\n" + + "data_table\022\255\001\n" + + "\017DeleteDataTable\0221." + + "google.cloud.chronicle.v1.DeleteDataTableRequest\032\026.google.protobuf.Empty\"O\332A\n" + + "name,force\202\323\344\223\002<*:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\022\357\001\n" + + "\022CreateDataTableRow\0224.google.cloud.chronicl" + + "e.v1.CreateDataTableRowRequest\032\'.google." + + "cloud.chronicle.v1.DataTableRow\"z\332A\025pare" + + "nt,data_table_row\202\323\344\223\002\\\"J/v1/{parent=pro" + + "jects/*/locations/*/instances/*/dataTables/*}/dataTableRows:\016data_table_row\022\204\002\n" + + "\022UpdateDataTableRow\0224.google.cloud.chroni" + + "cle.v1.UpdateDataTableRowRequest\032\'.googl" + + "e.cloud.chronicle.v1.DataTableRow\"\216\001\332A\032d" + + "ata_table_row,update_mask\202\323\344\223\002k2Y/v1/{da" + + "ta_table_row.name=projects/*/locations/*" + + "/instances/*/dataTables/*/dataTableRows/*}:\016data_table_row\022\333\001\n" + + "\021ListDataTableRows\0223.google.cloud.chronicle.v1.ListDataTab" + + "leRowsRequest\0324.google.cloud.chronicle.v" + + "1.ListDataTableRowsResponse\"[\332A\006parent\202\323" + + "\344\223\002L\022J/v1/{parent=projects/*/locations/*" + + "/instances/*/dataTables/*}/dataTableRows\022\310\001\n" + + "\017GetDataTableRow\0221.google.cloud.chronicle.v1.GetDataTableRowRequest\032\'.google" + + ".cloud.chronicle.v1.DataTableRow\"Y\332A\004nam" + + "e\202\323\344\223\002L\022J/v1/{name=projects/*/locations/" + + "*/instances/*/dataTables/*/dataTableRows/*}\022\275\001\n" + + "\022DeleteDataTableRow\0224.google.cloud.chronicle.v1.DeleteDataTableRowRequest" + + "\032\026.google.protobuf.Empty\"Y\332A\004name\202\323\344\223\002L*" + + "J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\022\204\002\n" + + "\027BulkCreateDataTableRows\0229.google.cloud.c" + + "hronicle.v1.BulkCreateDataTableRowsRequest\032:.google.cloud.chronicle.v1.BulkCreat" + + "eDataTableRowsResponse\"r\332A\017parent,reques" + + "ts\202\323\344\223\002Z\"U/v1/{parent=projects/*/locatio" + + "ns/*/instances/*/dataTables/*}/dataTableRows:bulkCreate:\001*\022\370\001\n" + + "\024BulkGetDataTableRows\0226.google.cloud.chronicle.v1.BulkGetD" + + "ataTableRowsRequest\0327.google.cloud.chron" + + "icle.v1.BulkGetDataTableRowsResponse\"o\332A" + + "\017parent,requests\202\323\344\223\002W\"R/v1/{parent=proj" + + "ects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet:\001*\022\210\002\n" + + "\030BulkReplaceDataTableRows\022:.google.cloud.chroni" + + "cle.v1.BulkReplaceDataTableRowsRequest\032;.google.cloud.chronicle.v1.BulkReplaceDa" + + "taTableRowsResponse\"s\332A\017parent,requests\202" + + "\323\344\223\002[\"V/v1/{parent=projects/*/locations/" + + "*/instances/*/dataTables/*}/dataTableRows:bulkReplace:\001*\022\204\002\n" + + "\027BulkUpdateDataTableRows\0229.google.cloud.chronicle.v1.BulkUpd" + + "ateDataTableRowsRequest\032:.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRespo" + + "nse\"r\332A\017parent,requests\202\323\344\223\002Z\"U/v1/{pare" + + "nt=projects/*/locations/*/instances/*/da" + + "taTables/*}/dataTableRows:bulkUpdate:\001*\022\352\001\n" + + "\033GetDataTableOperationErrors\022=.google.cloud.chronicle.v1.GetDataTableOperatio" + + "nErrorsRequest\0323.google.cloud.chronicle." + + "v1.DataTableOperationErrors\"W\332A\004name\202\323\344\223" + + "\002J\022H/v1/{name=projects/*/locations/*/ins" + + "tances/*/dataTableOperationErrors/*}\032\252\001\312" + + "A\030chronicle.googleapis.com\322A\213\001https://ww" + + "w.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readon" + + "ly,https://www.googleapis.com/auth/cloud-platformB\305\001\n" + + "\035com.google.cloud.chronicle.v1B\016DataTableProtoP\001Z;cloud.google.com/" + + "go/chronicle/apiv1/chroniclepb;chronicle" + + "pb\252\002\031Google.Cloud.Chronicle.V1\312\002\031Google\\" + + "Cloud\\Chronicle\\V1\352\002\034Google::Cloud::Chronicle::V1b\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.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_CreateDataTableRequest_descriptor, + new java.lang.String[] { + "Parent", "DataTable", "DataTableId", + }); + internal_static_google_cloud_chronicle_v1_GetDataTableRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_chronicle_v1_GetDataTableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_GetDataTableRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_descriptor, + new java.lang.String[] { + "DataTable", "UpdateMask", + }); + internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", + }); + internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_descriptor, + new java.lang.String[] { + "DataTables", "NextPageToken", + }); + internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_CreateDataTableRowRequest_descriptor, + new java.lang.String[] { + "Parent", "DataTableRow", + }); + internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_descriptor, + new java.lang.String[] { + "DataTableRow", "UpdateMask", + }); + internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_descriptor, + new java.lang.String[] { + "DataTableRows", "NextPageToken", + }); + internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkCreateDataTableRowsResponse_descriptor, + new java.lang.String[] { + "DataTableRows", + }); + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkGetDataTableRowsResponse_descriptor, + new java.lang.String[] { + "DataTableRows", + }); + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkReplaceDataTableRowsResponse_descriptor, + new java.lang.String[] { + "DataTableRows", + }); + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_BulkUpdateDataTableRowsResponse_descriptor, + new java.lang.String[] { + "DataTableRows", + }); + internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_descriptor, + new java.lang.String[] { + "DataAccessScopes", + }); + internal_static_google_cloud_chronicle_v1_DataTable_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_chronicle_v1_DataTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DataTable_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "ColumnInfo", + "DataTableUuid", + "Rules", + "RuleAssociationsCount", + "RowTimeToLive", + "ApproximateRowCount", + "ScopeInfo", + "UpdateSource", + "RowTimeToLiveUpdateTime", + }); + internal_static_google_cloud_chronicle_v1_DataTableRow_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_chronicle_v1_DataTableRow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DataTableRow_descriptor, + new java.lang.String[] { + "Name", "Values", "CreateTime", "UpdateTime", "RowTimeToLive", + }); + internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DataTableColumnInfo_descriptor, + new java.lang.String[] { + "MappedColumnPath", + "ColumnType", + "ColumnIndex", + "OriginalColumn", + "KeyColumn", + "RepeatedValues", + "PathOrType", + }); + internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_DataTableOperationErrors_descriptor, + new java.lang.String[] { + "Name", "RpcErrors", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRow.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRow.java new file mode 100644 index 000000000000..3702976fa980 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRow.java @@ -0,0 +1,1708 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * DataTableRow represents a single row in a data table.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableRow} + */ +@com.google.protobuf.Generated +public final class DataTableRow extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DataTableRow) + DataTableRowOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTableRow"); + } + + // Use DataTableRow.newBuilder() to construct. + private DataTableRow(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataTableRow() { + name_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rowTimeToLive_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableRow.class, + com.google.cloud.chronicle.v1.DataTableRow.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name of the data table
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * 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 resource name of the data table
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * 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 VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. DataTableRow create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. DataTableRow create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. DataTableRow create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. DataTableRow update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. DataTableRow update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. DataTableRow update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ROW_TIME_TO_LIVE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object rowTimeToLive_ = ""; + + /** + * + * + *
+   * Optional. User-provided TTL of the data table row.
+   * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rowTimeToLive. + */ + @java.lang.Override + public java.lang.String getRowTimeToLive() { + java.lang.Object ref = rowTimeToLive_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowTimeToLive_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. User-provided TTL of the data table row.
+   * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rowTimeToLive. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRowTimeToLiveBytes() { + java.lang.Object ref = rowTimeToLive_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rowTimeToLive_ = 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_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, values_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rowTimeToLive_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, rowTimeToLive_); + } + 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_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rowTimeToLive_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, rowTimeToLive_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.DataTableRow)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DataTableRow other = + (com.google.cloud.chronicle.v1.DataTableRow) obj; + + if (!getName().equals(other.getName())) return false; + if (!getValuesList().equals(other.getValuesList())) 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 (!getRowTimeToLive().equals(other.getRowTimeToLive())) return false; + if (!getUnknownFields().equals(other.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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ROW_TIME_TO_LIVE_FIELD_NUMBER; + hash = (53 * hash) + getRowTimeToLive().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DataTableRow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableRow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableRow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableRow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableRow 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.chronicle.v1.DataTableRow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableRow 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.chronicle.v1.DataTableRow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableRow 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.chronicle.v1.DataTableRow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+   * DataTableRow represents a single row in a data table.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableRow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DataTableRow) + com.google.cloud.chronicle.v1.DataTableRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableRow.class, + com.google.cloud.chronicle.v1.DataTableRow.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DataTableRow.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(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + rowTimeToLive_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableRow_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow build() { + com.google.cloud.chronicle.v1.DataTableRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow buildPartial() { + com.google.cloud.chronicle.v1.DataTableRow result = + new com.google.cloud.chronicle.v1.DataTableRow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DataTableRow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rowTimeToLive_ = rowTimeToLive_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.DataTableRow) { + return mergeFrom((com.google.cloud.chronicle.v1.DataTableRow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DataTableRow other) { + if (other == com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000002; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getRowTimeToLive().isEmpty()) { + rowTimeToLive_ = other.rowTimeToLive_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + rowTimeToLive_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the data table
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * 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 resource name of the data table
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. All column values for a single row. The values should be in the
+     * same order as the columns of the data tables.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + 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. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. DataTableRow create time
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. DataTableRow update time
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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 java.lang.Object rowTimeToLive_ = ""; + + /** + * + * + *
+     * Optional. User-provided TTL of the data table row.
+     * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rowTimeToLive. + */ + public java.lang.String getRowTimeToLive() { + java.lang.Object ref = rowTimeToLive_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowTimeToLive_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table row.
+     * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rowTimeToLive. + */ + public com.google.protobuf.ByteString getRowTimeToLiveBytes() { + java.lang.Object ref = rowTimeToLive_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rowTimeToLive_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table row.
+     * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rowTimeToLive to set. + * @return This builder for chaining. + */ + public Builder setRowTimeToLive(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rowTimeToLive_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table row.
+     * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRowTimeToLive() { + rowTimeToLive_ = getDefaultInstance().getRowTimeToLive(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-provided TTL of the data table row.
+     * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for rowTimeToLive to set. + * @return This builder for chaining. + */ + public Builder setRowTimeToLiveBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rowTimeToLive_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DataTableRow) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DataTableRow) + private static final com.google.cloud.chronicle.v1.DataTableRow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DataTableRow(); + } + + public static com.google.cloud.chronicle.v1.DataTableRow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataTableRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowName.java new file mode 100644 index 000000000000..cd9bea842748 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowName.java @@ -0,0 +1,298 @@ +/* + * 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.chronicle.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataTableRowName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE_DATA_TABLE_DATA_TABLE_ROW = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + private final String dataTable; + private final String dataTableRow; + + @Deprecated + protected DataTableRowName() { + project = null; + location = null; + instance = null; + dataTable = null; + dataTableRow = null; + } + + private DataTableRowName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + dataTable = Preconditions.checkNotNull(builder.getDataTable()); + dataTableRow = Preconditions.checkNotNull(builder.getDataTableRow()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getDataTable() { + return dataTable; + } + + public String getDataTableRow() { + return dataTableRow; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataTableRowName of( + String project, String location, String instance, String dataTable, String dataTableRow) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setDataTable(dataTable) + .setDataTableRow(dataTableRow) + .build(); + } + + public static String format( + String project, String location, String instance, String dataTable, String dataTableRow) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setDataTable(dataTable) + .setDataTableRow(dataTableRow) + .build() + .toString(); + } + + public static DataTableRowName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE_DATA_TABLE_DATA_TABLE_ROW.validatedMatch( + formattedString, "DataTableRowName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("instance"), + matchMap.get("data_table"), + matchMap.get("data_table_row")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataTableRowName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE_DATA_TABLE_DATA_TABLE_ROW.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 (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (dataTable != null) { + fieldMapBuilder.put("data_table", dataTable); + } + if (dataTableRow != null) { + fieldMapBuilder.put("data_table_row", dataTableRow); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE_DATA_TABLE_DATA_TABLE_ROW.instantiate( + "project", + project, + "location", + location, + "instance", + instance, + "data_table", + dataTable, + "data_table_row", + dataTableRow); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DataTableRowName that = ((DataTableRowName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.dataTable, that.dataTable) + && Objects.equals(this.dataTableRow, that.dataTableRow); + } + 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(instance); + h *= 1000003; + h ^= Objects.hashCode(dataTable); + h *= 1000003; + h ^= Objects.hashCode(dataTableRow); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}. + */ + public static class Builder { + private String project; + private String location; + private String instance; + private String dataTable; + private String dataTableRow; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getDataTable() { + return dataTable; + } + + public String getDataTableRow() { + return dataTableRow; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setDataTable(String dataTable) { + this.dataTable = dataTable; + return this; + } + + public Builder setDataTableRow(String dataTableRow) { + this.dataTableRow = dataTableRow; + return this; + } + + private Builder(DataTableRowName dataTableRowName) { + this.project = dataTableRowName.project; + this.location = dataTableRowName.location; + this.instance = dataTableRowName.instance; + this.dataTable = dataTableRowName.dataTable; + this.dataTableRow = dataTableRowName.dataTableRow; + } + + public DataTableRowName build() { + return new DataTableRowName(this); + } + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowOrBuilder.java new file mode 100644 index 000000000000..2ce4f71deb08 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DataTableRowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DataTableRow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the data table
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the data table
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + + /** + * + * + *
+   * Required. All column values for a single row. The values should be in the
+   * same order as the columns of the data tables.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+   * Output only. DataTableRow create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. DataTableRow create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. DataTableRow create time
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. DataTableRow update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. DataTableRow update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. DataTableRow update time
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. User-provided TTL of the data table row.
+   * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rowTimeToLive. + */ + java.lang.String getRowTimeToLive(); + + /** + * + * + *
+   * Optional. User-provided TTL of the data table row.
+   * 
+ * + * string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rowTimeToLive. + */ + com.google.protobuf.ByteString getRowTimeToLiveBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableScopeInfo.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableScopeInfo.java new file mode 100644 index 000000000000..76914eda333f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableScopeInfo.java @@ -0,0 +1,762 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * DataTableScopeInfo specifies the scope info of the data table.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableScopeInfo} + */ +@com.google.protobuf.Generated +public final class DataTableScopeInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DataTableScopeInfo) + DataTableScopeInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTableScopeInfo"); + } + + // Use DataTableScopeInfo.newBuilder() to construct. + private DataTableScopeInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataTableScopeInfo() { + dataAccessScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableScopeInfo.class, + com.google.cloud.chronicle.v1.DataTableScopeInfo.Builder.class); + } + + public static final int DATA_ACCESS_SCOPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataAccessScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the dataAccessScopes. + */ + public com.google.protobuf.ProtocolStringList getDataAccessScopesList() { + return dataAccessScopes_; + } + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of dataAccessScopes. + */ + public int getDataAccessScopesCount() { + return dataAccessScopes_.size(); + } + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The dataAccessScopes at the given index. + */ + public java.lang.String getDataAccessScopes(int index) { + return dataAccessScopes_.get(index); + } + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the dataAccessScopes at the given index. + */ + public com.google.protobuf.ByteString getDataAccessScopesBytes(int index) { + return dataAccessScopes_.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 < dataAccessScopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, dataAccessScopes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < dataAccessScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(dataAccessScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getDataAccessScopesList().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.chronicle.v1.DataTableScopeInfo)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DataTableScopeInfo other = + (com.google.cloud.chronicle.v1.DataTableScopeInfo) obj; + + if (!getDataAccessScopesList().equals(other.getDataAccessScopesList())) return false; + if (!getUnknownFields().equals(other.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 (getDataAccessScopesCount() > 0) { + hash = (37 * hash) + DATA_ACCESS_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getDataAccessScopesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo 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.chronicle.v1.DataTableScopeInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo 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.chronicle.v1.DataTableScopeInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo 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.chronicle.v1.DataTableScopeInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+   * DataTableScopeInfo specifies the scope info of the data table.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DataTableScopeInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DataTableScopeInfo) + com.google.cloud.chronicle.v1.DataTableScopeInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DataTableScopeInfo.class, + com.google.cloud.chronicle.v1.DataTableScopeInfo.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DataTableScopeInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataAccessScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DataTableScopeInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableScopeInfo getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DataTableScopeInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableScopeInfo build() { + com.google.cloud.chronicle.v1.DataTableScopeInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableScopeInfo buildPartial() { + com.google.cloud.chronicle.v1.DataTableScopeInfo result = + new com.google.cloud.chronicle.v1.DataTableScopeInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DataTableScopeInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + dataAccessScopes_.makeImmutable(); + result.dataAccessScopes_ = dataAccessScopes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.DataTableScopeInfo) { + return mergeFrom((com.google.cloud.chronicle.v1.DataTableScopeInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DataTableScopeInfo other) { + if (other == com.google.cloud.chronicle.v1.DataTableScopeInfo.getDefaultInstance()) + return this; + if (!other.dataAccessScopes_.isEmpty()) { + if (dataAccessScopes_.isEmpty()) { + dataAccessScopes_ = other.dataAccessScopes_; + bitField0_ |= 0x00000001; + } else { + ensureDataAccessScopesIsMutable(); + dataAccessScopes_.addAll(other.dataAccessScopes_); + } + 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(); + ensureDataAccessScopesIsMutable(); + dataAccessScopes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList dataAccessScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDataAccessScopesIsMutable() { + if (!dataAccessScopes_.isModifiable()) { + dataAccessScopes_ = new com.google.protobuf.LazyStringArrayList(dataAccessScopes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the dataAccessScopes. + */ + public com.google.protobuf.ProtocolStringList getDataAccessScopesList() { + dataAccessScopes_.makeImmutable(); + return dataAccessScopes_; + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of dataAccessScopes. + */ + public int getDataAccessScopesCount() { + return dataAccessScopes_.size(); + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The dataAccessScopes at the given index. + */ + public java.lang.String getDataAccessScopes(int index) { + return dataAccessScopes_.get(index); + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the dataAccessScopes at the given index. + */ + public com.google.protobuf.ByteString getDataAccessScopesBytes(int index) { + return dataAccessScopes_.getByteString(index); + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The dataAccessScopes to set. + * @return This builder for chaining. + */ + public Builder setDataAccessScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataAccessScopesIsMutable(); + dataAccessScopes_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataAccessScopes to add. + * @return This builder for chaining. + */ + public Builder addDataAccessScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataAccessScopesIsMutable(); + dataAccessScopes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The dataAccessScopes to add. + * @return This builder for chaining. + */ + public Builder addAllDataAccessScopes(java.lang.Iterable values) { + ensureDataAccessScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataAccessScopes_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataAccessScopes() { + dataAccessScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Contains the list of scope names of the data table. If the list
+     * is empty, the data table is treated as unscoped. The scope names should be
+     * full resource names and should be of the format:
+     * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+     * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the dataAccessScopes to add. + * @return This builder for chaining. + */ + public Builder addDataAccessScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDataAccessScopesIsMutable(); + dataAccessScopes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DataTableScopeInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DataTableScopeInfo) + private static final com.google.cloud.chronicle.v1.DataTableScopeInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DataTableScopeInfo(); + } + + public static com.google.cloud.chronicle.v1.DataTableScopeInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataTableScopeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableScopeInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableScopeInfoOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableScopeInfoOrBuilder.java new file mode 100644 index 000000000000..6b1b77ac7d48 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableScopeInfoOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DataTableScopeInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DataTableScopeInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the dataAccessScopes. + */ + java.util.List getDataAccessScopesList(); + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of dataAccessScopes. + */ + int getDataAccessScopesCount(); + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The dataAccessScopes at the given index. + */ + java.lang.String getDataAccessScopes(int index); + + /** + * + * + *
+   * Required. Contains the list of scope names of the data table. If the list
+   * is empty, the data table is treated as unscoped. The scope names should be
+   * full resource names and should be of the format:
+   * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}"
+   * 
+ * + * + * repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the dataAccessScopes at the given index. + */ + com.google.protobuf.ByteString getDataAccessScopesBytes(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableUpdateSource.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableUpdateSource.java new file mode 100644 index 000000000000..f5f2265bded4 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableUpdateSource.java @@ -0,0 +1,217 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * DataTableUpdateSource denotes the source that updated the data table.
+ * 
+ * + * Protobuf enum {@code google.cloud.chronicle.v1.DataTableUpdateSource} + */ +@com.google.protobuf.Generated +public enum DataTableUpdateSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The data table is updated by the user.
+   * 
+ * + * DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; + */ + DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+   * The data table is updated by the user.
+   * 
+ * + * USER = 1; + */ + USER(1), + /** + * + * + *
+   * The data table is updated by the rule.
+   * 
+ * + * RULE = 2; + */ + RULE(2), + /** + * + * + *
+   * The data table is updated by the search.
+   * 
+ * + * SEARCH = 3; + */ + SEARCH(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataTableUpdateSource"); + } + + /** + * + * + *
+   * The data table is updated by the user.
+   * 
+ * + * DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; + */ + public static final int DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The data table is updated by the user.
+   * 
+ * + * USER = 1; + */ + public static final int USER_VALUE = 1; + + /** + * + * + *
+   * The data table is updated by the rule.
+   * 
+ * + * RULE = 2; + */ + public static final int RULE_VALUE = 2; + + /** + * + * + *
+   * The data table is updated by the search.
+   * 
+ * + * SEARCH = 3; + */ + public static final int SEARCH_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 DataTableUpdateSource 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 DataTableUpdateSource forNumber(int value) { + switch (value) { + case 0: + return DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED; + case 1: + return USER; + case 2: + return RULE; + case 3: + return SEARCH; + 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 DataTableUpdateSource findValueByNumber(int number) { + return DataTableUpdateSource.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.chronicle.v1.DataTableProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DataTableUpdateSource[] VALUES = values(); + + public static DataTableUpdateSource 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 DataTableUpdateSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.chronicle.v1.DataTableUpdateSource) +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRequest.java new file mode 100644 index 000000000000..1104c241a8f2 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRequest.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request message for deleting data tables.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DeleteDataTableRequest} + */ +@com.google.protobuf.Generated +public final class DeleteDataTableRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DeleteDataTableRequest) + DeleteDataTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteDataTableRequest"); + } + + // Use DeleteDataTableRequest.newBuilder() to construct. + private DeleteDataTableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteDataTableRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DeleteDataTableRequest.class, + com.google.cloud.chronicle.v1.DeleteDataTableRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the data table to delete.
+   * Format
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * 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 data table to delete.
+   * Format
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, any rows under this data table will also be
+   * deleted. (Otherwise, the request will only work if the data table has no
+   * rows.)
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.DeleteDataTableRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DeleteDataTableRequest other = + (com.google.cloud.chronicle.v1.DeleteDataTableRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest 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.chronicle.v1.DeleteDataTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest 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.chronicle.v1.DeleteDataTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest 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.chronicle.v1.DeleteDataTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 deleting data tables.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DeleteDataTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DeleteDataTableRequest) + com.google.cloud.chronicle.v1.DeleteDataTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DeleteDataTableRequest.class, + com.google.cloud.chronicle.v1.DeleteDataTableRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DeleteDataTableRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DeleteDataTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRequest build() { + com.google.cloud.chronicle.v1.DeleteDataTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRequest buildPartial() { + com.google.cloud.chronicle.v1.DeleteDataTableRequest result = + new com.google.cloud.chronicle.v1.DeleteDataTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DeleteDataTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.DeleteDataTableRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.DeleteDataTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DeleteDataTableRequest other) { + if (other == com.google.cloud.chronicle.v1.DeleteDataTableRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the data table to delete.
+     * Format
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to delete.
+     * Format
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to delete.
+     * Format
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to delete.
+     * Format
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to delete.
+     * Format
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, any rows under this data table will also be
+     * deleted. (Otherwise, the request will only work if the data table has no
+     * rows.)
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, any rows under this data table will also be
+     * deleted. (Otherwise, the request will only work if the data table has no
+     * rows.)
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, any rows under this data table will also be
+     * deleted. (Otherwise, the request will only work if the data table has no
+     * rows.)
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.DeleteDataTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DeleteDataTableRequest) + private static final com.google.cloud.chronicle.v1.DeleteDataTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DeleteDataTableRequest(); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRequestOrBuilder.java new file mode 100644 index 000000000000..76f40a97d99b --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DeleteDataTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DeleteDataTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the data table to delete.
+   * Format
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * 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 data table to delete.
+   * Format
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, any rows under this data table will also be
+   * deleted. (Otherwise, the request will only work if the data table has no
+   * rows.)
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRowRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRowRequest.java new file mode 100644 index 000000000000..8af810aff880 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRowRequest.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to delete data table row.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DeleteDataTableRowRequest} + */ +@com.google.protobuf.Generated +public final class DeleteDataTableRowRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.DeleteDataTableRowRequest) + DeleteDataTableRowRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteDataTableRowRequest"); + } + + // Use DeleteDataTableRowRequest.newBuilder() to construct. + private DeleteDataTableRowRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteDataTableRowRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.class, + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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 data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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.chronicle.v1.DeleteDataTableRowRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest other = + (com.google.cloud.chronicle.v1.DeleteDataTableRowRequest) 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.chronicle.v1.DeleteDataTableRowRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest 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.chronicle.v1.DeleteDataTableRowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest 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.chronicle.v1.DeleteDataTableRowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest 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.chronicle.v1.DeleteDataTableRowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 delete data table row.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.DeleteDataTableRowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.DeleteDataTableRowRequest) + com.google.cloud.chronicle.v1.DeleteDataTableRowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.class, + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.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.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_DeleteDataTableRowRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRowRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRowRequest build() { + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRowRequest buildPartial() { + com.google.cloud.chronicle.v1.DeleteDataTableRowRequest result = + new com.google.cloud.chronicle.v1.DeleteDataTableRowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.DeleteDataTableRowRequest 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.chronicle.v1.DeleteDataTableRowRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.DeleteDataTableRowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.DeleteDataTableRowRequest other) { + if (other == com.google.cloud.chronicle.v1.DeleteDataTableRowRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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.chronicle.v1.DeleteDataTableRowRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.DeleteDataTableRowRequest) + private static final com.google.cloud.chronicle.v1.DeleteDataTableRowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.DeleteDataTableRowRequest(); + } + + public static com.google.cloud.chronicle.v1.DeleteDataTableRowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataTableRowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.DeleteDataTableRowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRowRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRowRequestOrBuilder.java new file mode 100644 index 000000000000..39d43bd8d16e --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DeleteDataTableRowRequestOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface DeleteDataTableRowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.DeleteDataTableRowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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 data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableOperationErrorsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableOperationErrorsRequest.java new file mode 100644 index 000000000000..ee76cdc440a4 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableOperationErrorsRequest.java @@ -0,0 +1,633 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * The request message for GetDataTableOperationErrors.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest} + */ +@com.google.protobuf.Generated +public final class GetDataTableOperationErrorsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest) + GetDataTableOperationErrorsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetDataTableOperationErrorsRequest"); + } + + // Use GetDataTableOperationErrorsRequest.newBuilder() to construct. + private GetDataTableOperationErrorsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDataTableOperationErrorsRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.class, + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * + * 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.chronicle.v1.GetDataTableOperationErrorsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest other = + (com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest) 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.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest 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.chronicle.v1.GetDataTableOperationErrorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest 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.chronicle.v1.GetDataTableOperationErrorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest 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.chronicle.v1.GetDataTableOperationErrorsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for GetDataTableOperationErrors.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest) + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.class, + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.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.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableOperationErrorsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest build() { + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest buildPartial() { + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest result = + new com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest 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.chronicle.v1.GetDataTableOperationErrorsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest other) { + if (other + == com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name for the data table operation errors.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+     * 
+ * + * + * 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.chronicle.v1.GetDataTableOperationErrorsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest) + private static final com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest(); + } + + public static com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataTableOperationErrorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableOperationErrorsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableOperationErrorsRequestOrBuilder.java new file mode 100644 index 000000000000..002aa57fd4ea --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableOperationErrorsRequestOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface GetDataTableOperationErrorsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name for the data table operation errors.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
+   * 
+ * + * + * 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRequest.java new file mode 100644 index 000000000000..b3ffe6b89055 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRequest.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * A request to get details about a data table.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.GetDataTableRequest} + */ +@com.google.protobuf.Generated +public final class GetDataTableRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.GetDataTableRequest) + GetDataTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetDataTableRequest"); + } + + // Use GetDataTableRequest.newBuilder() to construct. + private GetDataTableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDataTableRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetDataTableRequest.class, + com.google.cloud.chronicle.v1.GetDataTableRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the data table to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * 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 data table to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * 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.chronicle.v1.GetDataTableRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.GetDataTableRequest other = + (com.google.cloud.chronicle.v1.GetDataTableRequest) 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.chronicle.v1.GetDataTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest 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.chronicle.v1.GetDataTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest 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.chronicle.v1.GetDataTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest 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.chronicle.v1.GetDataTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to get details about a data table.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.GetDataTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.GetDataTableRequest) + com.google.cloud.chronicle.v1.GetDataTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetDataTableRequest.class, + com.google.cloud.chronicle.v1.GetDataTableRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.GetDataTableRequest.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.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.GetDataTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRequest build() { + com.google.cloud.chronicle.v1.GetDataTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRequest buildPartial() { + com.google.cloud.chronicle.v1.GetDataTableRequest result = + new com.google.cloud.chronicle.v1.GetDataTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.GetDataTableRequest 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.chronicle.v1.GetDataTableRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.GetDataTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.GetDataTableRequest other) { + if (other == com.google.cloud.chronicle.v1.GetDataTableRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the data table to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+     * 
+ * + * + * 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.chronicle.v1.GetDataTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.GetDataTableRequest) + private static final com.google.cloud.chronicle.v1.GetDataTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.GetDataTableRequest(); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRequestOrBuilder.java new file mode 100644 index 000000000000..84cb6f2e92d1 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRequestOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface GetDataTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.GetDataTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the data table to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * 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 data table to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
+   * 
+ * + * + * 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRowRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRowRequest.java new file mode 100644 index 000000000000..48685b3b04e6 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRowRequest.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to get data table row.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.GetDataTableRowRequest} + */ +@com.google.protobuf.Generated +public final class GetDataTableRowRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.GetDataTableRowRequest) + GetDataTableRowRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetDataTableRowRequest"); + } + + // Use GetDataTableRowRequest.newBuilder() to construct. + private GetDataTableRowRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDataTableRowRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetDataTableRowRequest.class, + com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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 data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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.chronicle.v1.GetDataTableRowRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.GetDataTableRowRequest other = + (com.google.cloud.chronicle.v1.GetDataTableRowRequest) 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.chronicle.v1.GetDataTableRowRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest 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.chronicle.v1.GetDataTableRowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest 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.chronicle.v1.GetDataTableRowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest 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.chronicle.v1.GetDataTableRowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 get data table row.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.GetDataTableRowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.GetDataTableRowRequest) + com.google.cloud.chronicle.v1.GetDataTableRowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.GetDataTableRowRequest.class, + com.google.cloud.chronicle.v1.GetDataTableRowRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.GetDataTableRowRequest.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.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_GetDataTableRowRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRowRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.GetDataTableRowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRowRequest build() { + com.google.cloud.chronicle.v1.GetDataTableRowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRowRequest buildPartial() { + com.google.cloud.chronicle.v1.GetDataTableRowRequest result = + new com.google.cloud.chronicle.v1.GetDataTableRowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.GetDataTableRowRequest 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.chronicle.v1.GetDataTableRowRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.GetDataTableRowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.GetDataTableRowRequest other) { + if (other == com.google.cloud.chronicle.v1.GetDataTableRowRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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 data table row i,e row_id.
+     * Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * 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.chronicle.v1.GetDataTableRowRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.GetDataTableRowRequest) + private static final com.google.cloud.chronicle.v1.GetDataTableRowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.GetDataTableRowRequest(); + } + + public static com.google.cloud.chronicle.v1.GetDataTableRowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataTableRowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.GetDataTableRowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRowRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRowRequestOrBuilder.java new file mode 100644 index 000000000000..193ffe4d4894 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/GetDataTableRowRequestOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface GetDataTableRowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.GetDataTableRowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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 data table row i,e row_id.
+   * Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsRequest.java new file mode 100644 index 000000000000..0343b1f813d5 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsRequest.java @@ -0,0 +1,1315 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to list data table rows.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTableRowsRequest} + */ +@com.google.protobuf.Generated +public final class ListDataTableRowsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListDataTableRowsRequest) + ListDataTableRowsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDataTableRowsRequest"); + } + + // Use ListDataTableRowsRequest.newBuilder() to construct. + private ListDataTableRowsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDataTableRowsRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.ListDataTableRowsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 id of the data table.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 data table rows to return. The service may
+   * return fewer than this value. If unspecified, at most 100 data table rows
+   * will be returned. 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. A page token, received from a previous `ListDataTableRows` 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. A page token, received from a previous `ListDataTableRows` 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 ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter facilitating search over data table rows. This filter
+   * performs a case-insensitive substring match on the row values.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter facilitating search over data table rows. This filter
+   * performs a case-insensitive substring match on the row values.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.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(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.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(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.ListDataTableRowsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListDataTableRowsRequest other = + (com.google.cloud.chronicle.v1.ListDataTableRowsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest 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.chronicle.v1.ListDataTableRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest 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.chronicle.v1.ListDataTableRowsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest 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.chronicle.v1.ListDataTableRowsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 list data table rows.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTableRowsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListDataTableRowsRequest) + com.google.cloud.chronicle.v1.ListDataTableRowsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTableRowsRequest.class, + com.google.cloud.chronicle.v1.ListDataTableRowsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListDataTableRowsRequest.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_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListDataTableRowsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsRequest build() { + com.google.cloud.chronicle.v1.ListDataTableRowsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsRequest buildPartial() { + com.google.cloud.chronicle.v1.ListDataTableRowsRequest result = + new com.google.cloud.chronicle.v1.ListDataTableRowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.ListDataTableRowsRequest 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.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.ListDataTableRowsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.ListDataTableRowsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListDataTableRowsRequest other) { + if (other == com.google.cloud.chronicle.v1.ListDataTableRowsRequest.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.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The resource id of the data table.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 id of the data table.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * 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 data table rows to return. The service may
+     * return fewer than this value. If unspecified, at most 100 data table rows
+     * will be returned. 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 data table rows to return. The service may
+     * return fewer than this value. If unspecified, at most 100 data table rows
+     * will be returned. 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 data table rows to return. The service may
+     * return fewer than this value. If unspecified, at most 100 data table rows
+     * will be returned. 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. A page token, received from a previous `ListDataTableRows` 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. A page token, received from a previous `ListDataTableRows` 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. A page token, received from a previous `ListDataTableRows` 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. A page token, received from a previous `ListDataTableRows` 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. A page token, received from a previous `ListDataTableRows` 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 orderBy_ = ""; + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter facilitating search over data table rows. This filter
+     * performs a case-insensitive substring match on the row values.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter facilitating search over data table rows. This filter
+     * performs a case-insensitive substring match on the row values.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter facilitating search over data table rows. This filter
+     * performs a case-insensitive substring match on the row values.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter facilitating search over data table rows. This filter
+     * performs a case-insensitive substring match on the row values.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter facilitating search over data table rows. This filter
+     * performs a case-insensitive substring match on the row values.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ListDataTableRowsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListDataTableRowsRequest) + private static final com.google.cloud.chronicle.v1.ListDataTableRowsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListDataTableRowsRequest(); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataTableRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsRequestOrBuilder.java new file mode 100644 index 000000000000..6ae28aedc598 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListDataTableRowsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListDataTableRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource id of the data table.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * 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 data table rows to return. The service may
+   * return fewer than this value. If unspecified, at most 100 data table rows
+   * will be returned. 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. A page token, received from a previous `ListDataTableRows` call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListDataTableRows` call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Filter facilitating search over data table rows. This filter
+   * performs a case-insensitive substring match on the row values.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter facilitating search over data table rows. This filter
+   * performs a case-insensitive substring match on the row values.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsResponse.java new file mode 100644 index 000000000000..ae2122fa6859 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsResponse.java @@ -0,0 +1,1125 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message for listing data table rows.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTableRowsResponse} + */ +@com.google.protobuf.Generated +public final class ListDataTableRowsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListDataTableRowsResponse) + ListDataTableRowsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDataTableRowsResponse"); + } + + // Use ListDataTableRowsResponse.newBuilder() to construct. + private ListDataTableRowsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDataTableRowsResponse() { + dataTableRows_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.ListDataTableRowsResponse.Builder.class); + } + + public static final int DATA_TABLE_ROWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataTableRows_; + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List getDataTableRowsList() { + return dataTableRows_; + } + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public java.util.List + getDataTableRowsOrBuilderList() { + return dataTableRows_; + } + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public int getDataTableRowsCount() { + return dataTableRows_.size(); + } + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + return dataTableRows_.get(index); + } + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index) { + return dataTableRows_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.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, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.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 < dataTableRows_.size(); i++) { + output.writeMessage(1, dataTableRows_.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 < dataTableRows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataTableRows_.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.chronicle.v1.ListDataTableRowsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListDataTableRowsResponse other = + (com.google.cloud.chronicle.v1.ListDataTableRowsResponse) obj; + + if (!getDataTableRowsList().equals(other.getDataTableRowsList())) 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 (getDataTableRowsCount() > 0) { + hash = (37 * hash) + DATA_TABLE_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getDataTableRowsList().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.chronicle.v1.ListDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse 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.chronicle.v1.ListDataTableRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse 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.chronicle.v1.ListDataTableRowsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse 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.chronicle.v1.ListDataTableRowsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 listing data table rows.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTableRowsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListDataTableRowsResponse) + com.google.cloud.chronicle.v1.ListDataTableRowsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTableRowsResponse.class, + com.google.cloud.chronicle.v1.ListDataTableRowsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListDataTableRowsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + } else { + dataTableRows_ = null; + dataTableRowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTableRowsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsResponse getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListDataTableRowsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsResponse build() { + com.google.cloud.chronicle.v1.ListDataTableRowsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsResponse buildPartial() { + com.google.cloud.chronicle.v1.ListDataTableRowsResponse result = + new com.google.cloud.chronicle.v1.ListDataTableRowsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.ListDataTableRowsResponse result) { + if (dataTableRowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = java.util.Collections.unmodifiableList(dataTableRows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataTableRows_ = dataTableRows_; + } else { + result.dataTableRows_ = dataTableRowsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.ListDataTableRowsResponse 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.chronicle.v1.ListDataTableRowsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.ListDataTableRowsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListDataTableRowsResponse other) { + if (other == com.google.cloud.chronicle.v1.ListDataTableRowsResponse.getDefaultInstance()) + return this; + if (dataTableRowsBuilder_ == null) { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRows_.isEmpty()) { + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataTableRowsIsMutable(); + dataTableRows_.addAll(other.dataTableRows_); + } + onChanged(); + } + } else { + if (!other.dataTableRows_.isEmpty()) { + if (dataTableRowsBuilder_.isEmpty()) { + dataTableRowsBuilder_.dispose(); + dataTableRowsBuilder_ = null; + dataTableRows_ = other.dataTableRows_; + bitField0_ = (bitField0_ & ~0x00000001); + dataTableRowsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTableRowsFieldBuilder() + : null; + } else { + dataTableRowsBuilder_.addAllMessages(other.dataTableRows_); + } + } + } + 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.chronicle.v1.DataTableRow m = + input.readMessage( + com.google.cloud.chronicle.v1.DataTableRow.parser(), extensionRegistry); + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(m); + } else { + dataTableRowsBuilder_.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 dataTableRows_ = + java.util.Collections.emptyList(); + + private void ensureDataTableRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataTableRows_ = + new java.util.ArrayList(dataTableRows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + dataTableRowsBuilder_; + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List getDataTableRowsList() { + if (dataTableRowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTableRows_); + } else { + return dataTableRowsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public int getDataTableRowsCount() { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.size(); + } else { + return dataTableRowsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder setDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows(int index, com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, value); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addDataTableRows( + int index, com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.add(index, builderForValue.build()); + onChanged(); + } else { + dataTableRowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder addAllDataTableRows( + java.lang.Iterable values) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTableRows_); + onChanged(); + } else { + dataTableRowsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder clearDataTableRows() { + if (dataTableRowsBuilder_ == null) { + dataTableRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataTableRowsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public Builder removeDataTableRows(int index) { + if (dataTableRowsBuilder_ == null) { + ensureDataTableRowsIsMutable(); + dataTableRows_.remove(index); + onChanged(); + } else { + dataTableRowsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder getDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder( + int index) { + if (dataTableRowsBuilder_ == null) { + return dataTableRows_.get(index); + } else { + return dataTableRowsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsOrBuilderList() { + if (dataTableRowsBuilder_ != null) { + return dataTableRowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTableRows_); + } + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder() { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder addDataTableRowsBuilder(int index) { + return internalGetDataTableRowsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of the data table rows returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + public java.util.List + getDataTableRowsBuilderList() { + return internalGetDataTableRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + internalGetDataTableRowsFieldBuilder() { + if (dataTableRowsBuilder_ == null) { + dataTableRowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder>( + dataTableRows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataTableRows_ = null; + } + return dataTableRowsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.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, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.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, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.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, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.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, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.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.chronicle.v1.ListDataTableRowsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListDataTableRowsResponse) + private static final com.google.cloud.chronicle.v1.ListDataTableRowsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListDataTableRowsResponse(); + } + + public static com.google.cloud.chronicle.v1.ListDataTableRowsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataTableRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTableRowsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsResponseOrBuilder.java new file mode 100644 index 000000000000..b951cd5d0031 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTableRowsResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListDataTableRowsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListDataTableRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List getDataTableRowsList(); + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRow getDataTableRows(int index); + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + int getDataTableRowsCount(); + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + java.util.List + getDataTableRowsOrBuilderList(); + + /** + * + * + *
+   * The list of the data table rows returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowsOrBuilder(int index); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesRequest.java new file mode 100644 index 000000000000..9219af40367c --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesRequest.java @@ -0,0 +1,1139 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * A request for a list of data tables.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTablesRequest} + */ +@com.google.protobuf.Generated +public final class ListDataTablesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListDataTablesRequest) + ListDataTablesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDataTablesRequest"); + } + + // Use ListDataTablesRequest.newBuilder() to construct. + private ListDataTablesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDataTablesRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTablesRequest.class, + com.google.cloud.chronicle.v1.ListDataTablesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * 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 data tables to return. The service may
+   * return fewer than this value. If unspecified, at most 100 data tables will
+   * be returned. 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. A page token, received from a previous `ListDataTables` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDataTables` must match the call that provided the page
+   * token.
+   * 
+ * + * 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. A page token, received from a previous `ListDataTables` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDataTables` must match the call that provided the page
+   * token.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + 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(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.ListDataTablesRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListDataTablesRequest other = + (com.google.cloud.chronicle.v1.ListDataTablesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest 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.chronicle.v1.ListDataTablesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest 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.chronicle.v1.ListDataTablesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest 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.chronicle.v1.ListDataTablesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request for a list of data tables.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTablesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListDataTablesRequest) + com.google.cloud.chronicle.v1.ListDataTablesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTablesRequest.class, + com.google.cloud.chronicle.v1.ListDataTablesRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListDataTablesRequest.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_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListDataTablesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesRequest build() { + com.google.cloud.chronicle.v1.ListDataTablesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesRequest buildPartial() { + com.google.cloud.chronicle.v1.ListDataTablesRequest result = + new com.google.cloud.chronicle.v1.ListDataTablesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.ListDataTablesRequest 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.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.ListDataTablesRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.ListDataTablesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListDataTablesRequest other) { + if (other == com.google.cloud.chronicle.v1.ListDataTablesRequest.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.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + 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: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this data table will be created.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * + * 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 data tables to return. The service may
+     * return fewer than this value. If unspecified, at most 100 data tables will
+     * be returned. 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 data tables to return. The service may
+     * return fewer than this value. If unspecified, at most 100 data tables will
+     * be returned. 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 data tables to return. The service may
+     * return fewer than this value. If unspecified, at most 100 data tables will
+     * be returned. 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. A page token, received from a previous `ListDataTables` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDataTables` must match the call that provided the page
+     * token.
+     * 
+ * + * 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. A page token, received from a previous `ListDataTables` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDataTables` must match the call that provided the page
+     * token.
+     * 
+ * + * 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. A page token, received from a previous `ListDataTables` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDataTables` must match the call that provided the page
+     * token.
+     * 
+ * + * 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. A page token, received from a previous `ListDataTables` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDataTables` must match the call that provided the page
+     * token.
+     * 
+ * + * 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. A page token, received from a previous `ListDataTables` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDataTables` must match the call that provided the page
+     * token.
+     * 
+ * + * 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 orderBy_ = ""; + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configures ordering of DataTables in the response.
+     * Note: Our implementation currently supports order by "create_time asc" only
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ListDataTablesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListDataTablesRequest) + private static final com.google.cloud.chronicle.v1.ListDataTablesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListDataTablesRequest(); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataTablesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesRequestOrBuilder.java new file mode 100644 index 000000000000..858e206b2946 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesRequestOrBuilder.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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListDataTablesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListDataTablesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this data table will be created.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * + * 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 data tables to return. The service may
+   * return fewer than this value. If unspecified, at most 100 data tables will
+   * be returned. 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. A page token, received from a previous `ListDataTables` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDataTables` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListDataTables` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDataTables` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Configures ordering of DataTables in the response.
+   * Note: Our implementation currently supports order by "create_time asc" only
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesResponse.java new file mode 100644 index 000000000000..108b19412c87 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesResponse.java @@ -0,0 +1,1118 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Response message for listing data tables.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTablesResponse} + */ +@com.google.protobuf.Generated +public final class ListDataTablesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListDataTablesResponse) + ListDataTablesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDataTablesResponse"); + } + + // Use ListDataTablesResponse.newBuilder() to construct. + private ListDataTablesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDataTablesResponse() { + dataTables_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTablesResponse.class, + com.google.cloud.chronicle.v1.ListDataTablesResponse.Builder.class); + } + + public static final int DATA_TABLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataTables_; + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + @java.lang.Override + public java.util.List getDataTablesList() { + return dataTables_; + } + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + @java.lang.Override + public java.util.List + getDataTablesOrBuilderList() { + return dataTables_; + } + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + @java.lang.Override + public int getDataTablesCount() { + return dataTables_.size(); + } + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTable getDataTables(int index) { + return dataTables_.get(index); + } + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTablesOrBuilder(int index) { + return dataTables_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataTables_.size(); i++) { + output.writeMessage(1, dataTables_.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 < dataTables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataTables_.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.chronicle.v1.ListDataTablesResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListDataTablesResponse other = + (com.google.cloud.chronicle.v1.ListDataTablesResponse) obj; + + if (!getDataTablesList().equals(other.getDataTablesList())) 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 (getDataTablesCount() > 0) { + hash = (37 * hash) + DATA_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getDataTablesList().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.chronicle.v1.ListDataTablesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse 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.chronicle.v1.ListDataTablesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse 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.chronicle.v1.ListDataTablesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse 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.chronicle.v1.ListDataTablesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 listing data tables.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.ListDataTablesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListDataTablesResponse) + com.google.cloud.chronicle.v1.ListDataTablesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListDataTablesResponse.class, + com.google.cloud.chronicle.v1.ListDataTablesResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListDataTablesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataTablesBuilder_ == null) { + dataTables_ = java.util.Collections.emptyList(); + } else { + dataTables_ = null; + dataTablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_ListDataTablesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesResponse getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListDataTablesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesResponse build() { + com.google.cloud.chronicle.v1.ListDataTablesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesResponse buildPartial() { + com.google.cloud.chronicle.v1.ListDataTablesResponse result = + new com.google.cloud.chronicle.v1.ListDataTablesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.ListDataTablesResponse result) { + if (dataTablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataTables_ = java.util.Collections.unmodifiableList(dataTables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataTables_ = dataTables_; + } else { + result.dataTables_ = dataTablesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.ListDataTablesResponse 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.chronicle.v1.ListDataTablesResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.ListDataTablesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListDataTablesResponse other) { + if (other == com.google.cloud.chronicle.v1.ListDataTablesResponse.getDefaultInstance()) + return this; + if (dataTablesBuilder_ == null) { + if (!other.dataTables_.isEmpty()) { + if (dataTables_.isEmpty()) { + dataTables_ = other.dataTables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataTablesIsMutable(); + dataTables_.addAll(other.dataTables_); + } + onChanged(); + } + } else { + if (!other.dataTables_.isEmpty()) { + if (dataTablesBuilder_.isEmpty()) { + dataTablesBuilder_.dispose(); + dataTablesBuilder_ = null; + dataTables_ = other.dataTables_; + bitField0_ = (bitField0_ & ~0x00000001); + dataTablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTablesFieldBuilder() + : null; + } else { + dataTablesBuilder_.addAllMessages(other.dataTables_); + } + } + } + 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.chronicle.v1.DataTable m = + input.readMessage( + com.google.cloud.chronicle.v1.DataTable.parser(), extensionRegistry); + if (dataTablesBuilder_ == null) { + ensureDataTablesIsMutable(); + dataTables_.add(m); + } else { + dataTablesBuilder_.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 dataTables_ = + java.util.Collections.emptyList(); + + private void ensureDataTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataTables_ = new java.util.ArrayList(dataTables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder> + dataTablesBuilder_; + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public java.util.List getDataTablesList() { + if (dataTablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTables_); + } else { + return dataTablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public int getDataTablesCount() { + if (dataTablesBuilder_ == null) { + return dataTables_.size(); + } else { + return dataTablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public com.google.cloud.chronicle.v1.DataTable getDataTables(int index) { + if (dataTablesBuilder_ == null) { + return dataTables_.get(index); + } else { + return dataTablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder setDataTables(int index, com.google.cloud.chronicle.v1.DataTable value) { + if (dataTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTablesIsMutable(); + dataTables_.set(index, value); + onChanged(); + } else { + dataTablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder setDataTables( + int index, com.google.cloud.chronicle.v1.DataTable.Builder builderForValue) { + if (dataTablesBuilder_ == null) { + ensureDataTablesIsMutable(); + dataTables_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder addDataTables(com.google.cloud.chronicle.v1.DataTable value) { + if (dataTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTablesIsMutable(); + dataTables_.add(value); + onChanged(); + } else { + dataTablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder addDataTables(int index, com.google.cloud.chronicle.v1.DataTable value) { + if (dataTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTablesIsMutable(); + dataTables_.add(index, value); + onChanged(); + } else { + dataTablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder addDataTables(com.google.cloud.chronicle.v1.DataTable.Builder builderForValue) { + if (dataTablesBuilder_ == null) { + ensureDataTablesIsMutable(); + dataTables_.add(builderForValue.build()); + onChanged(); + } else { + dataTablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder addDataTables( + int index, com.google.cloud.chronicle.v1.DataTable.Builder builderForValue) { + if (dataTablesBuilder_ == null) { + ensureDataTablesIsMutable(); + dataTables_.add(index, builderForValue.build()); + onChanged(); + } else { + dataTablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder addAllDataTables( + java.lang.Iterable values) { + if (dataTablesBuilder_ == null) { + ensureDataTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTables_); + onChanged(); + } else { + dataTablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder clearDataTables() { + if (dataTablesBuilder_ == null) { + dataTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataTablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public Builder removeDataTables(int index) { + if (dataTablesBuilder_ == null) { + ensureDataTablesIsMutable(); + dataTables_.remove(index); + onChanged(); + } else { + dataTablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public com.google.cloud.chronicle.v1.DataTable.Builder getDataTablesBuilder(int index) { + return internalGetDataTablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTablesOrBuilder(int index) { + if (dataTablesBuilder_ == null) { + return dataTables_.get(index); + } else { + return dataTablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public java.util.List + getDataTablesOrBuilderList() { + if (dataTablesBuilder_ != null) { + return dataTablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTables_); + } + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public com.google.cloud.chronicle.v1.DataTable.Builder addDataTablesBuilder() { + return internalGetDataTablesFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.DataTable.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public com.google.cloud.chronicle.v1.DataTable.Builder addDataTablesBuilder(int index) { + return internalGetDataTablesFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.DataTable.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of the data tables returned.
+     * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + public java.util.List + getDataTablesBuilderList() { + return internalGetDataTablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder> + internalGetDataTablesFieldBuilder() { + if (dataTablesBuilder_ == null) { + dataTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder>( + dataTables_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataTables_ = null; + } + return dataTablesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ListDataTablesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListDataTablesResponse) + private static final com.google.cloud.chronicle.v1.ListDataTablesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListDataTablesResponse(); + } + + public static com.google.cloud.chronicle.v1.ListDataTablesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataTablesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListDataTablesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesResponseOrBuilder.java new file mode 100644 index 000000000000..36e99f35bdc6 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListDataTablesResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListDataTablesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListDataTablesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + java.util.List getDataTablesList(); + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + com.google.cloud.chronicle.v1.DataTable getDataTables(int index); + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + int getDataTablesCount(); + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + java.util.List + getDataTablesOrBuilderList(); + + /** + * + * + *
+   * The list of the data tables returned.
+   * 
+ * + * repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTablesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRequest.java new file mode 100644 index 000000000000..b281e1bac724 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRequest.java @@ -0,0 +1,1071 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * A request to update details of data table.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateDataTableRequest} + */ +@com.google.protobuf.Generated +public final class UpdateDataTableRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.UpdateDataTableRequest) + UpdateDataTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateDataTableRequest"); + } + + // Use UpdateDataTableRequest.newBuilder() to construct. + private UpdateDataTableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDataTableRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateDataTableRequest.class, + com.google.cloud.chronicle.v1.UpdateDataTableRequest.Builder.class); + } + + private int bitField0_; + public static final int DATA_TABLE_FIELD_NUMBER = 1; + private com.google.cloud.chronicle.v1.DataTable dataTable_; + + /** + * + * + *
+   * Required. This field is used to identify the datatable to update.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTable field is set. + */ + @java.lang.Override + public boolean hasDataTable() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. This field is used to identify the datatable to update.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTable. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTable getDataTable() { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } + + /** + * + * + *
+   * Required. This field is used to identify the datatable to update.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTableOrBuilder() { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The list of metadata fields to update. Currently data tables only
+   * support updating the `description`, `row_time_to_live` and `scope_info`
+   * fields. When no field mask is supplied, all non-empty fields will be
+   * updated. A field mask of "*" will update all fields, whether empty or not.
+   * 
+ * + * .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. The list of metadata fields to update. Currently data tables only
+   * support updating the `description`, `row_time_to_live` and `scope_info`
+   * fields. When no field mask is supplied, all non-empty fields will be
+   * updated. A field mask of "*" will update all fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The list of metadata fields to update. Currently data tables only
+   * support updating the `description`, `row_time_to_live` and `scope_info`
+   * fields. When no field mask is supplied, all non-empty fields will be
+   * updated. A field mask of "*" will update all fields, whether empty or not.
+   * 
+ * + * .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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDataTable()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataTable()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.UpdateDataTableRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.UpdateDataTableRequest other = + (com.google.cloud.chronicle.v1.UpdateDataTableRequest) obj; + + if (hasDataTable() != other.hasDataTable()) return false; + if (hasDataTable()) { + if (!getDataTable().equals(other.getDataTable())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataTable()) { + hash = (37 * hash) + DATA_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getDataTable().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest 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.chronicle.v1.UpdateDataTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest 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.chronicle.v1.UpdateDataTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest 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.chronicle.v1.UpdateDataTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to update details of data table.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateDataTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.UpdateDataTableRequest) + com.google.cloud.chronicle.v1.UpdateDataTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateDataTableRequest.class, + com.google.cloud.chronicle.v1.UpdateDataTableRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.UpdateDataTableRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataTableFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataTable_ = null; + if (dataTableBuilder_ != null) { + dataTableBuilder_.dispose(); + dataTableBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.UpdateDataTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRequest build() { + com.google.cloud.chronicle.v1.UpdateDataTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRequest buildPartial() { + com.google.cloud.chronicle.v1.UpdateDataTableRequest result = + new com.google.cloud.chronicle.v1.UpdateDataTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.UpdateDataTableRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataTable_ = dataTableBuilder_ == null ? dataTable_ : dataTableBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.UpdateDataTableRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.UpdateDataTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.UpdateDataTableRequest other) { + if (other == com.google.cloud.chronicle.v1.UpdateDataTableRequest.getDefaultInstance()) + return this; + if (other.hasDataTable()) { + mergeDataTable(other.getDataTable()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetDataTableFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.chronicle.v1.DataTable dataTable_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder> + dataTableBuilder_; + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTable field is set. + */ + public boolean hasDataTable() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTable. + */ + public com.google.cloud.chronicle.v1.DataTable getDataTable() { + if (dataTableBuilder_ == null) { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } else { + return dataTableBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTable(com.google.cloud.chronicle.v1.DataTable value) { + if (dataTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataTable_ = value; + } else { + dataTableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTable(com.google.cloud.chronicle.v1.DataTable.Builder builderForValue) { + if (dataTableBuilder_ == null) { + dataTable_ = builderForValue.build(); + } else { + dataTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataTable(com.google.cloud.chronicle.v1.DataTable value) { + if (dataTableBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataTable_ != null + && dataTable_ != com.google.cloud.chronicle.v1.DataTable.getDefaultInstance()) { + getDataTableBuilder().mergeFrom(value); + } else { + dataTable_ = value; + } + } else { + dataTableBuilder_.mergeFrom(value); + } + if (dataTable_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataTable() { + bitField0_ = (bitField0_ & ~0x00000001); + dataTable_ = null; + if (dataTableBuilder_ != null) { + dataTableBuilder_.dispose(); + dataTableBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTable.Builder getDataTableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDataTableFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTableOrBuilder() { + if (dataTableBuilder_ != null) { + return dataTableBuilder_.getMessageOrBuilder(); + } else { + return dataTable_ == null + ? com.google.cloud.chronicle.v1.DataTable.getDefaultInstance() + : dataTable_; + } + } + + /** + * + * + *
+     * Required. This field is used to identify the datatable to update.
+     * Format:
+     * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder> + internalGetDataTableFieldBuilder() { + if (dataTableBuilder_ == null) { + dataTableBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTable, + com.google.cloud.chronicle.v1.DataTable.Builder, + com.google.cloud.chronicle.v1.DataTableOrBuilder>( + getDataTable(), getParentForChildren(), isClean()); + dataTable_ = null; + } + return dataTableBuilder_; + } + + 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. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .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. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .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. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .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. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .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. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .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. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .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. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The list of metadata fields to update. Currently data tables only
+     * support updating the `description`, `row_time_to_live` and `scope_info`
+     * fields. When no field mask is supplied, all non-empty fields will be
+     * updated. A field mask of "*" will update all fields, whether empty or not.
+     * 
+ * + * .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_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.UpdateDataTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.UpdateDataTableRequest) + private static final com.google.cloud.chronicle.v1.UpdateDataTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.UpdateDataTableRequest(); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRequestOrBuilder.java new file mode 100644 index 000000000000..f2462452ec35 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface UpdateDataTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.UpdateDataTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. This field is used to identify the datatable to update.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTable field is set. + */ + boolean hasDataTable(); + + /** + * + * + *
+   * Required. This field is used to identify the datatable to update.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTable. + */ + com.google.cloud.chronicle.v1.DataTable getDataTable(); + + /** + * + * + *
+   * Required. This field is used to identify the datatable to update.
+   * Format:
+   * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.DataTableOrBuilder getDataTableOrBuilder(); + + /** + * + * + *
+   * Optional. The list of metadata fields to update. Currently data tables only
+   * support updating the `description`, `row_time_to_live` and `scope_info`
+   * fields. When no field mask is supplied, all non-empty fields will be
+   * updated. A field mask of "*" will update all fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The list of metadata fields to update. Currently data tables only
+   * support updating the `description`, `row_time_to_live` and `scope_info`
+   * fields. When no field mask is supplied, all non-empty fields will be
+   * updated. A field mask of "*" will update all fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The list of metadata fields to update. Currently data tables only
+   * support updating the `description`, `row_time_to_live` and `scope_info`
+   * fields. When no field mask is supplied, all non-empty fields will be
+   * updated. A field mask of "*" will update all fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRowRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRowRequest.java new file mode 100644 index 000000000000..68bae656b778 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRowRequest.java @@ -0,0 +1,1062 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
+ * Request to update data table row.
+ * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateDataTableRowRequest} + */ +@com.google.protobuf.Generated +public final class UpdateDataTableRowRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.UpdateDataTableRowRequest) + UpdateDataTableRowRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateDataTableRowRequest"); + } + + // Use UpdateDataTableRowRequest.newBuilder() to construct. + private UpdateDataTableRowRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDataTableRowRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.class, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder.class); + } + + private int bitField0_; + public static final int DATA_TABLE_ROW_FIELD_NUMBER = 1; + private com.google.cloud.chronicle.v1.DataTableRow dataTableRow_; + + /** + * + * + *
+   * Required. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTableRow field is set. + */ + @java.lang.Override + public boolean hasDataTableRow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTableRow. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRow() { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } + + /** + * + * + *
+   * Required. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowOrBuilder() { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The list of fields to update. Currently data table rows only
+   * support updating the `values` field. When no field mask is supplied, all
+   * non-empty fields will be updated. A field mask of "*" will update all
+   * fields, whether empty or not.
+   * 
+ * + * .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. The list of fields to update. Currently data table rows only
+   * support updating the `values` field. When no field mask is supplied, all
+   * non-empty fields will be updated. A field mask of "*" will update all
+   * fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The list of fields to update. Currently data table rows only
+   * support updating the `values` field. When no field mask is supplied, all
+   * non-empty fields will be updated. A field mask of "*" will update all
+   * fields, whether empty or not.
+   * 
+ * + * .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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDataTableRow()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataTableRow()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.UpdateDataTableRowRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest other = + (com.google.cloud.chronicle.v1.UpdateDataTableRowRequest) obj; + + if (hasDataTableRow() != other.hasDataTableRow()) return false; + if (hasDataTableRow()) { + if (!getDataTableRow().equals(other.getDataTableRow())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataTableRow()) { + hash = (37 * hash) + DATA_TABLE_ROW_FIELD_NUMBER; + hash = (53 * hash) + getDataTableRow().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest 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.chronicle.v1.UpdateDataTableRowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest 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.chronicle.v1.UpdateDataTableRowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest 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.chronicle.v1.UpdateDataTableRowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 update data table row.
+   * 
+ * + * Protobuf type {@code google.cloud.chronicle.v1.UpdateDataTableRowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.UpdateDataTableRowRequest) + com.google.cloud.chronicle.v1.UpdateDataTableRowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.class, + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataTableRowFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataTableRow_ = null; + if (dataTableRowBuilder_ != null) { + dataTableRowBuilder_.dispose(); + dataTableRowBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.DataTableProto + .internal_static_google_cloud_chronicle_v1_UpdateDataTableRowRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest build() { + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest buildPartial() { + com.google.cloud.chronicle.v1.UpdateDataTableRowRequest result = + new com.google.cloud.chronicle.v1.UpdateDataTableRowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.UpdateDataTableRowRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataTableRow_ = + dataTableRowBuilder_ == null ? dataTableRow_ : dataTableRowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.UpdateDataTableRowRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.UpdateDataTableRowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.UpdateDataTableRowRequest other) { + if (other == com.google.cloud.chronicle.v1.UpdateDataTableRowRequest.getDefaultInstance()) + return this; + if (other.hasDataTableRow()) { + mergeDataTableRow(other.getDataTableRow()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetDataTableRowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.chronicle.v1.DataTableRow dataTableRow_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + dataTableRowBuilder_; + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTableRow field is set. + */ + public boolean hasDataTableRow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTableRow. + */ + public com.google.cloud.chronicle.v1.DataTableRow getDataTableRow() { + if (dataTableRowBuilder_ == null) { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } else { + return dataTableRowBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTableRow(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataTableRow_ = value; + } else { + dataTableRowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataTableRow( + com.google.cloud.chronicle.v1.DataTableRow.Builder builderForValue) { + if (dataTableRowBuilder_ == null) { + dataTableRow_ = builderForValue.build(); + } else { + dataTableRowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataTableRow(com.google.cloud.chronicle.v1.DataTableRow value) { + if (dataTableRowBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataTableRow_ != null + && dataTableRow_ != com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance()) { + getDataTableRowBuilder().mergeFrom(value); + } else { + dataTableRow_ = value; + } + } else { + dataTableRowBuilder_.mergeFrom(value); + } + if (dataTableRow_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataTableRow() { + bitField0_ = (bitField0_ & ~0x00000001); + dataTableRow_ = null; + if (dataTableRowBuilder_ != null) { + dataTableRowBuilder_.dispose(); + dataTableRowBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTableRow.Builder getDataTableRowBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDataTableRowFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowOrBuilder() { + if (dataTableRowBuilder_ != null) { + return dataTableRowBuilder_.getMessageOrBuilder(); + } else { + return dataTableRow_ == null + ? com.google.cloud.chronicle.v1.DataTableRow.getDefaultInstance() + : dataTableRow_; + } + } + + /** + * + * + *
+     * Required. Format:
+     * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+     * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder> + internalGetDataTableRowFieldBuilder() { + if (dataTableRowBuilder_ == null) { + dataTableRowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.chronicle.v1.DataTableRow, + com.google.cloud.chronicle.v1.DataTableRow.Builder, + com.google.cloud.chronicle.v1.DataTableRowOrBuilder>( + getDataTableRow(), getParentForChildren(), isClean()); + dataTableRow_ = null; + } + return dataTableRowBuilder_; + } + + 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. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .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. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .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. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .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. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .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. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .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. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .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. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The list of fields to update. Currently data table rows only
+     * support updating the `values` field. When no field mask is supplied, all
+     * non-empty fields will be updated. A field mask of "*" will update all
+     * fields, whether empty or not.
+     * 
+ * + * .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_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.UpdateDataTableRowRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.UpdateDataTableRowRequest) + private static final com.google.cloud.chronicle.v1.UpdateDataTableRowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.UpdateDataTableRowRequest(); + } + + public static com.google.cloud.chronicle.v1.UpdateDataTableRowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataTableRowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.UpdateDataTableRowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRowRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRowRequestOrBuilder.java new file mode 100644 index 000000000000..b3444220533e --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/UpdateDataTableRowRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * 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/chronicle/v1/data_table.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface UpdateDataTableRowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.UpdateDataTableRowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataTableRow field is set. + */ + boolean hasDataTableRow(); + + /** + * + * + *
+   * Required. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataTableRow. + */ + com.google.cloud.chronicle.v1.DataTableRow getDataTableRow(); + + /** + * + * + *
+   * Required. Format:
+   * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
+   * 
+ * + * + * .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.DataTableRowOrBuilder getDataTableRowOrBuilder(); + + /** + * + * + *
+   * Optional. The list of fields to update. Currently data table rows only
+   * support updating the `values` field. When no field mask is supplied, all
+   * non-empty fields will be updated. A field mask of "*" will update all
+   * fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update. Currently data table rows only
+   * support updating the `values` field. When no field mask is supplied, all
+   * non-empty fields will be updated. A field mask of "*" will update all
+   * fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update. Currently data table rows only
+   * support updating the `values` field. When no field mask is supplied, all
+   * non-empty fields will be updated. A field mask of "*" will update all
+   * fields, whether empty or not.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/data_table.proto b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/data_table.proto new file mode 100644 index 000000000000..d5e6b12a673b --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/data_table.proto @@ -0,0 +1,688 @@ +// 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.chronicle.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.Chronicle.V1"; +option go_package = "cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb"; +option java_multiple_files = true; +option java_outer_classname = "DataTableProto"; +option java_package = "com.google.cloud.chronicle.v1"; +option php_namespace = "Google\\Cloud\\Chronicle\\V1"; +option ruby_package = "Google::Cloud::Chronicle::V1"; + +// DataTableManager provides an interface for managing data tables. +service DataTableService { + option (google.api.default_host) = "chronicle.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/chronicle," + "https://www.googleapis.com/auth/chronicle.readonly," + "https://www.googleapis.com/auth/cloud-platform"; + + // Create a new data table. + rpc CreateDataTable(CreateDataTableRequest) returns (DataTable) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/instances/*}/dataTables" + body: "data_table" + }; + option (google.api.method_signature) = "parent,data_table,data_table_id"; + } + + // List data tables. + rpc ListDataTables(ListDataTablesRequest) returns (ListDataTablesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/instances/*}/dataTables" + }; + option (google.api.method_signature) = "parent"; + } + + // Get data table info. + rpc GetDataTable(GetDataTableRequest) returns (DataTable) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*/dataTables/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Update data table. + rpc UpdateDataTable(UpdateDataTableRequest) returns (DataTable) { + option (google.api.http) = { + patch: "/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}" + body: "data_table" + }; + option (google.api.method_signature) = "data_table,update_mask"; + } + + // Delete data table. + rpc DeleteDataTable(DeleteDataTableRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/instances/*/dataTables/*}" + }; + option (google.api.method_signature) = "name,force"; + } + + // Create a new data table row. + rpc CreateDataTableRow(CreateDataTableRowRequest) returns (DataTableRow) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows" + body: "data_table_row" + }; + option (google.api.method_signature) = "parent,data_table_row"; + } + + // Update data table row + rpc UpdateDataTableRow(UpdateDataTableRowRequest) returns (DataTableRow) { + option (google.api.http) = { + patch: "/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}" + body: "data_table_row" + }; + option (google.api.method_signature) = "data_table_row,update_mask"; + } + + // List data table rows. + rpc ListDataTableRows(ListDataTableRowsRequest) + returns (ListDataTableRowsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows" + }; + option (google.api.method_signature) = "parent"; + } + + // Get data table row + rpc GetDataTableRow(GetDataTableRowRequest) returns (DataTableRow) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Delete data table row. + rpc DeleteDataTableRow(DeleteDataTableRowRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create data table rows in bulk. + rpc BulkCreateDataTableRows(BulkCreateDataTableRowsRequest) + returns (BulkCreateDataTableRowsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // Get data table rows in bulk. + rpc BulkGetDataTableRows(BulkGetDataTableRowsRequest) + returns (BulkGetDataTableRowsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // Replace all existing data table rows with new data table rows. + rpc BulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest) + returns (BulkReplaceDataTableRowsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // Update data table rows in bulk. + rpc BulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest) + returns (BulkUpdateDataTableRowsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // Get the error for a data table operation. + rpc GetDataTableOperationErrors(GetDataTableOperationErrorsRequest) + returns (DataTableOperationErrors) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// DataTableUpdateSource denotes the source that updated the data table. +enum DataTableUpdateSource { + // The data table is updated by the user. + DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; + + // The data table is updated by the user. + USER = 1; + + // The data table is updated by the rule. + RULE = 2; + + // The data table is updated by the search. + SEARCH = 3; +} + +// A request to create DataTable. +message CreateDataTableRequest { + // Required. The parent resource where this data table will be created. + // Format: projects/{project}/locations/{location}/instances/{instance} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTable" + } + ]; + + // Required. The data table being created. + DataTable data_table = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the data table. This is also the display name + // for the data table. It must satisfy the following requirements: + // - Starts with letter. + // - Contains only letters, numbers and underscore. + // - Must be unique and has length < 256. + string data_table_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// A request to get details about a data table. +message GetDataTableRequest { + // Required. The resource name of the data table to retrieve. + // Format: + // projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/DataTable" + } + ]; +} + +// A request to update details of data table. +message UpdateDataTableRequest { + // Required. This field is used to identify the datatable to update. + // Format: + // projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + DataTable data_table = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of metadata fields to update. Currently data tables only + // support updating the `description`, `row_time_to_live` and `scope_info` + // fields. When no field mask is supplied, all non-empty fields will be + // updated. A field mask of "*" will update all fields, whether empty or not. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A request for a list of data tables. +message ListDataTablesRequest { + // Required. The parent resource where this data table will be created. + // Format: projects/{project}/locations/{location}/instances/{instance} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTable" + } + ]; + + // Optional. The maximum number of data tables to return. The service may + // return fewer than this value. If unspecified, at most 100 data tables will + // be returned. The maximum value is 1000; values above 1000 will be coerced + // to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDataTables` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to + // `ListDataTables` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures ordering of DataTables in the response. + // Note: Our implementation currently supports order by "create_time asc" only + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for deleting data tables. +message DeleteDataTableRequest { + // Required. The resource name of the data table to delete. + // Format + // projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/DataTable" + } + ]; + + // Optional. If set to true, any rows under this data table will also be + // deleted. (Otherwise, the request will only work if the data table has no + // rows.) + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for listing data tables. +message ListDataTablesResponse { + // The list of the data tables returned. + repeated DataTable data_tables = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request to create data table row. +message CreateDataTableRowRequest { + // Required. The resource id of the data table. + // Format: + // /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTableRow" + } + ]; + + // Required. The data table row to create. + DataTableRow data_table_row = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update data table row. +message UpdateDataTableRowRequest { + // Required. Format: + // projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + DataTableRow data_table_row = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. Currently data table rows only + // support updating the `values` field. When no field mask is supplied, all + // non-empty fields will be updated. A field mask of "*" will update all + // fields, whether empty or not. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request to list data table rows. +message ListDataTableRowsRequest { + // Required. The resource id of the data table. + // Format: + // projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTableRow" + } + ]; + + // Optional. The maximum number of data table rows to return. The service may + // return fewer than this value. If unspecified, at most 100 data table rows + // will be returned. The maximum value is 1000; values above 1000 will be + // coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDataTableRows` call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures ordering of DataTables in the response. + // Note: Our implementation currently supports order by "create_time asc" only + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter facilitating search over data table rows. This filter + // performs a case-insensitive substring match on the row values. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for listing data table rows. +message ListDataTableRowsResponse { + // The list of the data table rows returned. + repeated DataTableRow data_table_rows = 1; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request to get data table row. +message GetDataTableRowRequest { + // Required. The resource name of the data table row i,e row_id. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/DataTableRow" + } + ]; +} + +// Request to delete data table row. +message DeleteDataTableRowRequest { + // Required. The resource name of the data table row i,e row_id. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/DataTableRow" + } + ]; +} + +// Request to create data table rows in bulk. +message BulkCreateDataTableRowsRequest { + // Required. The resource id of the data table. + // Format: + // /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTableRow" + } + ]; + + // Required. Data table rows to create. A maximum of 1000 rows (for sync + // requests) or 2000 rows (for async requests) can be created in a single + // request. Total size of the rows should be less than 4MB. + repeated CreateDataTableRowRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message with created data table rows. +message BulkCreateDataTableRowsResponse { + // DataTableRows created + repeated DataTableRow data_table_rows = 1; +} + +// Request to get data table rows in bulk. +message BulkGetDataTableRowsRequest { + // Required. The resource id of the data table. + // Format: + // /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTableRow" + } + ]; + + // Required. Data table rows to get. At max 1,000 rows can be there in a + // request. + repeated GetDataTableRowRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message with data table rows. +message BulkGetDataTableRowsResponse { + // The requested data table rows. + repeated DataTableRow data_table_rows = 1; +} + +// Request to replace data table rows in bulk. +message BulkReplaceDataTableRowsRequest { + // Required. The resource id of the data table. + // Format: + // /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTableRow" + } + ]; + + // Required. Data table rows to replace the existing data table rows. A + // maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + // can be replaced in a single request. Total size of the rows should be less + // than 4MB. + repeated CreateDataTableRowRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message with data table rows that replaced existing data table rows. +message BulkReplaceDataTableRowsResponse { + // DataTableRows that replaced existing data table rows + repeated DataTableRow data_table_rows = 1; +} + +// Request to update data table rows in bulk. +message BulkUpdateDataTableRowsRequest { + // Required. The resource id of the data table. + // Format: + // /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/DataTableRow" + } + ]; + + // Required. Data table rows to update. At max 1,000 rows (or rows with size + // less than 2MB) can be there in a request. + repeated UpdateDataTableRowRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message with updated data table rows. +message BulkUpdateDataTableRowsResponse { + // DataTableRows updated + repeated DataTableRow data_table_rows = 1; +} + +// DataTableScopeInfo specifies the scope info of the data table. +message DataTableScopeInfo { + // Required. Contains the list of scope names of the data table. If the list + // is empty, the data table is treated as unscoped. The scope names should be + // full resource names and should be of the format: + // "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + repeated string data_access_scopes = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/DataAccessScope" + } + ]; +} + +// DataTable represents the data table resource. +message DataTable { + option (google.api.resource) = { + type: "chronicle.googleapis.com/DataTable" + pattern: "projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + plural: "dataTables" + singular: "dataTable" + }; + + // Identifier. The resource name of the data table + // Format: + // "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The unique display name of the data table. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. A user-provided description of the data table. + string description = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Table create time + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Table update time + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Details of all the columns in the table + repeated DataTableColumnInfo column_info = 6 + [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Data table unique id + string data_table_uuid = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource names for the associated Rules that use this + // data table. Format: + // projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + // {rule} here refers to the rule id. + repeated string rules = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The count of rules using the data table. + int32 rule_associations_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided TTL of the data table. + string row_time_to_live = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The count of rows in the data table. + int64 approximate_row_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The scope info of the data table. + // During data table creation, if this field is not set, the data + // table without scopes (an unscoped table) will be created for a global + // user. For a scoped user, this field must be set. During data table + // update, if scope_info is requested to be updated, this field must be set. + DataTableScopeInfo scope_info = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Source of the data table update. + DataTableUpdateSource update_source = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of the TTL of the data table. + google.protobuf.Timestamp row_time_to_live_update_time = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// DataTableRow represents a single row in a data table. +message DataTableRow { + option (google.api.resource) = { + type: "chronicle.googleapis.com/DataTableRow" + pattern: "projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}" + plural: "dataTableRows" + singular: "dataTableRow" + }; + + // Identifier. The resource name of the data table + // Format: + // projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. All column values for a single row. The values should be in the + // same order as the columns of the data tables. + repeated string values = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. DataTableRow create time + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DataTableRow update time + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided TTL of the data table row. + string row_time_to_live = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// DataTableColumnInfo represents the column metadata of the +// datatable. The column_index represents the ordering of the +// values in DataTableRow. +message DataTableColumnInfo { + // DataTableColumnType denotes the type of the column to be referenced in the + // rule. + enum DataTableColumnType { + // The default Data Table Column Type. + DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; + + // Denotes the type of the column as STRING. + STRING = 1; + + // Denotes the type of the column as REGEX. + REGEX = 2; + + // Denotes the type of the column as CIDR. + CIDR = 3; + + // Denotes the type of the column as NUMBER (includes int and float). + NUMBER = 4; + } + + oneof path_or_type { + // Entity proto field path that the column is mapped to + string mapped_column_path = 3; + + // Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX + DataTableColumnType column_type = 4; + } + + // Required. Column Index. 0,1,2... + int32 column_index = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Original column name of the Data Table (present in the CSV header + // in case of creation of data tables using file uploads). It must satisfy the + // following requirements: + // - Starts with letter. + // - Contains only letters, numbers and underscore. + // - Must be unique and has length < 256. + string original_column = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether to include this column in the calculation of the row ID. + // If no columns have key_column = true, all columns will be included in the + // calculation of the row ID. + bool key_column = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the column is a repeated values column. + bool repeated_values = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for GetDataTableOperationErrors. +message GetDataTableOperationErrorsRequest { + // Required. Resource name for the data table operation errors. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/DataTableOperationErrors" + } + ]; +} + +// The message containing the errors for a data table operation. +message DataTableOperationErrors { + option (google.api.resource) = { + type: "chronicle.googleapis.com/DataTableOperationErrors" + pattern: "projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}" + plural: "dataTableOperationErrors" + singular: "dataTableOperationErrors" + }; + + // Identifier. Resource name for the data table operation errors. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // The list of errors. + // Replaces the deprecated `errors` field. + repeated google.rpc.Status rpc_errors = 3; +} diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/AsyncBulkCreateDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/AsyncBulkCreateDataTableRows.java new file mode 100644 index 000000000000..2bb57153da26 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/AsyncBulkCreateDataTableRows.java @@ -0,0 +1,55 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; + +public class AsyncBulkCreateDataTableRows { + + public static void main(String[] args) throws Exception { + asyncBulkCreateDataTableRows(); + } + + public static void asyncBulkCreateDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkCreateDataTableRowsRequest request = + BulkCreateDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + dataTableServiceClient.bulkCreateDataTableRowsCallable().futureCall(request); + // Do something. + BulkCreateDataTableRowsResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRows.java new file mode 100644 index 000000000000..a0c78ac2cd37 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRows.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_sync] +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; + +public class SyncBulkCreateDataTableRows { + + public static void main(String[] args) throws Exception { + syncBulkCreateDataTableRows(); + } + + public static void syncBulkCreateDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkCreateDataTableRowsRequest request = + BulkCreateDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + BulkCreateDataTableRowsResponse response = + dataTableServiceClient.bulkCreateDataTableRows(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRowsDatatablenameListcreatedatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRowsDatatablenameListcreatedatatablerowrequest.java new file mode 100644 index 000000000000..4dab17274ea9 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRowsDatatablenameListcreatedatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_DatatablenameListcreatedatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkCreateDataTableRowsDatatablenameListcreatedatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkCreateDataTableRowsDatatablenameListcreatedatatablerowrequest(); + } + + public static void syncBulkCreateDataTableRowsDatatablenameListcreatedatatablerowrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + BulkCreateDataTableRowsResponse response = + dataTableServiceClient.bulkCreateDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_DatatablenameListcreatedatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRowsStringListcreatedatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRowsStringListcreatedatatablerowrequest.java new file mode 100644 index 000000000000..f88ffd9ea99b --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkcreatedatatablerows/SyncBulkCreateDataTableRowsStringListcreatedatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_StringListcreatedatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkCreateDataTableRowsStringListcreatedatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkCreateDataTableRowsStringListcreatedatatablerowrequest(); + } + + public static void syncBulkCreateDataTableRowsStringListcreatedatatablerowrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + List requests = new ArrayList<>(); + BulkCreateDataTableRowsResponse response = + dataTableServiceClient.bulkCreateDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_StringListcreatedatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/AsyncBulkGetDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/AsyncBulkGetDataTableRows.java new file mode 100644 index 000000000000..0bae340f1106 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/AsyncBulkGetDataTableRows.java @@ -0,0 +1,55 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkGetDataTableRows_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import java.util.ArrayList; + +public class AsyncBulkGetDataTableRows { + + public static void main(String[] args) throws Exception { + asyncBulkGetDataTableRows(); + } + + public static void asyncBulkGetDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkGetDataTableRowsRequest request = + BulkGetDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + dataTableServiceClient.bulkGetDataTableRowsCallable().futureCall(request); + // Do something. + BulkGetDataTableRowsResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRows.java new file mode 100644 index 000000000000..78a2983c9c73 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRows.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkGetDataTableRows_sync] +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import java.util.ArrayList; + +public class SyncBulkGetDataTableRows { + + public static void main(String[] args) throws Exception { + syncBulkGetDataTableRows(); + } + + public static void syncBulkGetDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkGetDataTableRowsRequest request = + BulkGetDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + BulkGetDataTableRowsResponse response = dataTableServiceClient.bulkGetDataTableRows(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRowsDatatablenameListgetdatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRowsDatatablenameListgetdatatablerowrequest.java new file mode 100644 index 000000000000..5795fc8eea0d --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRowsDatatablenameListgetdatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkGetDataTableRows_DatatablenameListgetdatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkGetDataTableRowsDatatablenameListgetdatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkGetDataTableRowsDatatablenameListgetdatatablerowrequest(); + } + + public static void syncBulkGetDataTableRowsDatatablenameListgetdatatablerowrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + BulkGetDataTableRowsResponse response = + dataTableServiceClient.bulkGetDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_DatatablenameListgetdatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRowsStringListgetdatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRowsStringListgetdatatablerowrequest.java new file mode 100644 index 000000000000..43952a8fb60f --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkgetdatatablerows/SyncBulkGetDataTableRowsStringListgetdatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkGetDataTableRows_StringListgetdatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkGetDataTableRowsStringListgetdatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkGetDataTableRowsStringListgetdatatablerowrequest(); + } + + public static void syncBulkGetDataTableRowsStringListgetdatatablerowrequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + List requests = new ArrayList<>(); + BulkGetDataTableRowsResponse response = + dataTableServiceClient.bulkGetDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_StringListgetdatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/AsyncBulkReplaceDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/AsyncBulkReplaceDataTableRows.java new file mode 100644 index 000000000000..b1dfcde80f19 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/AsyncBulkReplaceDataTableRows.java @@ -0,0 +1,55 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; + +public class AsyncBulkReplaceDataTableRows { + + public static void main(String[] args) throws Exception { + asyncBulkReplaceDataTableRows(); + } + + public static void asyncBulkReplaceDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkReplaceDataTableRowsRequest request = + BulkReplaceDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + dataTableServiceClient.bulkReplaceDataTableRowsCallable().futureCall(request); + // Do something. + BulkReplaceDataTableRowsResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRows.java new file mode 100644 index 000000000000..cc72b402b52b --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRows.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_sync] +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; + +public class SyncBulkReplaceDataTableRows { + + public static void main(String[] args) throws Exception { + syncBulkReplaceDataTableRows(); + } + + public static void syncBulkReplaceDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkReplaceDataTableRowsRequest request = + BulkReplaceDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + BulkReplaceDataTableRowsResponse response = + dataTableServiceClient.bulkReplaceDataTableRows(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRowsDatatablenameListcreatedatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRowsDatatablenameListcreatedatatablerowrequest.java new file mode 100644 index 000000000000..b491eb6d3674 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRowsDatatablenameListcreatedatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_DatatablenameListcreatedatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkReplaceDataTableRowsDatatablenameListcreatedatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkReplaceDataTableRowsDatatablenameListcreatedatatablerowrequest(); + } + + public static void syncBulkReplaceDataTableRowsDatatablenameListcreatedatatablerowrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + BulkReplaceDataTableRowsResponse response = + dataTableServiceClient.bulkReplaceDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_DatatablenameListcreatedatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRowsStringListcreatedatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRowsStringListcreatedatatablerowrequest.java new file mode 100644 index 000000000000..aa6523f50f26 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkreplacedatatablerows/SyncBulkReplaceDataTableRowsStringListcreatedatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_StringListcreatedatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkReplaceDataTableRowsStringListcreatedatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkReplaceDataTableRowsStringListcreatedatatablerowrequest(); + } + + public static void syncBulkReplaceDataTableRowsStringListcreatedatatablerowrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + List requests = new ArrayList<>(); + BulkReplaceDataTableRowsResponse response = + dataTableServiceClient.bulkReplaceDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_StringListcreatedatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/AsyncBulkUpdateDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/AsyncBulkUpdateDataTableRows.java new file mode 100644 index 000000000000..d52187d5f771 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/AsyncBulkUpdateDataTableRows.java @@ -0,0 +1,55 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import java.util.ArrayList; + +public class AsyncBulkUpdateDataTableRows { + + public static void main(String[] args) throws Exception { + asyncBulkUpdateDataTableRows(); + } + + public static void asyncBulkUpdateDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkUpdateDataTableRowsRequest request = + BulkUpdateDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + dataTableServiceClient.bulkUpdateDataTableRowsCallable().futureCall(request); + // Do something. + BulkUpdateDataTableRowsResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRows.java new file mode 100644 index 000000000000..2a17c45d2d2d --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRows.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_sync] +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest; +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import java.util.ArrayList; + +public class SyncBulkUpdateDataTableRows { + + public static void main(String[] args) throws Exception { + syncBulkUpdateDataTableRows(); + } + + public static void syncBulkUpdateDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + BulkUpdateDataTableRowsRequest request = + BulkUpdateDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .addAllRequests(new ArrayList()) + .build(); + BulkUpdateDataTableRowsResponse response = + dataTableServiceClient.bulkUpdateDataTableRows(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRowsDatatablenameListupdatedatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRowsDatatablenameListupdatedatatablerowrequest.java new file mode 100644 index 000000000000..df83de5a0038 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRowsDatatablenameListupdatedatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_DatatablenameListupdatedatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkUpdateDataTableRowsDatatablenameListupdatedatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkUpdateDataTableRowsDatatablenameListupdatedatatablerowrequest(); + } + + public static void syncBulkUpdateDataTableRowsDatatablenameListupdatedatatablerowrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + List requests = new ArrayList<>(); + BulkUpdateDataTableRowsResponse response = + dataTableServiceClient.bulkUpdateDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_DatatablenameListupdatedatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRowsStringListupdatedatatablerowrequest.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRowsStringListupdatedatatablerowrequest.java new file mode 100644 index 000000000000..9036531ab13a --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/bulkupdatedatatablerows/SyncBulkUpdateDataTableRowsStringListupdatedatatablerowrequest.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_StringListupdatedatatablerowrequest_sync] +import com.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBulkUpdateDataTableRowsStringListupdatedatatablerowrequest { + + public static void main(String[] args) throws Exception { + syncBulkUpdateDataTableRowsStringListupdatedatatablerowrequest(); + } + + public static void syncBulkUpdateDataTableRowsStringListupdatedatatablerowrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + List requests = new ArrayList<>(); + BulkUpdateDataTableRowsResponse response = + dataTableServiceClient.bulkUpdateDataTableRows(parent, requests); + } + } +} +// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_StringListupdatedatatablerowrequest_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateSetCredentialsProvider.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..85a4a8c81b6a --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateSetCredentialsProvider.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.DataTableServiceSettings; +import com.google.cloud.chronicle.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTableServiceSettings dataTableServiceSettings = + DataTableServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DataTableServiceClient dataTableServiceClient = + DataTableServiceClient.create(dataTableServiceSettings); + } +} +// [END chronicle_v1_generated_DataTableService_Create_SetCredentialsProvider_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateSetEndpoint.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..98492ecdbfc6 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateSetEndpoint.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_Create_SetEndpoint_sync] +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.DataTableServiceSettings; +import com.google.cloud.chronicle.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTableServiceSettings dataTableServiceSettings = + DataTableServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DataTableServiceClient dataTableServiceClient = + DataTableServiceClient.create(dataTableServiceSettings); + } +} +// [END chronicle_v1_generated_DataTableService_Create_SetEndpoint_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateUseHttpJsonTransport.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fc53ef233343 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.DataTableServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTableServiceSettings dataTableServiceSettings = + DataTableServiceSettings.newHttpJsonBuilder().build(); + DataTableServiceClient dataTableServiceClient = + DataTableServiceClient.create(dataTableServiceSettings); + } +} +// [END chronicle_v1_generated_DataTableService_Create_UseHttpJsonTransport_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/AsyncCreateDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/AsyncCreateDataTable.java new file mode 100644 index 000000000000..dbdafbb96863 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/AsyncCreateDataTable.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.CreateDataTableRequest; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class AsyncCreateDataTable { + + public static void main(String[] args) throws Exception { + asyncCreateDataTable(); + } + + public static void asyncCreateDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + CreateDataTableRequest request = + CreateDataTableRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setDataTable(DataTable.newBuilder().build()) + .setDataTableId("dataTableId1260854911") + .build(); + ApiFuture future = + dataTableServiceClient.createDataTableCallable().futureCall(request); + // Do something. + DataTable response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTable_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTable.java new file mode 100644 index 000000000000..1614260c540f --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTable.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTable_sync] +import com.google.cloud.chronicle.v1.CreateDataTableRequest; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncCreateDataTable { + + public static void main(String[] args) throws Exception { + syncCreateDataTable(); + } + + public static void syncCreateDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + CreateDataTableRequest request = + CreateDataTableRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setDataTable(DataTable.newBuilder().build()) + .setDataTableId("dataTableId1260854911") + .build(); + DataTable response = dataTableServiceClient.createDataTable(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTable_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTableInstancenameDatatableString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTableInstancenameDatatableString.java new file mode 100644 index 000000000000..961ea3a4c238 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTableInstancenameDatatableString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTable_InstancenameDatatableString_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncCreateDataTableInstancenameDatatableString { + + public static void main(String[] args) throws Exception { + syncCreateDataTableInstancenameDatatableString(); + } + + public static void syncCreateDataTableInstancenameDatatableString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTable_InstancenameDatatableString_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTableStringDatatableString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTableStringDatatableString.java new file mode 100644 index 000000000000..0ddd174d6d7e --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatable/SyncCreateDataTableStringDatatableString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTable_StringDatatableString_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncCreateDataTableStringDatatableString { + + public static void main(String[] args) throws Exception { + syncCreateDataTableStringDatatableString(); + } + + public static void syncCreateDataTableStringDatatableString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + DataTable dataTable = DataTable.newBuilder().build(); + String dataTableId = "dataTableId1260854911"; + DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTable_StringDatatableString_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/AsyncCreateDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/AsyncCreateDataTableRow.java new file mode 100644 index 000000000000..938c13b9dfe9 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/AsyncCreateDataTableRow.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTableRow_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class AsyncCreateDataTableRow { + + public static void main(String[] args) throws Exception { + asyncCreateDataTableRow(); + } + + public static void asyncCreateDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + CreateDataTableRowRequest request = + CreateDataTableRowRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDataTableRow(DataTableRow.newBuilder().build()) + .build(); + ApiFuture future = + dataTableServiceClient.createDataTableRowCallable().futureCall(request); + // Do something. + DataTableRow response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRow.java new file mode 100644 index 000000000000..b020ed261942 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRow.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTableRow_sync] +import com.google.cloud.chronicle.v1.CreateDataTableRowRequest; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncCreateDataTableRow { + + public static void main(String[] args) throws Exception { + syncCreateDataTableRow(); + } + + public static void syncCreateDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + CreateDataTableRowRequest request = + CreateDataTableRowRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setDataTableRow(DataTableRow.newBuilder().build()) + .build(); + DataTableRow response = dataTableServiceClient.createDataTableRow(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRowDatatablenameDatatablerow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRowDatatablenameDatatablerow.java new file mode 100644 index 000000000000..ee0f9814b0c1 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRowDatatablenameDatatablerow.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTableRow_DatatablenameDatatablerow_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncCreateDataTableRowDatatablenameDatatablerow { + + public static void main(String[] args) throws Exception { + syncCreateDataTableRowDatatablenameDatatablerow(); + } + + public static void syncCreateDataTableRowDatatablenameDatatablerow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + DataTableRow response = dataTableServiceClient.createDataTableRow(parent, dataTableRow); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_DatatablenameDatatablerow_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRowStringDatatablerow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRowStringDatatablerow.java new file mode 100644 index 000000000000..5505e97b36aa --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/createdatatablerow/SyncCreateDataTableRowStringDatatablerow.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_CreateDataTableRow_StringDatatablerow_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncCreateDataTableRowStringDatatablerow { + + public static void main(String[] args) throws Exception { + syncCreateDataTableRowStringDatatablerow(); + } + + public static void syncCreateDataTableRowStringDatatablerow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + DataTableRow response = dataTableServiceClient.createDataTableRow(parent, dataTableRow); + } + } +} +// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_StringDatatablerow_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/AsyncDeleteDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/AsyncDeleteDataTable.java new file mode 100644 index 000000000000..6d050a797a2c --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/AsyncDeleteDataTable.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.DeleteDataTableRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteDataTable { + + public static void main(String[] args) throws Exception { + asyncDeleteDataTable(); + } + + public static void asyncDeleteDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DeleteDataTableRequest request = + DeleteDataTableRequest.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setForce(true) + .build(); + ApiFuture future = + dataTableServiceClient.deleteDataTableCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTable_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTable.java new file mode 100644 index 000000000000..25ca6fc9e3e7 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTable.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTable_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.DeleteDataTableRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteDataTable { + + public static void main(String[] args) throws Exception { + syncDeleteDataTable(); + } + + public static void syncDeleteDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DeleteDataTableRequest request = + DeleteDataTableRequest.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setForce(true) + .build(); + dataTableServiceClient.deleteDataTable(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTable_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTableDatatablenameBoolean.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTableDatatablenameBoolean.java new file mode 100644 index 000000000000..20b6662e3acd --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTableDatatablenameBoolean.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTable_DatatablenameBoolean_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataTableDatatablenameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteDataTableDatatablenameBoolean(); + } + + public static void syncDeleteDataTableDatatablenameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + boolean force = true; + dataTableServiceClient.deleteDataTable(name, force); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTable_DatatablenameBoolean_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTableStringBoolean.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTableStringBoolean.java new file mode 100644 index 000000000000..f9ae4c9f28e7 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatable/SyncDeleteDataTableStringBoolean.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTable_StringBoolean_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataTableStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteDataTableStringBoolean(); + } + + public static void syncDeleteDataTableStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + boolean force = true; + dataTableServiceClient.deleteDataTable(name, force); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTable_StringBoolean_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/AsyncDeleteDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/AsyncDeleteDataTableRow.java new file mode 100644 index 000000000000..3befe3a9b636 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/AsyncDeleteDataTableRow.java @@ -0,0 +1,57 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTableRow_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.DeleteDataTableRowRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteDataTableRow { + + public static void main(String[] args) throws Exception { + asyncDeleteDataTableRow(); + } + + public static void asyncDeleteDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DeleteDataTableRowRequest request = + DeleteDataTableRowRequest.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[DATA_TABLE]", + "[DATA_TABLE_ROW]") + .toString()) + .build(); + ApiFuture future = + dataTableServiceClient.deleteDataTableRowCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRow.java new file mode 100644 index 000000000000..c7f7ff94721b --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRow.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTableRow_sync] +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.DeleteDataTableRowRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteDataTableRow { + + public static void main(String[] args) throws Exception { + syncDeleteDataTableRow(); + } + + public static void syncDeleteDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DeleteDataTableRowRequest request = + DeleteDataTableRowRequest.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[DATA_TABLE]", + "[DATA_TABLE_ROW]") + .toString()) + .build(); + dataTableServiceClient.deleteDataTableRow(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRowDatatablerowname.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRowDatatablerowname.java new file mode 100644 index 000000000000..46e3dbceb4d8 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRowDatatablerowname.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTableRow_Datatablerowname_sync] +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataTableRowDatatablerowname { + + public static void main(String[] args) throws Exception { + syncDeleteDataTableRowDatatablerowname(); + } + + public static void syncDeleteDataTableRowDatatablerowname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + dataTableServiceClient.deleteDataTableRow(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_Datatablerowname_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRowString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRowString.java new file mode 100644 index 000000000000..61796f305024 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/deletedatatablerow/SyncDeleteDataTableRowString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_DeleteDataTableRow_String_sync] +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataTableRowString { + + public static void main(String[] args) throws Exception { + syncDeleteDataTableRowString(); + } + + public static void syncDeleteDataTableRowString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString(); + dataTableServiceClient.deleteDataTableRow(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/AsyncGetDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/AsyncGetDataTable.java new file mode 100644 index 000000000000..6ee664e0ede8 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/AsyncGetDataTable.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRequest; + +public class AsyncGetDataTable { + + public static void main(String[] args) throws Exception { + asyncGetDataTable(); + } + + public static void asyncGetDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + GetDataTableRequest request = + GetDataTableRequest.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .build(); + ApiFuture future = + dataTableServiceClient.getDataTableCallable().futureCall(request); + // Do something. + DataTable response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTable_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTable.java new file mode 100644 index 000000000000..84f5f6052713 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTable.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTable_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRequest; + +public class SyncGetDataTable { + + public static void main(String[] args) throws Exception { + syncGetDataTable(); + } + + public static void syncGetDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + GetDataTableRequest request = + GetDataTableRequest.newBuilder() + .setName( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .build(); + DataTable response = dataTableServiceClient.getDataTable(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTable_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTableDatatablename.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTableDatatablename.java new file mode 100644 index 000000000000..fc556e78bc71 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTableDatatablename.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTable_Datatablename_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncGetDataTableDatatablename { + + public static void main(String[] args) throws Exception { + syncGetDataTableDatatablename(); + } + + public static void syncGetDataTableDatatablename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + DataTable response = dataTableServiceClient.getDataTable(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTable_Datatablename_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTableString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTableString.java new file mode 100644 index 000000000000..e8cf776ddee3 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatable/SyncGetDataTableString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTable_String_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncGetDataTableString { + + public static void main(String[] args) throws Exception { + syncGetDataTableString(); + } + + public static void syncGetDataTableString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String name = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + DataTable response = dataTableServiceClient.getDataTable(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTable_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/AsyncGetDataTableOperationErrors.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/AsyncGetDataTableOperationErrors.java new file mode 100644 index 000000000000..ea3e0d4daf80 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/AsyncGetDataTableOperationErrors.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableOperationErrorsName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest; + +public class AsyncGetDataTableOperationErrors { + + public static void main(String[] args) throws Exception { + asyncGetDataTableOperationErrors(); + } + + public static void asyncGetDataTableOperationErrors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + GetDataTableOperationErrorsRequest request = + GetDataTableOperationErrorsRequest.newBuilder() + .setName( + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]") + .toString()) + .build(); + ApiFuture future = + dataTableServiceClient.getDataTableOperationErrorsCallable().futureCall(request); + // Do something. + DataTableOperationErrors response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrors.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrors.java new file mode 100644 index 000000000000..24b8bf4622d5 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrors.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_sync] +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableOperationErrorsName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest; + +public class SyncGetDataTableOperationErrors { + + public static void main(String[] args) throws Exception { + syncGetDataTableOperationErrors(); + } + + public static void syncGetDataTableOperationErrors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + GetDataTableOperationErrorsRequest request = + GetDataTableOperationErrorsRequest.newBuilder() + .setName( + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]") + .toString()) + .build(); + DataTableOperationErrors response = + dataTableServiceClient.getDataTableOperationErrors(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrorsDatatableoperationerrorsname.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrorsDatatableoperationerrorsname.java new file mode 100644 index 000000000000..2e9a28e43500 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrorsDatatableoperationerrorsname.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_Datatableoperationerrorsname_sync] +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableOperationErrorsName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncGetDataTableOperationErrorsDatatableoperationerrorsname { + + public static void main(String[] args) throws Exception { + syncGetDataTableOperationErrorsDatatableoperationerrorsname(); + } + + public static void syncGetDataTableOperationErrorsDatatableoperationerrorsname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableOperationErrorsName name = + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]"); + DataTableOperationErrors response = dataTableServiceClient.getDataTableOperationErrors(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_Datatableoperationerrorsname_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrorsString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrorsString.java new file mode 100644 index 000000000000..8ea7313678ad --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatableoperationerrors/SyncGetDataTableOperationErrorsString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_String_sync] +import com.google.cloud.chronicle.v1.DataTableOperationErrors; +import com.google.cloud.chronicle.v1.DataTableOperationErrorsName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncGetDataTableOperationErrorsString { + + public static void main(String[] args) throws Exception { + syncGetDataTableOperationErrorsString(); + } + + public static void syncGetDataTableOperationErrorsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String name = + DataTableOperationErrorsName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]") + .toString(); + DataTableOperationErrors response = dataTableServiceClient.getDataTableOperationErrors(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/AsyncGetDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/AsyncGetDataTableRow.java new file mode 100644 index 000000000000..b9c84166becb --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/AsyncGetDataTableRow.java @@ -0,0 +1,57 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableRow_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; + +public class AsyncGetDataTableRow { + + public static void main(String[] args) throws Exception { + asyncGetDataTableRow(); + } + + public static void asyncGetDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + GetDataTableRowRequest request = + GetDataTableRowRequest.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[DATA_TABLE]", + "[DATA_TABLE_ROW]") + .toString()) + .build(); + ApiFuture future = + dataTableServiceClient.getDataTableRowCallable().futureCall(request); + // Do something. + DataTableRow response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableRow_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRow.java new file mode 100644 index 000000000000..170ddce5f37c --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRow.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableRow_sync] +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.GetDataTableRowRequest; + +public class SyncGetDataTableRow { + + public static void main(String[] args) throws Exception { + syncGetDataTableRow(); + } + + public static void syncGetDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + GetDataTableRowRequest request = + GetDataTableRowRequest.newBuilder() + .setName( + DataTableRowName.of( + "[PROJECT]", + "[LOCATION]", + "[INSTANCE]", + "[DATA_TABLE]", + "[DATA_TABLE_ROW]") + .toString()) + .build(); + DataTableRow response = dataTableServiceClient.getDataTableRow(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableRow_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRowDatatablerowname.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRowDatatablerowname.java new file mode 100644 index 000000000000..04829ee38428 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRowDatatablerowname.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableRow_Datatablerowname_sync] +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncGetDataTableRowDatatablerowname { + + public static void main(String[] args) throws Exception { + syncGetDataTableRowDatatablerowname(); + } + + public static void syncGetDataTableRowDatatablerowname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableRowName name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]"); + DataTableRow response = dataTableServiceClient.getDataTableRow(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableRow_Datatablerowname_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRowString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRowString.java new file mode 100644 index 000000000000..a41c2264e67a --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/getdatatablerow/SyncGetDataTableRowString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_GetDataTableRow_String_sync] +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableRowName; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncGetDataTableRowString { + + public static void main(String[] args) throws Exception { + syncGetDataTableRowString(); + } + + public static void syncGetDataTableRowString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String name = + DataTableRowName.of( + "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]") + .toString(); + DataTableRow response = dataTableServiceClient.getDataTableRow(name); + } + } +} +// [END chronicle_v1_generated_DataTableService_GetDataTableRow_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/AsyncListDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/AsyncListDataTableRows.java new file mode 100644 index 000000000000..77b498e3579a --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/AsyncListDataTableRows.java @@ -0,0 +1,58 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTableRows_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.ListDataTableRowsRequest; + +public class AsyncListDataTableRows { + + public static void main(String[] args) throws Exception { + asyncListDataTableRows(); + } + + public static void asyncListDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + ListDataTableRowsRequest request = + ListDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataTableServiceClient.listDataTableRowsPagedCallable().futureCall(request); + // Do something. + for (DataTableRow element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTableRows_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/AsyncListDataTableRowsPaged.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/AsyncListDataTableRowsPaged.java new file mode 100644 index 000000000000..709b7c3f1ded --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/AsyncListDataTableRowsPaged.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. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTableRows_Paged_async] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.ListDataTableRowsRequest; +import com.google.cloud.chronicle.v1.ListDataTableRowsResponse; +import com.google.common.base.Strings; + +public class AsyncListDataTableRowsPaged { + + public static void main(String[] args) throws Exception { + asyncListDataTableRowsPaged(); + } + + public static void asyncListDataTableRowsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + ListDataTableRowsRequest request = + ListDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListDataTableRowsResponse response = + dataTableServiceClient.listDataTableRowsCallable().call(request); + for (DataTableRow element : response.getDataTableRowsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTableRows_Paged_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRows.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRows.java new file mode 100644 index 000000000000..f718104a45a8 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRows.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTableRows_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.ListDataTableRowsRequest; + +public class SyncListDataTableRows { + + public static void main(String[] args) throws Exception { + syncListDataTableRows(); + } + + public static void syncListDataTableRows() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + ListDataTableRowsRequest request = + ListDataTableRowsRequest.newBuilder() + .setParent( + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (DataTableRow element : dataTableServiceClient.listDataTableRows(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTableRows_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRowsDatatablename.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRowsDatatablename.java new file mode 100644 index 000000000000..81176fec08df --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRowsDatatablename.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTableRows_Datatablename_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncListDataTableRowsDatatablename { + + public static void main(String[] args) throws Exception { + syncListDataTableRowsDatatablename(); + } + + public static void syncListDataTableRowsDatatablename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableName parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]"); + for (DataTableRow element : dataTableServiceClient.listDataTableRows(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTableRows_Datatablename_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRowsString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRowsString.java new file mode 100644 index 000000000000..2c0356c6a08c --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatablerows/SyncListDataTableRowsString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTableRows_String_sync] +import com.google.cloud.chronicle.v1.DataTableName; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; + +public class SyncListDataTableRowsString { + + public static void main(String[] args) throws Exception { + syncListDataTableRowsString(); + } + + public static void syncListDataTableRowsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = + DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString(); + for (DataTableRow element : dataTableServiceClient.listDataTableRows(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTableRows_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/AsyncListDataTables.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/AsyncListDataTables.java new file mode 100644 index 000000000000..e0681cd1908e --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/AsyncListDataTables.java @@ -0,0 +1,55 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTables_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListDataTablesRequest; + +public class AsyncListDataTables { + + public static void main(String[] args) throws Exception { + asyncListDataTables(); + } + + public static void asyncListDataTables() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + ListDataTablesRequest request = + ListDataTablesRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + dataTableServiceClient.listDataTablesPagedCallable().futureCall(request); + // Do something. + for (DataTable element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTables_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/AsyncListDataTablesPaged.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/AsyncListDataTablesPaged.java new file mode 100644 index 000000000000..4ad3700cbc59 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/AsyncListDataTablesPaged.java @@ -0,0 +1,63 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTables_Paged_async] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListDataTablesRequest; +import com.google.cloud.chronicle.v1.ListDataTablesResponse; +import com.google.common.base.Strings; + +public class AsyncListDataTablesPaged { + + public static void main(String[] args) throws Exception { + asyncListDataTablesPaged(); + } + + public static void asyncListDataTablesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + ListDataTablesRequest request = + ListDataTablesRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDataTablesResponse response = + dataTableServiceClient.listDataTablesCallable().call(request); + for (DataTable element : response.getDataTablesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTables_Paged_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTables.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTables.java new file mode 100644 index 000000000000..5a448d82b592 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTables.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTables_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListDataTablesRequest; + +public class SyncListDataTables { + + public static void main(String[] args) throws Exception { + syncListDataTables(); + } + + public static void syncListDataTables() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + ListDataTablesRequest request = + ListDataTablesRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + for (DataTable element : dataTableServiceClient.listDataTables(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTables_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTablesInstancename.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTablesInstancename.java new file mode 100644 index 000000000000..4e3733f7b9b9 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTablesInstancename.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTables_Instancename_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncListDataTablesInstancename { + + public static void main(String[] args) throws Exception { + syncListDataTablesInstancename(); + } + + public static void syncListDataTablesInstancename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + for (DataTable element : dataTableServiceClient.listDataTables(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTables_Instancename_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTablesString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTablesString.java new file mode 100644 index 000000000000..9ed403b2c2b2 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/listdatatables/SyncListDataTablesString.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_ListDataTables_String_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.InstanceName; + +public class SyncListDataTablesString { + + public static void main(String[] args) throws Exception { + syncListDataTablesString(); + } + + public static void syncListDataTablesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + for (DataTable element : dataTableServiceClient.listDataTables(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_DataTableService_ListDataTables_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/AsyncUpdateDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/AsyncUpdateDataTable.java new file mode 100644 index 000000000000..66afa7cdd860 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/AsyncUpdateDataTable.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_UpdateDataTable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDataTable { + + public static void main(String[] args) throws Exception { + asyncUpdateDataTable(); + } + + public static void asyncUpdateDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + UpdateDataTableRequest request = + UpdateDataTableRequest.newBuilder() + .setDataTable(DataTable.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataTableServiceClient.updateDataTableCallable().futureCall(request); + // Do something. + DataTable response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTable_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/SyncUpdateDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/SyncUpdateDataTable.java new file mode 100644 index 000000000000..7789009876e1 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/SyncUpdateDataTable.java @@ -0,0 +1,47 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_UpdateDataTable_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataTable { + + public static void main(String[] args) throws Exception { + syncUpdateDataTable(); + } + + public static void syncUpdateDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + UpdateDataTableRequest request = + UpdateDataTableRequest.newBuilder() + .setDataTable(DataTable.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DataTable response = dataTableServiceClient.updateDataTable(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTable_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/SyncUpdateDataTableDatatableFieldmask.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/SyncUpdateDataTableDatatableFieldmask.java new file mode 100644 index 000000000000..4bcfbbbf4796 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatable/SyncUpdateDataTableDatatableFieldmask.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_UpdateDataTable_DatatableFieldmask_sync] +import com.google.cloud.chronicle.v1.DataTable; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataTableDatatableFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDataTableDatatableFieldmask(); + } + + public static void syncUpdateDataTableDatatableFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTable dataTable = DataTable.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DataTable response = dataTableServiceClient.updateDataTable(dataTable, updateMask); + } + } +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTable_DatatableFieldmask_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/AsyncUpdateDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/AsyncUpdateDataTableRow.java new file mode 100644 index 000000000000..eaacbd14ee75 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/AsyncUpdateDataTableRow.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_UpdateDataTableRow_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDataTableRow { + + public static void main(String[] args) throws Exception { + asyncUpdateDataTableRow(); + } + + public static void asyncUpdateDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + UpdateDataTableRowRequest request = + UpdateDataTableRowRequest.newBuilder() + .setDataTableRow(DataTableRow.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataTableServiceClient.updateDataTableRowCallable().futureCall(request); + // Do something. + DataTableRow response = future.get(); + } + } +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTableRow_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/SyncUpdateDataTableRow.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/SyncUpdateDataTableRow.java new file mode 100644 index 000000000000..a0b93094748f --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/SyncUpdateDataTableRow.java @@ -0,0 +1,47 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_UpdateDataTableRow_sync] +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.cloud.chronicle.v1.UpdateDataTableRowRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataTableRow { + + public static void main(String[] args) throws Exception { + syncUpdateDataTableRow(); + } + + public static void syncUpdateDataTableRow() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + UpdateDataTableRowRequest request = + UpdateDataTableRowRequest.newBuilder() + .setDataTableRow(DataTableRow.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DataTableRow response = dataTableServiceClient.updateDataTableRow(request); + } + } +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTableRow_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/SyncUpdateDataTableRowDatatablerowFieldmask.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/SyncUpdateDataTableRowDatatablerowFieldmask.java new file mode 100644 index 000000000000..ff5257011c14 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservice/updatedatatablerow/SyncUpdateDataTableRowDatatablerowFieldmask.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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableService_UpdateDataTableRow_DatatablerowFieldmask_sync] +import com.google.cloud.chronicle.v1.DataTableRow; +import com.google.cloud.chronicle.v1.DataTableServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataTableRowDatatablerowFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDataTableRowDatatablerowFieldmask(); + } + + public static void syncUpdateDataTableRowDatatablerowFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) { + DataTableRow dataTableRow = DataTableRow.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DataTableRow response = dataTableServiceClient.updateDataTableRow(dataTableRow, updateMask); + } + } +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTableRow_DatatablerowFieldmask_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservicesettings/createdatatable/SyncCreateDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservicesettings/createdatatable/SyncCreateDataTable.java new file mode 100644 index 000000000000..24614f7659ce --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/datatableservicesettings/createdatatable/SyncCreateDataTable.java @@ -0,0 +1,56 @@ +/* + * 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.chronicle.v1.samples; + +// [START chronicle_v1_generated_DataTableServiceSettings_CreateDataTable_sync] +import com.google.cloud.chronicle.v1.DataTableServiceSettings; +import java.time.Duration; + +public class SyncCreateDataTable { + + public static void main(String[] args) throws Exception { + syncCreateDataTable(); + } + + public static void syncCreateDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTableServiceSettings.Builder dataTableServiceSettingsBuilder = + DataTableServiceSettings.newBuilder(); + dataTableServiceSettingsBuilder + .createDataTableSettings() + .setRetrySettings( + dataTableServiceSettingsBuilder + .createDataTableSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DataTableServiceSettings dataTableServiceSettings = dataTableServiceSettingsBuilder.build(); + } +} +// [END chronicle_v1_generated_DataTableServiceSettings_CreateDataTable_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/datatableservicestubsettings/createdatatable/SyncCreateDataTable.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/datatableservicestubsettings/createdatatable/SyncCreateDataTable.java new file mode 100644 index 000000000000..1fa04d34b250 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/datatableservicestubsettings/createdatatable/SyncCreateDataTable.java @@ -0,0 +1,56 @@ +/* + * 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.chronicle.v1.stub.samples; + +// [START chronicle_v1_generated_DataTableServiceStubSettings_CreateDataTable_sync] +import com.google.cloud.chronicle.v1.stub.DataTableServiceStubSettings; +import java.time.Duration; + +public class SyncCreateDataTable { + + public static void main(String[] args) throws Exception { + syncCreateDataTable(); + } + + public static void syncCreateDataTable() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTableServiceStubSettings.Builder dataTableServiceSettingsBuilder = + DataTableServiceStubSettings.newBuilder(); + dataTableServiceSettingsBuilder + .createDataTableSettings() + .setRetrySettings( + dataTableServiceSettingsBuilder + .createDataTableSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DataTableServiceStubSettings dataTableServiceSettings = dataTableServiceSettingsBuilder.build(); + } +} +// [END chronicle_v1_generated_DataTableServiceStubSettings_CreateDataTable_sync] diff --git a/java-cloudapiregistry/.OwlBot-hermetic.yaml b/java-cloudapiregistry/.OwlBot-hermetic.yaml index 601dc3f6704f..562bd0c587d9 100644 --- a/java-cloudapiregistry/.OwlBot-hermetic.yaml +++ b/java-cloudapiregistry/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-cloudapiregistry/samples/snippets/generated" deep-preserve-regex: -- "/java-cloudapiregistry/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/apiregistry/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index aee50703c8ab..eb8b83894060 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudapiregistry - 0.7.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.7.0' +implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.9.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-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.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/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-cloudbuild/.OwlBot-hermetic.yaml b/java-cloudbuild/.OwlBot-hermetic.yaml index dc0159d5bf76..1919c09ed6b5 100644 --- a/java-cloudbuild/.OwlBot-hermetic.yaml +++ b/java-cloudbuild/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-cloudbuild/google-.*/src" - "/java-cloudbuild/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/devtools/cloudbuild/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudbuild/$1/proto-google-cloud-build-$1/src" diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index ad23b34943e2..e1f75f206d86 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.90.0 + 3.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.90.0' +implementation 'com.google.cloud:google-cloud-build:3.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.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-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml b/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml index a78286eab59f..9e14e5c32b11 100644 --- a/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml +++ b/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-cloudcommerceconsumerprocurement/samples/snippets/generated" deep-preserve-regex: -- "/java-cloudcommerceconsumerprocurement/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index a6231e99f3a1..4c9384ce7821 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.86.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.86.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.88.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-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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/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-cloudcontrolspartner/.OwlBot-hermetic.yaml b/java-cloudcontrolspartner/.OwlBot-hermetic.yaml index b6b792e566ff..0e1f04bc5757 100644 --- a/java-cloudcontrolspartner/.OwlBot-hermetic.yaml +++ b/java-cloudcontrolspartner/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-cloudcontrolspartner/samples/snippets/generated" deep-preserve-regex: -- "/java-cloudcontrolspartner/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 8a6432984dd3..0e046e4bfc21 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.52.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.52.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.54.0" ``` ## Authentication @@ -175,7 +175,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.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/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-cloudquotas/.OwlBot-hermetic.yaml b/java-cloudquotas/.OwlBot-hermetic.yaml index 0c9361da963e..8bb2e51f829b 100644 --- a/java-cloudquotas/.OwlBot-hermetic.yaml +++ b/java-cloudquotas/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-cloudquotas/samples/snippets/generated" deep-preserve-regex: -- "/java-cloudquotas/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/api/cloudquotas/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index ee68eecfbd70..004d439dee4e 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.56.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.56.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.58.0" ``` ## Authentication @@ -177,7 +177,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.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/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-cloudsecuritycompliance/.OwlBot-hermetic.yaml b/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml index 6b8778a312d7..0d2b2d4016bc 100644 --- a/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml +++ b/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-cloudsecuritycompliance/samples/snippets/generated" deep-preserve-regex: -- "/java-cloudsecuritycompliance/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index a5da314aea7e..33b989f1892f 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.15.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.15.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.17.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-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.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.17.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/.OwlBot-hermetic.yaml b/java-cloudsupport/.OwlBot-hermetic.yaml index 6e6eb45fbd65..3ce84c43fc48 100644 --- a/java-cloudsupport/.OwlBot-hermetic.yaml +++ b/java-cloudsupport/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-cloudsupport/samples/snippets/generated" deep-preserve-regex: -- "/java-cloudsupport/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/support/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 0771759be9fb..3d06b1cfc61c 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.72.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.72.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.74.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-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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-compute/.OwlBot-hermetic.yaml index 9d52b7c18513..74f604a9b21a 100644 --- a/java-compute/.OwlBot-hermetic.yaml +++ b/java-compute/.OwlBot-hermetic.yaml @@ -19,8 +19,9 @@ deep-remove-regex: - "/java-compute/samples/snippets/generated" deep-preserve-regex: -- "/java-compute/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/integration" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-compute/src/test/java/com/google/cloud/compute/v1/integration" deep-copy-regex: - source: "/google/cloud/compute/(v\\d)/.*-java/proto-google-.*/src" diff --git a/java-compute/README.md b/java-compute/README.md index 237890b2816c..533770956fda 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.98.0 + 1.100.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.98.0' +implementation 'com.google.cloud:google-cloud-compute:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.100.0" ``` ## Authentication @@ -238,7 +238,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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/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-confidentialcomputing/.OwlBot-hermetic.yaml b/java-confidentialcomputing/.OwlBot-hermetic.yaml index a61164024e7e..dc26501de170 100644 --- a/java-confidentialcomputing/.OwlBot-hermetic.yaml +++ b/java-confidentialcomputing/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-confidentialcomputing/samples/snippets/generated" deep-preserve-regex: -- "/java-confidentialcomputing/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 79f9970f758b..67a413a69920 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.74.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.74.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.76.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-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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.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-configdelivery/.OwlBot-hermetic.yaml b/java-configdelivery/.OwlBot-hermetic.yaml index e3c96195b8f2..d68c796dde71 100644 --- a/java-configdelivery/.OwlBot-hermetic.yaml +++ b/java-configdelivery/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-configdelivery/samples/snippets/generated" deep-preserve-regex: -- "/java-configdelivery/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/configdelivery/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index 7405855061d4..73d38c1661f9 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.22.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.22.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.24.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-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.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-connectgateway/.OwlBot-hermetic.yaml b/java-connectgateway/.OwlBot-hermetic.yaml index eb7cc8bfa1f4..d4cd3aa8603d 100644 --- a/java-connectgateway/.OwlBot-hermetic.yaml +++ b/java-connectgateway/.OwlBot-hermetic.yaml @@ -19,7 +19,8 @@ deep-remove-regex: - "/java-connectgateway/samples/snippets/generated" deep-preserve-regex: -- "/java-connectgateway/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index aefe087c4b99..11f55b582d8f 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.40.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.40.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.42.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-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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/.OwlBot-hermetic.yaml b/java-contact-center-insights/.OwlBot-hermetic.yaml index 9d354d626291..edf370f767b7 100644 --- a/java-contact-center-insights/.OwlBot-hermetic.yaml +++ b/java-contact-center-insights/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-contact-center-insights/google-.*/src" - "/java-contact-center-insights/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-contact-center-insights/$1/proto-google-cloud-contact-center-insights-$1/src" diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 3a4b8082d91b..86864ef29ad3 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.88.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-container/.OwlBot-hermetic.yaml index 9957f8107cf0..8af14e8c8e41 100644 --- a/java-container/.OwlBot-hermetic.yaml +++ b/java-container/.OwlBot-hermetic.yaml @@ -20,9 +20,10 @@ deep-remove-regex: - "/java-container/samples/snippets/generated" deep-preserve-regex: -- "/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/SampleApp.java" -- "/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/it/ITSystemTest.java" -- "/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/it/Util.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-container/src/main/java/com/google/cloud/container/v1/SampleApp.java" +- "/.*google-cloud-container/src/test/java/com/google/cloud/container/v1/it/ITSystemTest.java" +- "/.*google-cloud-container/src/test/java/com/google/cloud/container/v1/it/Util.java" deep-copy-regex: - source: "/google/container/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-container/README.md b/java-container/README.md index d6d9311468f6..d70dc156bbe9 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.91.0 + 2.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.91.0' +implementation 'com.google.cloud:google-cloud-container:2.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.93.0" ``` ## Authentication @@ -175,7 +175,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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-containeranalysis/.OwlBot-hermetic.yaml index 7816d3b7bb80..8414051180a3 100644 --- a/java-containeranalysis/.OwlBot-hermetic.yaml +++ b/java-containeranalysis/.OwlBot-hermetic.yaml @@ -21,9 +21,10 @@ deep-remove-regex: # TODO: remove resource name classes in next major update deep-preserve-regex: -- "/java-containeranalysis/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/GrafeasUtils.java" -- "/java-containeranalysis/google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/ITGrafeasInteropTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/GrafeasUtils.java" +- "/.*google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/ITGrafeasInteropTest.java" deep-copy-regex: - source: "/google/devtools/containeranalysis/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 196b44d1a9c6..0866eebf76ba 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.89.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-contentwarehouse/.OwlBot-hermetic.yaml index cf6b3d73f489..2d22d56f04b7 100644 --- a/java-contentwarehouse/.OwlBot-hermetic.yaml +++ b/java-contentwarehouse/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-contentwarehouse/samples/snippets/generated" deep-preserve-regex: -- "/java-contentwarehouse/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/contentwarehouse/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 762d9438172a..c552900287cb 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.84.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.84.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.86.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-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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/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-data-fusion/.OwlBot-hermetic.yaml b/java-data-fusion/.OwlBot-hermetic.yaml index cad6ff33b862..c841cc730970 100644 --- a/java-data-fusion/.OwlBot-hermetic.yaml +++ b/java-data-fusion/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-data-fusion/google-.*/src" deep-preserve-regex: -- "/java-data-fusion/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/datafusion/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index 516b01eca169..7637d84e4721 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.88.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-databasecenter/.OwlBot-hermetic.yaml index 01c5b3d486e4..bba598c45114 100644 --- a/java-databasecenter/.OwlBot-hermetic.yaml +++ b/java-databasecenter/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-databasecenter/samples/snippets/generated" deep-preserve-regex: -- "/java-databasecenter/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/databasecenter/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index 53e7d50b33c7..44019e934493 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.9.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.9.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.11.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-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.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json index 8889be9c9c3b..958b714d7c2b 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json +++ b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json @@ -494,6 +494,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.databasecenter.v1beta.Affiliation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.Affiliation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.Affiliation$Lineage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.Affiliation$Lineage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.Affiliation$ProcessType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.databasecenter.v1beta.AggregateFleetRequest", "queryAllDeclaredConstructors": true, @@ -926,6 +971,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.databasecenter.v1beta.MaintenanceState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.databasecenter.v1beta.ManagementType", "queryAllDeclaredConstructors": true, @@ -1007,6 +1061,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.databasecenter.v1beta.PossibleFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.databasecenter.v1beta.Product", "queryAllDeclaredConstructors": true, @@ -1484,6 +1547,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.databasecenter.v1beta.UpcomingMaintenance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.UpcomingMaintenance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.BoolValue", "queryAllDeclaredConstructors": true, diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Affiliation.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Affiliation.java new file mode 100644 index 000000000000..467221182e13 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Affiliation.java @@ -0,0 +1,2959 @@ +/* + * 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/databasecenter/v1beta/affiliation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
+ * Affiliation information of a resource
+ * 
+ * + * Protobuf type {@code google.cloud.databasecenter.v1beta.Affiliation} + */ +@com.google.protobuf.Generated +public final class Affiliation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.Affiliation) + AffiliationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Affiliation"); + } + + // Use Affiliation.newBuilder() to construct. + private Affiliation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Affiliation() { + resourceId_ = ""; + fullResourceName_ = ""; + lineages_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.Affiliation.class, + com.google.cloud.databasecenter.v1beta.Affiliation.Builder.class); + } + + /** + * + * + *
+   * Type of process which created the lineage.
+   * 
+ * + * Protobuf enum {@code google.cloud.databasecenter.v1beta.Affiliation.ProcessType} + */ + public enum ProcessType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified process type.
+     * 
+ * + * PROCESS_TYPE_UNSPECIFIED = 0; + */ + PROCESS_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Composer process type.
+     * 
+ * + * COMPOSER = 1; + */ + COMPOSER(1), + /** + * + * + *
+     * Datastream process type.
+     * 
+ * + * DATASTREAM = 2; + */ + DATASTREAM(2), + /** + * + * + *
+     * Dataflow process type.
+     * 
+ * + * DATAFLOW = 3; + */ + DATAFLOW(3), + /** + * + * + *
+     * Bigquery process type.
+     * 
+ * + * BIGQUERY = 4; + */ + BIGQUERY(4), + /** + * + * + *
+     * Data fusion process type.
+     * 
+ * + * DATA_FUSION = 5; + */ + DATA_FUSION(5), + /** + * + * + *
+     * Dataproc process type.
+     * 
+ * + * DATAPROC = 6; + */ + DATAPROC(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProcessType"); + } + + /** + * + * + *
+     * Unspecified process type.
+     * 
+ * + * PROCESS_TYPE_UNSPECIFIED = 0; + */ + public static final int PROCESS_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Composer process type.
+     * 
+ * + * COMPOSER = 1; + */ + public static final int COMPOSER_VALUE = 1; + + /** + * + * + *
+     * Datastream process type.
+     * 
+ * + * DATASTREAM = 2; + */ + public static final int DATASTREAM_VALUE = 2; + + /** + * + * + *
+     * Dataflow process type.
+     * 
+ * + * DATAFLOW = 3; + */ + public static final int DATAFLOW_VALUE = 3; + + /** + * + * + *
+     * Bigquery process type.
+     * 
+ * + * BIGQUERY = 4; + */ + public static final int BIGQUERY_VALUE = 4; + + /** + * + * + *
+     * Data fusion process type.
+     * 
+ * + * DATA_FUSION = 5; + */ + public static final int DATA_FUSION_VALUE = 5; + + /** + * + * + *
+     * Dataproc process type.
+     * 
+ * + * DATAPROC = 6; + */ + public static final int DATAPROC_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 ProcessType 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 ProcessType forNumber(int value) { + switch (value) { + case 0: + return PROCESS_TYPE_UNSPECIFIED; + case 1: + return COMPOSER; + case 2: + return DATASTREAM; + case 3: + return DATAFLOW; + case 4: + return BIGQUERY; + case 5: + return DATA_FUSION; + case 6: + return DATAPROC; + 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 ProcessType findValueByNumber(int number) { + return ProcessType.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.databasecenter.v1beta.Affiliation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProcessType[] VALUES = values(); + + public static ProcessType 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 ProcessType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.databasecenter.v1beta.Affiliation.ProcessType) + } + + public interface LineageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.Affiliation.Lineage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. FQN of source table / column
+     * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceFqn. + */ + java.lang.String getSourceFqn(); + + /** + * + * + *
+     * Optional. FQN of source table / column
+     * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceFqn. + */ + com.google.protobuf.ByteString getSourceFqnBytes(); + + /** + * + * + *
+     * Optional. FQN of target table / column
+     * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetFqn. + */ + java.lang.String getTargetFqn(); + + /** + * + * + *
+     * Optional. FQN of target table / column
+     * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetFqn. + */ + com.google.protobuf.ByteString getTargetFqnBytes(); + + /** + * + * + *
+     * Optional. FQN of process which created the lineage i.e. dataplex,
+     * datastream etc.
+     * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The processFqn. + */ + java.lang.String getProcessFqn(); + + /** + * + * + *
+     * Optional. FQN of process which created the lineage i.e. dataplex,
+     * datastream etc.
+     * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for processFqn. + */ + com.google.protobuf.ByteString getProcessFqnBytes(); + + /** + * + * + *
+     * Optional. Type of process which created the lineage.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for processType. + */ + int getProcessTypeValue(); + + /** + * + * + *
+     * Optional. Type of process which created the lineage.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The processType. + */ + com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType getProcessType(); + } + + /** + * + * + *
+   * lineage information of the affiliated resources
+   * This captures source, target and process which created the lineage.
+   * 
+ * + * Protobuf type {@code google.cloud.databasecenter.v1beta.Affiliation.Lineage} + */ + public static final class Lineage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.Affiliation.Lineage) + LineageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Lineage"); + } + + // Use Lineage.newBuilder() to construct. + private Lineage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Lineage() { + sourceFqn_ = ""; + targetFqn_ = ""; + processFqn_ = ""; + processType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.class, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder.class); + } + + public static final int SOURCE_FQN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceFqn_ = ""; + + /** + * + * + *
+     * Optional. FQN of source table / column
+     * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceFqn. + */ + @java.lang.Override + public java.lang.String getSourceFqn() { + java.lang.Object ref = sourceFqn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceFqn_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. FQN of source table / column
+     * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceFqn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceFqnBytes() { + java.lang.Object ref = sourceFqn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FQN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetFqn_ = ""; + + /** + * + * + *
+     * Optional. FQN of target table / column
+     * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetFqn. + */ + @java.lang.Override + public java.lang.String getTargetFqn() { + java.lang.Object ref = targetFqn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetFqn_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. FQN of target table / column
+     * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetFqn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetFqnBytes() { + java.lang.Object ref = targetFqn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROCESS_FQN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object processFqn_ = ""; + + /** + * + * + *
+     * Optional. FQN of process which created the lineage i.e. dataplex,
+     * datastream etc.
+     * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The processFqn. + */ + @java.lang.Override + public java.lang.String getProcessFqn() { + java.lang.Object ref = processFqn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + processFqn_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. FQN of process which created the lineage i.e. dataplex,
+     * datastream etc.
+     * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for processFqn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProcessFqnBytes() { + java.lang.Object ref = processFqn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + processFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROCESS_TYPE_FIELD_NUMBER = 4; + private int processType_ = 0; + + /** + * + * + *
+     * Optional. Type of process which created the lineage.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for processType. + */ + @java.lang.Override + public int getProcessTypeValue() { + return processType_; + } + + /** + * + * + *
+     * Optional. Type of process which created the lineage.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The processType. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType getProcessType() { + com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType result = + com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType.forNumber(processType_); + return result == null + ? com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType.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(sourceFqn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sourceFqn_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetFqn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, targetFqn_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(processFqn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, processFqn_); + } + if (processType_ + != com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType.PROCESS_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, processType_); + } + 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(sourceFqn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sourceFqn_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetFqn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, targetFqn_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(processFqn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, processFqn_); + } + if (processType_ + != com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType.PROCESS_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, processType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.databasecenter.v1beta.Affiliation.Lineage)) { + return super.equals(obj); + } + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage other = + (com.google.cloud.databasecenter.v1beta.Affiliation.Lineage) obj; + + if (!getSourceFqn().equals(other.getSourceFqn())) return false; + if (!getTargetFqn().equals(other.getTargetFqn())) return false; + if (!getProcessFqn().equals(other.getProcessFqn())) return false; + if (processType_ != other.processType_) return false; + if (!getUnknownFields().equals(other.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) + SOURCE_FQN_FIELD_NUMBER; + hash = (53 * hash) + getSourceFqn().hashCode(); + hash = (37 * hash) + TARGET_FQN_FIELD_NUMBER; + hash = (53 * hash) + getTargetFqn().hashCode(); + hash = (37 * hash) + PROCESS_FQN_FIELD_NUMBER; + hash = (53 * hash) + getProcessFqn().hashCode(); + hash = (37 * hash) + PROCESS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + processType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage 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.databasecenter.v1beta.Affiliation.Lineage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage 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.databasecenter.v1beta.Affiliation.Lineage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage 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.databasecenter.v1beta.Affiliation.Lineage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+     * lineage information of the affiliated resources
+     * This captures source, target and process which created the lineage.
+     * 
+ * + * Protobuf type {@code google.cloud.databasecenter.v1beta.Affiliation.Lineage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.Affiliation.Lineage) + com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.class, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder.class); + } + + // Construct using com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceFqn_ = ""; + targetFqn_ = ""; + processFqn_ = ""; + processType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_descriptor; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage + getDefaultInstanceForType() { + return com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage build() { + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage buildPartial() { + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage result = + new com.google.cloud.databasecenter.v1beta.Affiliation.Lineage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceFqn_ = sourceFqn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetFqn_ = targetFqn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.processFqn_ = processFqn_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.processType_ = processType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.databasecenter.v1beta.Affiliation.Lineage) { + return mergeFrom((com.google.cloud.databasecenter.v1beta.Affiliation.Lineage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.Affiliation.Lineage other) { + if (other + == com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.getDefaultInstance()) + return this; + if (!other.getSourceFqn().isEmpty()) { + sourceFqn_ = other.sourceFqn_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTargetFqn().isEmpty()) { + targetFqn_ = other.targetFqn_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getProcessFqn().isEmpty()) { + processFqn_ = other.processFqn_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.processType_ != 0) { + setProcessTypeValue(other.getProcessTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sourceFqn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetFqn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + processFqn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + processType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sourceFqn_ = ""; + + /** + * + * + *
+       * Optional. FQN of source table / column
+       * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceFqn. + */ + public java.lang.String getSourceFqn() { + java.lang.Object ref = sourceFqn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceFqn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. FQN of source table / column
+       * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceFqn. + */ + public com.google.protobuf.ByteString getSourceFqnBytes() { + java.lang.Object ref = sourceFqn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. FQN of source table / column
+       * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceFqn to set. + * @return This builder for chaining. + */ + public Builder setSourceFqn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceFqn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. FQN of source table / column
+       * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceFqn() { + sourceFqn_ = getDefaultInstance().getSourceFqn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. FQN of source table / column
+       * 
+ * + * string source_fqn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sourceFqn to set. + * @return This builder for chaining. + */ + public Builder setSourceFqnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFqn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object targetFqn_ = ""; + + /** + * + * + *
+       * Optional. FQN of target table / column
+       * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetFqn. + */ + public java.lang.String getTargetFqn() { + java.lang.Object ref = targetFqn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetFqn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. FQN of target table / column
+       * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetFqn. + */ + public com.google.protobuf.ByteString getTargetFqnBytes() { + java.lang.Object ref = targetFqn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. FQN of target table / column
+       * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The targetFqn to set. + * @return This builder for chaining. + */ + public Builder setTargetFqn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetFqn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. FQN of target table / column
+       * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTargetFqn() { + targetFqn_ = getDefaultInstance().getTargetFqn(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. FQN of target table / column
+       * 
+ * + * string target_fqn = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for targetFqn to set. + * @return This builder for chaining. + */ + public Builder setTargetFqnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetFqn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object processFqn_ = ""; + + /** + * + * + *
+       * Optional. FQN of process which created the lineage i.e. dataplex,
+       * datastream etc.
+       * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The processFqn. + */ + public java.lang.String getProcessFqn() { + java.lang.Object ref = processFqn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + processFqn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. FQN of process which created the lineage i.e. dataplex,
+       * datastream etc.
+       * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for processFqn. + */ + public com.google.protobuf.ByteString getProcessFqnBytes() { + java.lang.Object ref = processFqn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + processFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. FQN of process which created the lineage i.e. dataplex,
+       * datastream etc.
+       * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The processFqn to set. + * @return This builder for chaining. + */ + public Builder setProcessFqn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + processFqn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. FQN of process which created the lineage i.e. dataplex,
+       * datastream etc.
+       * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProcessFqn() { + processFqn_ = getDefaultInstance().getProcessFqn(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. FQN of process which created the lineage i.e. dataplex,
+       * datastream etc.
+       * 
+ * + * string process_fqn = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for processFqn to set. + * @return This builder for chaining. + */ + public Builder setProcessFqnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + processFqn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int processType_ = 0; + + /** + * + * + *
+       * Optional. Type of process which created the lineage.
+       * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for processType. + */ + @java.lang.Override + public int getProcessTypeValue() { + return processType_; + } + + /** + * + * + *
+       * Optional. Type of process which created the lineage.
+       * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for processType to set. + * @return This builder for chaining. + */ + public Builder setProcessTypeValue(int value) { + processType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Type of process which created the lineage.
+       * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The processType. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType getProcessType() { + com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType result = + com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType.forNumber(processType_); + return result == null + ? com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Type of process which created the lineage.
+       * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The processType to set. + * @return This builder for chaining. + */ + public Builder setProcessType( + com.google.cloud.databasecenter.v1beta.Affiliation.ProcessType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + processType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Type of process which created the lineage.
+       * 
+ * + * + * .google.cloud.databasecenter.v1beta.Affiliation.ProcessType process_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProcessType() { + bitField0_ = (bitField0_ & ~0x00000008); + processType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.Affiliation.Lineage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.Affiliation.Lineage) + private static final com.google.cloud.databasecenter.v1beta.Affiliation.Lineage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.Affiliation.Lineage(); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation.Lineage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lineage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESOURCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceId_ = ""; + + /** + * + * + *
+   * Optional. resource id of affiliated resource
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceId. + */ + @java.lang.Override + public java.lang.String getResourceId() { + java.lang.Object ref = resourceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. resource id of affiliated resource
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceIdBytes() { + java.lang.Object ref = resourceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object fullResourceName_ = ""; + + /** + * + * + *
+   * Optional. Full resource name
+   * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullResourceName. + */ + @java.lang.Override + public java.lang.String getFullResourceName() { + java.lang.Object ref = fullResourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullResourceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Full resource name
+   * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fullResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFullResourceNameBytes() { + java.lang.Object ref = fullResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fullResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINEAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List lineages_; + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getLineagesList() { + return lineages_; + } + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder> + getLineagesOrBuilderList() { + return lineages_; + } + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getLineagesCount() { + return lineages_.size(); + } + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage getLineages(int index) { + return lineages_.get(index); + } + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder getLineagesOrBuilder( + int index) { + return lineages_.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(resourceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullResourceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, fullResourceName_); + } + for (int i = 0; i < lineages_.size(); i++) { + output.writeMessage(3, lineages_.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(resourceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resourceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullResourceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fullResourceName_); + } + for (int i = 0; i < lineages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, lineages_.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.databasecenter.v1beta.Affiliation)) { + return super.equals(obj); + } + com.google.cloud.databasecenter.v1beta.Affiliation other = + (com.google.cloud.databasecenter.v1beta.Affiliation) obj; + + if (!getResourceId().equals(other.getResourceId())) return false; + if (!getFullResourceName().equals(other.getFullResourceName())) return false; + if (!getLineagesList().equals(other.getLineagesList())) return false; + if (!getUnknownFields().equals(other.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) + RESOURCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getResourceId().hashCode(); + hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFullResourceName().hashCode(); + if (getLineagesCount() > 0) { + hash = (37 * hash) + LINEAGES_FIELD_NUMBER; + hash = (53 * hash) + getLineagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation 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.databasecenter.v1beta.Affiliation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation 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.databasecenter.v1beta.Affiliation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation 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.databasecenter.v1beta.Affiliation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+   * Affiliation information of a resource
+   * 
+ * + * Protobuf type {@code google.cloud.databasecenter.v1beta.Affiliation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.Affiliation) + com.google.cloud.databasecenter.v1beta.AffiliationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.Affiliation.class, + com.google.cloud.databasecenter.v1beta.Affiliation.Builder.class); + } + + // Construct using com.google.cloud.databasecenter.v1beta.Affiliation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceId_ = ""; + fullResourceName_ = ""; + if (lineagesBuilder_ == null) { + lineages_ = java.util.Collections.emptyList(); + } else { + lineages_ = null; + lineagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.databasecenter.v1beta.AffiliationProto + .internal_static_google_cloud_databasecenter_v1beta_Affiliation_descriptor; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation getDefaultInstanceForType() { + return com.google.cloud.databasecenter.v1beta.Affiliation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation build() { + com.google.cloud.databasecenter.v1beta.Affiliation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation buildPartial() { + com.google.cloud.databasecenter.v1beta.Affiliation result = + new com.google.cloud.databasecenter.v1beta.Affiliation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.databasecenter.v1beta.Affiliation result) { + if (lineagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + lineages_ = java.util.Collections.unmodifiableList(lineages_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.lineages_ = lineages_; + } else { + result.lineages_ = lineagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.databasecenter.v1beta.Affiliation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceId_ = resourceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fullResourceName_ = fullResourceName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.databasecenter.v1beta.Affiliation) { + return mergeFrom((com.google.cloud.databasecenter.v1beta.Affiliation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.Affiliation other) { + if (other == com.google.cloud.databasecenter.v1beta.Affiliation.getDefaultInstance()) + return this; + if (!other.getResourceId().isEmpty()) { + resourceId_ = other.resourceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFullResourceName().isEmpty()) { + fullResourceName_ = other.fullResourceName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (lineagesBuilder_ == null) { + if (!other.lineages_.isEmpty()) { + if (lineages_.isEmpty()) { + lineages_ = other.lineages_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLineagesIsMutable(); + lineages_.addAll(other.lineages_); + } + onChanged(); + } + } else { + if (!other.lineages_.isEmpty()) { + if (lineagesBuilder_.isEmpty()) { + lineagesBuilder_.dispose(); + lineagesBuilder_ = null; + lineages_ = other.lineages_; + bitField0_ = (bitField0_ & ~0x00000004); + lineagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLineagesFieldBuilder() + : null; + } else { + lineagesBuilder_.addAllMessages(other.lineages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + resourceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + fullResourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage m = + input.readMessage( + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.parser(), + extensionRegistry); + if (lineagesBuilder_ == null) { + ensureLineagesIsMutable(); + lineages_.add(m); + } else { + lineagesBuilder_.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 resourceId_ = ""; + + /** + * + * + *
+     * Optional. resource id of affiliated resource
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceId. + */ + public java.lang.String getResourceId() { + java.lang.Object ref = resourceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. resource id of affiliated resource
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceId. + */ + public com.google.protobuf.ByteString getResourceIdBytes() { + java.lang.Object ref = resourceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. resource id of affiliated resource
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The resourceId to set. + * @return This builder for chaining. + */ + public Builder setResourceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. resource id of affiliated resource
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearResourceId() { + resourceId_ = getDefaultInstance().getResourceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. resource id of affiliated resource
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for resourceId to set. + * @return This builder for chaining. + */ + public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object fullResourceName_ = ""; + + /** + * + * + *
+     * Optional. Full resource name
+     * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullResourceName. + */ + public java.lang.String getFullResourceName() { + java.lang.Object ref = fullResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullResourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Full resource name
+     * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fullResourceName. + */ + public com.google.protobuf.ByteString getFullResourceNameBytes() { + java.lang.Object ref = fullResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fullResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Full resource name
+     * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fullResourceName to set. + * @return This builder for chaining. + */ + public Builder setFullResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fullResourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Full resource name
+     * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFullResourceName() { + fullResourceName_ = getDefaultInstance().getFullResourceName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Full resource name
+     * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fullResourceName to set. + * @return This builder for chaining. + */ + public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List lineages_ = + java.util.Collections.emptyList(); + + private void ensureLineagesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + lineages_ = + new java.util.ArrayList( + lineages_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder, + com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder> + lineagesBuilder_; + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLineagesList() { + if (lineagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(lineages_); + } else { + return lineagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getLineagesCount() { + if (lineagesBuilder_ == null) { + return lineages_.size(); + } else { + return lineagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage getLineages(int index) { + if (lineagesBuilder_ == null) { + return lineages_.get(index); + } else { + return lineagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLineages( + int index, com.google.cloud.databasecenter.v1beta.Affiliation.Lineage value) { + if (lineagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineagesIsMutable(); + lineages_.set(index, value); + onChanged(); + } else { + lineagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLineages( + int index, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder builderForValue) { + if (lineagesBuilder_ == null) { + ensureLineagesIsMutable(); + lineages_.set(index, builderForValue.build()); + onChanged(); + } else { + lineagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLineages(com.google.cloud.databasecenter.v1beta.Affiliation.Lineage value) { + if (lineagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineagesIsMutable(); + lineages_.add(value); + onChanged(); + } else { + lineagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLineages( + int index, com.google.cloud.databasecenter.v1beta.Affiliation.Lineage value) { + if (lineagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineagesIsMutable(); + lineages_.add(index, value); + onChanged(); + } else { + lineagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLineages( + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder builderForValue) { + if (lineagesBuilder_ == null) { + ensureLineagesIsMutable(); + lineages_.add(builderForValue.build()); + onChanged(); + } else { + lineagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLineages( + int index, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder builderForValue) { + if (lineagesBuilder_ == null) { + ensureLineagesIsMutable(); + lineages_.add(index, builderForValue.build()); + onChanged(); + } else { + lineagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllLineages( + java.lang.Iterable + values) { + if (lineagesBuilder_ == null) { + ensureLineagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineages_); + onChanged(); + } else { + lineagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLineages() { + if (lineagesBuilder_ == null) { + lineages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + lineagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLineages(int index) { + if (lineagesBuilder_ == null) { + ensureLineagesIsMutable(); + lineages_.remove(index); + onChanged(); + } else { + lineagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder getLineagesBuilder( + int index) { + return internalGetLineagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder getLineagesOrBuilder( + int index) { + if (lineagesBuilder_ == null) { + return lineages_.get(index); + } else { + return lineagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder> + getLineagesOrBuilderList() { + if (lineagesBuilder_ != null) { + return lineagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(lineages_); + } + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder addLineagesBuilder() { + return internalGetLineagesFieldBuilder() + .addBuilder( + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder addLineagesBuilder( + int index) { + return internalGetLineagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Multiple lineages can be created from a resource.
+     * For example, a resource can be replicated to multiple target resources.
+     * In this case, there will be multiple lineages for the resource, one for
+     * each target resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLineagesBuilderList() { + return internalGetLineagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder, + com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder> + internalGetLineagesFieldBuilder() { + if (lineagesBuilder_ == null) { + lineagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage, + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage.Builder, + com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder>( + lineages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + lineages_ = null; + } + return lineagesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.Affiliation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.Affiliation) + private static final com.google.cloud.databasecenter.v1beta.Affiliation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.Affiliation(); + } + + public static com.google.cloud.databasecenter.v1beta.Affiliation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Affiliation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AffiliationOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AffiliationOrBuilder.java new file mode 100644 index 000000000000..03e158f45613 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AffiliationOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/databasecenter/v1beta/affiliation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +@com.google.protobuf.Generated +public interface AffiliationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.Affiliation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. resource id of affiliated resource
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceId. + */ + java.lang.String getResourceId(); + + /** + * + * + *
+   * Optional. resource id of affiliated resource
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceId. + */ + com.google.protobuf.ByteString getResourceIdBytes(); + + /** + * + * + *
+   * Optional. Full resource name
+   * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullResourceName. + */ + java.lang.String getFullResourceName(); + + /** + * + * + *
+   * Optional. Full resource name
+   * 
+ * + * string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fullResourceName. + */ + com.google.protobuf.ByteString getFullResourceNameBytes(); + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getLineagesList(); + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.Affiliation.Lineage getLineages(int index); + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLineagesCount(); + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getLineagesOrBuilderList(); + + /** + * + * + *
+   * Optional. Multiple lineages can be created from a resource.
+   * For example, a resource can be replicated to multiple target resources.
+   * In this case, there will be multiple lineages for the resource, one for
+   * each target resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder getLineagesOrBuilder( + int index); +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AffiliationProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AffiliationProto.java new file mode 100644 index 000000000000..43893f3bef90 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AffiliationProto.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/databasecenter/v1beta/affiliation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +@com.google.protobuf.Generated +public final class AffiliationProto extends com.google.protobuf.GeneratedFile { + private AffiliationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AffiliationProto"); + } + + 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_databasecenter_v1beta_Affiliation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_databasecenter_v1beta_Affiliation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/databasecenter/v1beta/aff" + + "iliation.proto\022\"google.cloud.databasecen" + + "ter.v1beta\032\037google/api/field_behavior.pr" + + "oto\"\317\003\n\013Affiliation\022\030\n\013resource_id\030\001 \001(\t" + + "B\003\340A\001\022\037\n\022full_resource_name\030\002 \001(\tB\003\340A\001\022N" + + "\n\010lineages\030\003 \003(\01327.google.cloud.database" + + "center.v1beta.Affiliation.LineageB\003\340A\001\032\255" + + "\001\n\007Lineage\022\027\n\nsource_fqn\030\001 \001(\tB\003\340A\001\022\027\n\nt" + + "arget_fqn\030\002 \001(\tB\003\340A\001\022\030\n\013process_fqn\030\003 \001(" + + "\tB\003\340A\001\022V\n\014process_type\030\004 \001(\0162;.google.cl" + + "oud.databasecenter.v1beta.Affiliation.Pr" + + "ocessTypeB\003\340A\001\"\204\001\n\013ProcessType\022\034\n\030PROCES" + + "S_TYPE_UNSPECIFIED\020\000\022\014\n\010COMPOSER\020\001\022\016\n\nDA" + + "TASTREAM\020\002\022\014\n\010DATAFLOW\020\003\022\014\n\010BIGQUERY\020\004\022\017" + + "\n\013DATA_FUSION\020\005\022\014\n\010DATAPROC\020\006B\376\001\n&com.go" + + "ogle.cloud.databasecenter.v1betaB\020Affili" + + "ationProtoP\001ZNcloud.google.com/go/databa" + + "secenter/apiv1beta/databasecenterpb;data" + + "basecenterpb\252\002\"Google.Cloud.DatabaseCent" + + "er.V1Beta\312\002\"Google\\Cloud\\DatabaseCenter\\" + + "V1beta\352\002%Google::Cloud::DatabaseCenter::" + + "V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_databasecenter_v1beta_Affiliation_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_databasecenter_v1beta_Affiliation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_databasecenter_v1beta_Affiliation_descriptor, + new java.lang.String[] { + "ResourceId", "FullResourceName", "Lineages", + }); + internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_descriptor = + internal_static_google_cloud_databasecenter_v1beta_Affiliation_descriptor.getNestedType(0); + internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_databasecenter_v1beta_Affiliation_Lineage_descriptor, + new java.lang.String[] { + "SourceFqn", "TargetFqn", "ProcessFqn", "ProcessType", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResource.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResource.java index 3aca0454be0b..b67222ea7fae 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResource.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResource.java @@ -65,6 +65,7 @@ private DatabaseResource() { resourceCategory_ = 0; resourceName_ = ""; edition_ = 0; + affiliations_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1131,6 +1132,93 @@ public com.google.cloud.databasecenter.v1beta.MaintenanceInfo getMaintenanceInfo : maintenanceInfo_; } + public static final int AFFILIATIONS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private java.util.List affiliations_; + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAffiliationsList() { + return affiliations_; + } + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAffiliationsOrBuilderList() { + return affiliations_; + } + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAffiliationsCount() { + return affiliations_.size(); + } + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Affiliation getAffiliations(int index) { + return affiliations_.get(index); + } + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.AffiliationOrBuilder getAffiliationsOrBuilder( + int index) { + return affiliations_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1201,6 +1289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(19, getMaintenanceInfo()); } + for (int i = 0; i < affiliations_.size(); i++) { + output.writeMessage(20, affiliations_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1266,6 +1357,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getMaintenanceInfo()); } + for (int i = 0; i < affiliations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, affiliations_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1314,6 +1408,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMaintenanceInfo()) { if (!getMaintenanceInfo().equals(other.getMaintenanceInfo())) return false; } + if (!getAffiliationsList().equals(other.getAffiliationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1377,6 +1472,10 @@ public int hashCode() { hash = (37 * hash) + MAINTENANCE_INFO_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceInfo().hashCode(); } + if (getAffiliationsCount() > 0) { + hash = (37 * hash) + AFFILIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAffiliationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1529,6 +1628,7 @@ private void maybeForceBuilderInitialization() { internalGetMetricsFieldBuilder(); internalGetBackupdrConfigFieldBuilder(); internalGetMaintenanceInfoFieldBuilder(); + internalGetAffiliationsFieldBuilder(); } } @@ -1597,6 +1697,13 @@ public Builder clear() { maintenanceInfoBuilder_.dispose(); maintenanceInfoBuilder_ = null; } + if (affiliationsBuilder_ == null) { + affiliations_ = java.util.Collections.emptyList(); + } else { + affiliations_ = null; + affiliationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); return this; } @@ -1670,6 +1777,15 @@ private void buildPartialRepeatedFields( } else { result.signalGroups_ = signalGroupsBuilder_.build(); } + if (affiliationsBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + affiliations_ = java.util.Collections.unmodifiableList(affiliations_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.affiliations_ = affiliations_; + } else { + result.affiliations_ = affiliationsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.databasecenter.v1beta.DatabaseResource result) { @@ -1895,6 +2011,33 @@ public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.DatabaseResource if (other.hasMaintenanceInfo()) { mergeMaintenanceInfo(other.getMaintenanceInfo()); } + if (affiliationsBuilder_ == null) { + if (!other.affiliations_.isEmpty()) { + if (affiliations_.isEmpty()) { + affiliations_ = other.affiliations_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureAffiliationsIsMutable(); + affiliations_.addAll(other.affiliations_); + } + onChanged(); + } + } else { + if (!other.affiliations_.isEmpty()) { + if (affiliationsBuilder_.isEmpty()) { + affiliationsBuilder_.dispose(); + affiliationsBuilder_ = null; + affiliations_ = other.affiliations_; + bitField0_ = (bitField0_ & ~0x00020000); + affiliationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAffiliationsFieldBuilder() + : null; + } else { + affiliationsBuilder_.addAllMessages(other.affiliations_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2056,6 +2199,20 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 154 + case 162: + { + com.google.cloud.databasecenter.v1beta.Affiliation m = + input.readMessage( + com.google.cloud.databasecenter.v1beta.Affiliation.parser(), + extensionRegistry); + if (affiliationsBuilder_ == null) { + ensureAffiliationsIsMutable(); + affiliations_.add(m); + } else { + affiliationsBuilder_.addMessage(m); + } + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5687,6 +5844,418 @@ public Builder clearMaintenanceInfo() { return maintenanceInfoBuilder_; } + private java.util.List affiliations_ = + java.util.Collections.emptyList(); + + private void ensureAffiliationsIsMutable() { + if (!((bitField0_ & 0x00020000) != 0)) { + affiliations_ = + new java.util.ArrayList( + affiliations_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Affiliation, + com.google.cloud.databasecenter.v1beta.Affiliation.Builder, + com.google.cloud.databasecenter.v1beta.AffiliationOrBuilder> + affiliationsBuilder_; + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAffiliationsList() { + if (affiliationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(affiliations_); + } else { + return affiliationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAffiliationsCount() { + if (affiliationsBuilder_ == null) { + return affiliations_.size(); + } else { + return affiliationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation getAffiliations(int index) { + if (affiliationsBuilder_ == null) { + return affiliations_.get(index); + } else { + return affiliationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAffiliations( + int index, com.google.cloud.databasecenter.v1beta.Affiliation value) { + if (affiliationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffiliationsIsMutable(); + affiliations_.set(index, value); + onChanged(); + } else { + affiliationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAffiliations( + int index, com.google.cloud.databasecenter.v1beta.Affiliation.Builder builderForValue) { + if (affiliationsBuilder_ == null) { + ensureAffiliationsIsMutable(); + affiliations_.set(index, builderForValue.build()); + onChanged(); + } else { + affiliationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAffiliations(com.google.cloud.databasecenter.v1beta.Affiliation value) { + if (affiliationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffiliationsIsMutable(); + affiliations_.add(value); + onChanged(); + } else { + affiliationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAffiliations( + int index, com.google.cloud.databasecenter.v1beta.Affiliation value) { + if (affiliationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffiliationsIsMutable(); + affiliations_.add(index, value); + onChanged(); + } else { + affiliationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAffiliations( + com.google.cloud.databasecenter.v1beta.Affiliation.Builder builderForValue) { + if (affiliationsBuilder_ == null) { + ensureAffiliationsIsMutable(); + affiliations_.add(builderForValue.build()); + onChanged(); + } else { + affiliationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAffiliations( + int index, com.google.cloud.databasecenter.v1beta.Affiliation.Builder builderForValue) { + if (affiliationsBuilder_ == null) { + ensureAffiliationsIsMutable(); + affiliations_.add(index, builderForValue.build()); + onChanged(); + } else { + affiliationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAffiliations( + java.lang.Iterable values) { + if (affiliationsBuilder_ == null) { + ensureAffiliationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affiliations_); + onChanged(); + } else { + affiliationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAffiliations() { + if (affiliationsBuilder_ == null) { + affiliations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + affiliationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAffiliations(int index) { + if (affiliationsBuilder_ == null) { + ensureAffiliationsIsMutable(); + affiliations_.remove(index); + onChanged(); + } else { + affiliationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.Builder getAffiliationsBuilder( + int index) { + return internalGetAffiliationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.AffiliationOrBuilder getAffiliationsOrBuilder( + int index) { + if (affiliationsBuilder_ == null) { + return affiliations_.get(index); + } else { + return affiliationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAffiliationsOrBuilderList() { + if (affiliationsBuilder_ != null) { + return affiliationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(affiliations_); + } + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.Builder addAffiliationsBuilder() { + return internalGetAffiliationsFieldBuilder() + .addBuilder(com.google.cloud.databasecenter.v1beta.Affiliation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Affiliation.Builder addAffiliationsBuilder( + int index) { + return internalGetAffiliationsFieldBuilder() + .addBuilder( + index, com.google.cloud.databasecenter.v1beta.Affiliation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Affiliation details of the resource.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAffiliationsBuilderList() { + return internalGetAffiliationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Affiliation, + com.google.cloud.databasecenter.v1beta.Affiliation.Builder, + com.google.cloud.databasecenter.v1beta.AffiliationOrBuilder> + internalGetAffiliationsFieldBuilder() { + if (affiliationsBuilder_ == null) { + affiliationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Affiliation, + com.google.cloud.databasecenter.v1beta.Affiliation.Builder, + com.google.cloud.databasecenter.v1beta.AffiliationOrBuilder>( + affiliations_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); + affiliations_ = null; + } + return affiliationsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.DatabaseResource) } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceOrBuilder.java index 8e793d42424c..84112b332b71 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceOrBuilder.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceOrBuilder.java @@ -737,4 +737,70 @@ com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder getChildResourc * */ com.google.cloud.databasecenter.v1beta.MaintenanceInfoOrBuilder getMaintenanceInfoOrBuilder(); + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAffiliationsList(); + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.Affiliation getAffiliations(int index); + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAffiliationsCount(); + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAffiliationsOrBuilderList(); + + /** + * + * + *
+   * Optional. Affiliation details of the resource.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.Affiliation affiliations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.AffiliationOrBuilder getAffiliationsOrBuilder(int index); } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java index e92b911a5b1a..ba4a40a27796 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java @@ -191,7 +191,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.databasecenter.v1beta.ServiceProto.getDescriptor() .getEnumTypes() - .get(1); + .get(0); } private static final Edition[] VALUES = values(); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java index a5cb087df501..9cc11e3fd918 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java @@ -159,6 +159,82 @@ public double getVcpuCount() { return vcpuCount_; } + public static final int BASELINE_SLOT_COUNT_FIELD_NUMBER = 5; + private long baselineSlotCount_ = 0L; + + /** + * + * + *
+   * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+   * increments of 50.
+   * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the baselineSlotCount field is set. + */ + @java.lang.Override + public boolean hasBaselineSlotCount() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+   * increments of 50.
+   * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The baselineSlotCount. + */ + @java.lang.Override + public long getBaselineSlotCount() { + return baselineSlotCount_; + } + + public static final int MAX_RESERVATION_SLOT_COUNT_FIELD_NUMBER = 6; + private long maxReservationSlotCount_ = 0L; + + /** + * + * + *
+   * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+   * of 50.
+   * 
+ * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxReservationSlotCount field is set. + */ + @java.lang.Override + public boolean hasMaxReservationSlotCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+   * of 50.
+   * 
+ * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxReservationSlotCount. + */ + @java.lang.Override + public long getMaxReservationSlotCount() { + return maxReservationSlotCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -182,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(4, vcpuCount_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(5, baselineSlotCount_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(6, maxReservationSlotCount_); + } getUnknownFields().writeTo(output); } @@ -200,6 +282,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, vcpuCount_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, baselineSlotCount_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, maxReservationSlotCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -226,6 +314,14 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getVcpuCount()) != java.lang.Double.doubleToLongBits(other.getVcpuCount())) return false; } + if (hasBaselineSlotCount() != other.hasBaselineSlotCount()) return false; + if (hasBaselineSlotCount()) { + if (getBaselineSlotCount() != other.getBaselineSlotCount()) return false; + } + if (hasMaxReservationSlotCount() != other.hasMaxReservationSlotCount()) return false; + if (hasMaxReservationSlotCount()) { + if (getMaxReservationSlotCount() != other.getMaxReservationSlotCount()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,6 +346,14 @@ public int hashCode() { + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getVcpuCount())); } + if (hasBaselineSlotCount()) { + hash = (37 * hash) + BASELINE_SLOT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBaselineSlotCount()); + } + if (hasMaxReservationSlotCount()) { + hash = (37 * hash) + MAX_RESERVATION_SLOT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxReservationSlotCount()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -394,6 +498,8 @@ public Builder clear() { memorySizeBytes_ = 0L; shardCount_ = 0; vcpuCount_ = 0D; + baselineSlotCount_ = 0L; + maxReservationSlotCount_ = 0L; return this; } @@ -442,6 +548,14 @@ private void buildPartial0(com.google.cloud.databasecenter.v1beta.MachineConfig result.vcpuCount_ = vcpuCount_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.baselineSlotCount_ = baselineSlotCount_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxReservationSlotCount_ = maxReservationSlotCount_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -467,6 +581,12 @@ public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.MachineConfig ot if (other.hasVcpuCount()) { setVcpuCount(other.getVcpuCount()); } + if (other.hasBaselineSlotCount()) { + setBaselineSlotCount(other.getBaselineSlotCount()); + } + if (other.hasMaxReservationSlotCount()) { + setMaxReservationSlotCount(other.getMaxReservationSlotCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -511,6 +631,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 33 + case 40: + { + baselineSlotCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + maxReservationSlotCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -730,6 +862,170 @@ public Builder clearVcpuCount() { return this; } + private long baselineSlotCount_; + + /** + * + * + *
+     * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+     * increments of 50.
+     * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the baselineSlotCount field is set. + */ + @java.lang.Override + public boolean hasBaselineSlotCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+     * increments of 50.
+     * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baselineSlotCount. + */ + @java.lang.Override + public long getBaselineSlotCount() { + return baselineSlotCount_; + } + + /** + * + * + *
+     * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+     * increments of 50.
+     * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The baselineSlotCount to set. + * @return This builder for chaining. + */ + public Builder setBaselineSlotCount(long value) { + + baselineSlotCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+     * increments of 50.
+     * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBaselineSlotCount() { + bitField0_ = (bitField0_ & ~0x00000008); + baselineSlotCount_ = 0L; + onChanged(); + return this; + } + + private long maxReservationSlotCount_; + + /** + * + * + *
+     * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+     * of 50.
+     * 
+ * + * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxReservationSlotCount field is set. + */ + @java.lang.Override + public boolean hasMaxReservationSlotCount() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+     * of 50.
+     * 
+ * + * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxReservationSlotCount. + */ + @java.lang.Override + public long getMaxReservationSlotCount() { + return maxReservationSlotCount_; + } + + /** + * + * + *
+     * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+     * of 50.
+     * 
+ * + * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxReservationSlotCount to set. + * @return This builder for chaining. + */ + public Builder setMaxReservationSlotCount(long value) { + + maxReservationSlotCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+     * of 50.
+     * 
+ * + * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxReservationSlotCount() { + bitField0_ = (bitField0_ & ~0x00000010); + maxReservationSlotCount_ = 0L; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.MachineConfig) } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigOrBuilder.java index 96863c57d6c4..a7098f023d36 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigOrBuilder.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigOrBuilder.java @@ -90,4 +90,62 @@ public interface MachineConfigOrBuilder * @return The vcpuCount. */ double getVcpuCount(); + + /** + * + * + *
+   * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+   * increments of 50.
+   * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the baselineSlotCount field is set. + */ + boolean hasBaselineSlotCount(); + + /** + * + * + *
+   * Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
+   * increments of 50.
+   * 
+ * + * optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The baselineSlotCount. + */ + long getBaselineSlotCount(); + + /** + * + * + *
+   * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+   * of 50.
+   * 
+ * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxReservationSlotCount field is set. + */ + boolean hasMaxReservationSlotCount(); + + /** + * + * + *
+   * Optional. Max slots for BigQuery Reservations. Max slots are in increments
+   * of 50.
+   * 
+ * + * optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxReservationSlotCount. + */ + long getMaxReservationSlotCount(); } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigProto.java index 701550359dcd..ff35a1b58b90 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfigProto.java @@ -55,18 +55,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "7google/cloud/databasecenter/v1beta/machine_config.proto\022\"google.cloud.database" - + "center.v1beta\032\037google/api/field_behavior.proto\"\206\001\n\r" + + "center.v1beta\032\037google/api/field_behavior.proto\"\222\002\n\r" + "MachineConfig\022\031\n" + "\021memory_size_bytes\030\002 \001(\003\022\035\n" + "\013shard_count\030\003 \001(\005B\003\340A\001H\000\210\001\001\022\034\n\n" - + "vcpu_count\030\004 \001(\001B\003\340A\001H\001\210\001\001B\016\n" + + "vcpu_count\030\004 \001(\001B\003\340A\001H\001\210\001\001\022%\n" + + "\023baseline_slot_count\030\005 \001(\003B\003\340A\001H\002\210\001\001\022,\n" + + "\032max_reservation_slot_count\030\006 \001(\003B\003\340A\001H\003\210\001\001B\016\n" + "\014_shard_countB\r\n" - + "\013_vcpu_countB\200\002\n" - + "&com.google.cloud.databasecenter.v1betaB\022MachineConfi" - + "gProtoP\001ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;database" - + "centerpb\252\002\"Google.Cloud.DatabaseCenter.V" - + "1Beta\312\002\"Google\\Cloud\\DatabaseCenter\\V1be" - + "ta\352\002%Google::Cloud::DatabaseCenter::V1betab\006proto3" + + "\013_vcpu_countB\026\n" + + "\024_baseline_slot_countB\035\n" + + "\033_max_reservation_slot_countB\200\002\n" + + "&com.google.cloud.databasecenter.v1betaB\022MachineConfigProtoP\001ZNcloud.goog" + + "le.com/go/databasecenter/apiv1beta/datab" + + "asecenterpb;databasecenterpb\252\002\"Google.Cl" + + "oud.DatabaseCenter.V1Beta\312\002\"Google\\Cloud" + + "\\DatabaseCenter\\V1beta\352\002%Google::Cloud::DatabaseCenter::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -80,7 +84,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_databasecenter_v1beta_MachineConfig_descriptor, new java.lang.String[] { - "MemorySizeBytes", "ShardCount", "VcpuCount", + "MemorySizeBytes", + "ShardCount", + "VcpuCount", + "BaselineSlotCount", + "MaxReservationSlotCount", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java index 858dd65a70b8..791fc2172000 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java @@ -54,6 +54,9 @@ private MaintenanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) private MaintenanceInfo() { denyMaintenanceSchedules_ = java.util.Collections.emptyList(); maintenanceVersion_ = ""; + state_ = 0; + possibleFailureReasons_ = emptyIntList(); + previousMaintenanceVersion_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -279,6 +282,376 @@ public com.google.protobuf.ByteString getMaintenanceVersionBytes() { } } + public static final int CURRENT_VERSION_RELEASE_DATE_FIELD_NUMBER = 4; + private com.google.type.Date currentVersionReleaseDate_; + + /** + * + * + *
+   * Output only. The date when the maintenance version was released.
+   * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the currentVersionReleaseDate field is set. + */ + @java.lang.Override + public boolean hasCurrentVersionReleaseDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The date when the maintenance version was released.
+   * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The currentVersionReleaseDate. + */ + @java.lang.Override + public com.google.type.Date getCurrentVersionReleaseDate() { + return currentVersionReleaseDate_ == null + ? com.google.type.Date.getDefaultInstance() + : currentVersionReleaseDate_; + } + + /** + * + * + *
+   * Output only. The date when the maintenance version was released.
+   * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getCurrentVersionReleaseDateOrBuilder() { + return currentVersionReleaseDate_ == null + ? com.google.type.Date.getDefaultInstance() + : currentVersionReleaseDate_; + } + + public static final int UPCOMING_MAINTENANCE_FIELD_NUMBER = 5; + private com.google.cloud.databasecenter.v1beta.UpcomingMaintenance upcomingMaintenance_; + + /** + * + * + *
+   * Output only. Upcoming maintenance window for the database resource. This is
+   * only populated for an engine, if upcoming maintenance is scheduled for the
+   * resource. This schedule is generated per engine and engine version, and
+   * there is only one upcoming maintenance window at any given time. In case of
+   * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+   * and then IN_PROGRESS when the maintenance window starts.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upcomingMaintenance field is set. + */ + @java.lang.Override + public boolean hasUpcomingMaintenance() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Upcoming maintenance window for the database resource. This is
+   * only populated for an engine, if upcoming maintenance is scheduled for the
+   * resource. This schedule is generated per engine and engine version, and
+   * there is only one upcoming maintenance window at any given time. In case of
+   * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+   * and then IN_PROGRESS when the maintenance window starts.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upcomingMaintenance. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenance getUpcomingMaintenance() { + return upcomingMaintenance_ == null + ? com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } + + /** + * + * + *
+   * Output only. Upcoming maintenance window for the database resource. This is
+   * only populated for an engine, if upcoming maintenance is scheduled for the
+   * resource. This schedule is generated per engine and engine version, and
+   * there is only one upcoming maintenance window at any given time. In case of
+   * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+   * and then IN_PROGRESS when the maintenance window starts.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenanceOrBuilder + getUpcomingMaintenanceOrBuilder() { + return upcomingMaintenance_ == null + ? com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Resource maintenance state. This is to capture the current
+   * state of the maintenance.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. Resource maintenance state. This is to capture the current
+   * state of the maintenance.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.MaintenanceState getState() { + com.google.cloud.databasecenter.v1beta.MaintenanceState result = + com.google.cloud.databasecenter.v1beta.MaintenanceState.forNumber(state_); + return result == null + ? com.google.cloud.databasecenter.v1beta.MaintenanceState.UNRECOGNIZED + : result; + } + + public static final int POSSIBLE_FAILURE_REASONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList possibleFailureReasons_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.databasecenter.v1beta.PossibleFailureReason> + possibleFailureReasons_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.databasecenter.v1beta.PossibleFailureReason>() { + public com.google.cloud.databasecenter.v1beta.PossibleFailureReason convert(int from) { + com.google.cloud.databasecenter.v1beta.PossibleFailureReason result = + com.google.cloud.databasecenter.v1beta.PossibleFailureReason.forNumber(from); + return result == null + ? com.google.cloud.databasecenter.v1beta.PossibleFailureReason.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the possibleFailureReasons. + */ + @java.lang.Override + public java.util.List + getPossibleFailureReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.databasecenter.v1beta.PossibleFailureReason>( + possibleFailureReasons_, possibleFailureReasons_converter_); + } + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of possibleFailureReasons. + */ + @java.lang.Override + public int getPossibleFailureReasonsCount() { + return possibleFailureReasons_.size(); + } + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The possibleFailureReasons at the given index. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.PossibleFailureReason getPossibleFailureReasons( + int index) { + return possibleFailureReasons_converter_.convert(possibleFailureReasons_.getInt(index)); + } + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for possibleFailureReasons. + */ + @java.lang.Override + public java.util.List getPossibleFailureReasonsValueList() { + return possibleFailureReasons_; + } + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of possibleFailureReasons at the given index. + */ + @java.lang.Override + public int getPossibleFailureReasonsValue(int index) { + return possibleFailureReasons_.getInt(index); + } + + private int possibleFailureReasonsMemoizedSerializedSize; + + public static final int PREVIOUS_MAINTENANCE_VERSION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object previousMaintenanceVersion_ = ""; + + /** + * + * + *
+   * Output only. Previous maintenance version of the database resource.
+   * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+   * version maintenance is complete on a database resource.
+   * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The previousMaintenanceVersion. + */ + @java.lang.Override + public java.lang.String getPreviousMaintenanceVersion() { + java.lang.Object ref = previousMaintenanceVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previousMaintenanceVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Previous maintenance version of the database resource.
+   * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+   * version maintenance is complete on a database resource.
+   * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for previousMaintenanceVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviousMaintenanceVersionBytes() { + java.lang.Object ref = previousMaintenanceVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previousMaintenanceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -293,6 +666,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMaintenanceSchedule()); } @@ -302,6 +676,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(maintenanceVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, maintenanceVersion_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCurrentVersionReleaseDate()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getUpcomingMaintenance()); + } + if (state_ + != com.google.cloud.databasecenter.v1beta.MaintenanceState.MAINTENANCE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, state_); + } + if (getPossibleFailureReasonsList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(possibleFailureReasonsMemoizedSerializedSize); + } + for (int i = 0; i < possibleFailureReasons_.size(); i++) { + output.writeEnumNoTag(possibleFailureReasons_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previousMaintenanceVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, previousMaintenanceVersion_); + } getUnknownFields().writeTo(output); } @@ -322,6 +717,37 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(maintenanceVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, maintenanceVersion_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getCurrentVersionReleaseDate()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpcomingMaintenance()); + } + if (state_ + != com.google.cloud.databasecenter.v1beta.MaintenanceState.MAINTENANCE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + { + int dataSize = 0; + for (int i = 0; i < possibleFailureReasons_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + possibleFailureReasons_.getInt(i)); + } + size += dataSize; + if (!getPossibleFailureReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + possibleFailureReasonsMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previousMaintenanceVersion_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(8, previousMaintenanceVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -345,6 +771,19 @@ public boolean equals(final java.lang.Object obj) { if (!getDenyMaintenanceSchedulesList().equals(other.getDenyMaintenanceSchedulesList())) return false; if (!getMaintenanceVersion().equals(other.getMaintenanceVersion())) return false; + if (hasCurrentVersionReleaseDate() != other.hasCurrentVersionReleaseDate()) return false; + if (hasCurrentVersionReleaseDate()) { + if (!getCurrentVersionReleaseDate().equals(other.getCurrentVersionReleaseDate())) + return false; + } + if (hasUpcomingMaintenance() != other.hasUpcomingMaintenance()) return false; + if (hasUpcomingMaintenance()) { + if (!getUpcomingMaintenance().equals(other.getUpcomingMaintenance())) return false; + } + if (state_ != other.state_) return false; + if (!possibleFailureReasons_.equals(other.possibleFailureReasons_)) return false; + if (!getPreviousMaintenanceVersion().equals(other.getPreviousMaintenanceVersion())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -366,6 +805,22 @@ public int hashCode() { } hash = (37 * hash) + MAINTENANCE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceVersion().hashCode(); + if (hasCurrentVersionReleaseDate()) { + hash = (37 * hash) + CURRENT_VERSION_RELEASE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentVersionReleaseDate().hashCode(); + } + if (hasUpcomingMaintenance()) { + hash = (37 * hash) + UPCOMING_MAINTENANCE_FIELD_NUMBER; + hash = (53 * hash) + getUpcomingMaintenance().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getPossibleFailureReasonsCount() > 0) { + hash = (37 * hash) + POSSIBLE_FAILURE_REASONS_FIELD_NUMBER; + hash = (53 * hash) + possibleFailureReasons_.hashCode(); + } + hash = (37 * hash) + PREVIOUS_MAINTENANCE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPreviousMaintenanceVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -510,6 +965,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetMaintenanceScheduleFieldBuilder(); internalGetDenyMaintenanceSchedulesFieldBuilder(); + internalGetCurrentVersionReleaseDateFieldBuilder(); + internalGetUpcomingMaintenanceFieldBuilder(); } } @@ -530,6 +987,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000002); maintenanceVersion_ = ""; + currentVersionReleaseDate_ = null; + if (currentVersionReleaseDateBuilder_ != null) { + currentVersionReleaseDateBuilder_.dispose(); + currentVersionReleaseDateBuilder_ = null; + } + upcomingMaintenance_ = null; + if (upcomingMaintenanceBuilder_ != null) { + upcomingMaintenanceBuilder_.dispose(); + upcomingMaintenanceBuilder_ = null; + } + state_ = 0; + possibleFailureReasons_ = emptyIntList(); + previousMaintenanceVersion_ = ""; return this; } @@ -592,6 +1062,30 @@ private void buildPartial0(com.google.cloud.databasecenter.v1beta.MaintenanceInf if (((from_bitField0_ & 0x00000004) != 0)) { result.maintenanceVersion_ = maintenanceVersion_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.currentVersionReleaseDate_ = + currentVersionReleaseDateBuilder_ == null + ? currentVersionReleaseDate_ + : currentVersionReleaseDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.upcomingMaintenance_ = + upcomingMaintenanceBuilder_ == null + ? upcomingMaintenance_ + : upcomingMaintenanceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + possibleFailureReasons_.makeImmutable(); + result.possibleFailureReasons_ = possibleFailureReasons_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.previousMaintenanceVersion_ = previousMaintenanceVersion_; + } result.bitField0_ |= to_bitField0_; } @@ -643,6 +1137,31 @@ public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.MaintenanceInfo bitField0_ |= 0x00000004; onChanged(); } + if (other.hasCurrentVersionReleaseDate()) { + mergeCurrentVersionReleaseDate(other.getCurrentVersionReleaseDate()); + } + if (other.hasUpcomingMaintenance()) { + mergeUpcomingMaintenance(other.getUpcomingMaintenance()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.possibleFailureReasons_.isEmpty()) { + if (possibleFailureReasons_.isEmpty()) { + possibleFailureReasons_ = other.possibleFailureReasons_; + possibleFailureReasons_.makeImmutable(); + bitField0_ |= 0x00000040; + } else { + ensurePossibleFailureReasonsIsMutable(); + possibleFailureReasons_.addAll(other.possibleFailureReasons_); + } + onChanged(); + } + if (!other.getPreviousMaintenanceVersion().isEmpty()) { + previousMaintenanceVersion_ = other.previousMaintenanceVersion_; + bitField0_ |= 0x00000080; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -697,18 +1216,63 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 - default: + case 34: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } + input.readMessage( + internalGetCurrentVersionReleaseDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + } // case 34 + case 42: + { + input.readMessage( + internalGetUpcomingMaintenanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + int tmpRaw = input.readEnum(); + ensurePossibleFailureReasonsIsMutable(); + possibleFailureReasons_.addInt(tmpRaw); + break; + } // case 56 + case 58: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePossibleFailureReasonsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + possibleFailureReasons_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 58 + case 66: + { + previousMaintenanceVersion_ = input.readStringRequireUtf8(); + 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; @@ -1488,6 +2052,1013 @@ public Builder setMaintenanceVersionBytes(com.google.protobuf.ByteString value) return this; } + private com.google.type.Date currentVersionReleaseDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + currentVersionReleaseDateBuilder_; + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the currentVersionReleaseDate field is set. + */ + public boolean hasCurrentVersionReleaseDate() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The currentVersionReleaseDate. + */ + public com.google.type.Date getCurrentVersionReleaseDate() { + if (currentVersionReleaseDateBuilder_ == null) { + return currentVersionReleaseDate_ == null + ? com.google.type.Date.getDefaultInstance() + : currentVersionReleaseDate_; + } else { + return currentVersionReleaseDateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCurrentVersionReleaseDate(com.google.type.Date value) { + if (currentVersionReleaseDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentVersionReleaseDate_ = value; + } else { + currentVersionReleaseDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCurrentVersionReleaseDate(com.google.type.Date.Builder builderForValue) { + if (currentVersionReleaseDateBuilder_ == null) { + currentVersionReleaseDate_ = builderForValue.build(); + } else { + currentVersionReleaseDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCurrentVersionReleaseDate(com.google.type.Date value) { + if (currentVersionReleaseDateBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && currentVersionReleaseDate_ != null + && currentVersionReleaseDate_ != com.google.type.Date.getDefaultInstance()) { + getCurrentVersionReleaseDateBuilder().mergeFrom(value); + } else { + currentVersionReleaseDate_ = value; + } + } else { + currentVersionReleaseDateBuilder_.mergeFrom(value); + } + if (currentVersionReleaseDate_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCurrentVersionReleaseDate() { + bitField0_ = (bitField0_ & ~0x00000008); + currentVersionReleaseDate_ = null; + if (currentVersionReleaseDateBuilder_ != null) { + currentVersionReleaseDateBuilder_.dispose(); + currentVersionReleaseDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getCurrentVersionReleaseDateBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCurrentVersionReleaseDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getCurrentVersionReleaseDateOrBuilder() { + if (currentVersionReleaseDateBuilder_ != null) { + return currentVersionReleaseDateBuilder_.getMessageOrBuilder(); + } else { + return currentVersionReleaseDate_ == null + ? com.google.type.Date.getDefaultInstance() + : currentVersionReleaseDate_; + } + } + + /** + * + * + *
+     * Output only. The date when the maintenance version was released.
+     * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetCurrentVersionReleaseDateFieldBuilder() { + if (currentVersionReleaseDateBuilder_ == null) { + currentVersionReleaseDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCurrentVersionReleaseDate(), getParentForChildren(), isClean()); + currentVersionReleaseDate_ = null; + } + return currentVersionReleaseDateBuilder_; + } + + private com.google.cloud.databasecenter.v1beta.UpcomingMaintenance upcomingMaintenance_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.Builder, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenanceOrBuilder> + upcomingMaintenanceBuilder_; + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upcomingMaintenance field is set. + */ + public boolean hasUpcomingMaintenance() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upcomingMaintenance. + */ + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenance getUpcomingMaintenance() { + if (upcomingMaintenanceBuilder_ == null) { + return upcomingMaintenance_ == null + ? com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } else { + return upcomingMaintenanceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpcomingMaintenance( + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance value) { + if (upcomingMaintenanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upcomingMaintenance_ = value; + } else { + upcomingMaintenanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpcomingMaintenance( + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.Builder builderForValue) { + if (upcomingMaintenanceBuilder_ == null) { + upcomingMaintenance_ = builderForValue.build(); + } else { + upcomingMaintenanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpcomingMaintenance( + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance value) { + if (upcomingMaintenanceBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && upcomingMaintenance_ != null + && upcomingMaintenance_ + != com.google.cloud.databasecenter.v1beta.UpcomingMaintenance + .getDefaultInstance()) { + getUpcomingMaintenanceBuilder().mergeFrom(value); + } else { + upcomingMaintenance_ = value; + } + } else { + upcomingMaintenanceBuilder_.mergeFrom(value); + } + if (upcomingMaintenance_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpcomingMaintenance() { + bitField0_ = (bitField0_ & ~0x00000010); + upcomingMaintenance_ = null; + if (upcomingMaintenanceBuilder_ != null) { + upcomingMaintenanceBuilder_.dispose(); + upcomingMaintenanceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.Builder + getUpcomingMaintenanceBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpcomingMaintenanceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenanceOrBuilder + getUpcomingMaintenanceOrBuilder() { + if (upcomingMaintenanceBuilder_ != null) { + return upcomingMaintenanceBuilder_.getMessageOrBuilder(); + } else { + return upcomingMaintenance_ == null + ? com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } + } + + /** + * + * + *
+     * Output only. Upcoming maintenance window for the database resource. This is
+     * only populated for an engine, if upcoming maintenance is scheduled for the
+     * resource. This schedule is generated per engine and engine version, and
+     * there is only one upcoming maintenance window at any given time. In case of
+     * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+     * and then IN_PROGRESS when the maintenance window starts.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.Builder, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenanceOrBuilder> + internalGetUpcomingMaintenanceFieldBuilder() { + if (upcomingMaintenanceBuilder_ == null) { + upcomingMaintenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.Builder, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenanceOrBuilder>( + getUpcomingMaintenance(), getParentForChildren(), isClean()); + upcomingMaintenance_ = null; + } + return upcomingMaintenanceBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. Resource maintenance state. This is to capture the current
+     * state of the maintenance.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. Resource maintenance state. This is to capture the current
+     * state of the maintenance.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource maintenance state. This is to capture the current
+     * state of the maintenance.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.MaintenanceState getState() { + com.google.cloud.databasecenter.v1beta.MaintenanceState result = + com.google.cloud.databasecenter.v1beta.MaintenanceState.forNumber(state_); + return result == null + ? com.google.cloud.databasecenter.v1beta.MaintenanceState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Resource maintenance state. This is to capture the current
+     * state of the maintenance.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.databasecenter.v1beta.MaintenanceState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource maintenance state. This is to capture the current
+     * state of the maintenance.
+     * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList possibleFailureReasons_ = emptyIntList(); + + private void ensurePossibleFailureReasonsIsMutable() { + if (!possibleFailureReasons_.isModifiable()) { + possibleFailureReasons_ = makeMutableCopy(possibleFailureReasons_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the possibleFailureReasons. + */ + public java.util.List + getPossibleFailureReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.databasecenter.v1beta.PossibleFailureReason>( + possibleFailureReasons_, possibleFailureReasons_converter_); + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of possibleFailureReasons. + */ + public int getPossibleFailureReasonsCount() { + return possibleFailureReasons_.size(); + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The possibleFailureReasons at the given index. + */ + public com.google.cloud.databasecenter.v1beta.PossibleFailureReason getPossibleFailureReasons( + int index) { + return possibleFailureReasons_converter_.convert(possibleFailureReasons_.getInt(index)); + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The possibleFailureReasons to set. + * @return This builder for chaining. + */ + public Builder setPossibleFailureReasons( + int index, com.google.cloud.databasecenter.v1beta.PossibleFailureReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePossibleFailureReasonsIsMutable(); + possibleFailureReasons_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The possibleFailureReasons to add. + * @return This builder for chaining. + */ + public Builder addPossibleFailureReasons( + com.google.cloud.databasecenter.v1beta.PossibleFailureReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePossibleFailureReasonsIsMutable(); + possibleFailureReasons_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The possibleFailureReasons to add. + * @return This builder for chaining. + */ + public Builder addAllPossibleFailureReasons( + java.lang.Iterable + values) { + ensurePossibleFailureReasonsIsMutable(); + for (com.google.cloud.databasecenter.v1beta.PossibleFailureReason value : values) { + possibleFailureReasons_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPossibleFailureReasons() { + possibleFailureReasons_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for possibleFailureReasons. + */ + public java.util.List getPossibleFailureReasonsValueList() { + possibleFailureReasons_.makeImmutable(); + return possibleFailureReasons_; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of possibleFailureReasons at the given index. + */ + public int getPossibleFailureReasonsValue(int index) { + return possibleFailureReasons_.getInt(index); + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for possibleFailureReasons to set. + * @return This builder for chaining. + */ + public Builder setPossibleFailureReasonsValue(int index, int value) { + ensurePossibleFailureReasonsIsMutable(); + possibleFailureReasons_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for possibleFailureReasons to add. + * @return This builder for chaining. + */ + public Builder addPossibleFailureReasonsValue(int value) { + ensurePossibleFailureReasonsIsMutable(); + possibleFailureReasons_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of possible reasons why the maintenance is not completed.
+     * This is an optional field and is only populated if there are any
+     * reasons for failures recorded for the maintenance by DB Center.
+     * FAILURE maintenance status may not always have a failure reason.
+     * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for possibleFailureReasons to add. + * @return This builder for chaining. + */ + public Builder addAllPossibleFailureReasonsValue(java.lang.Iterable values) { + ensurePossibleFailureReasonsIsMutable(); + for (int value : values) { + possibleFailureReasons_.addInt(value); + } + onChanged(); + return this; + } + + private java.lang.Object previousMaintenanceVersion_ = ""; + + /** + * + * + *
+     * Output only. Previous maintenance version of the database resource.
+     * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+     * version maintenance is complete on a database resource.
+     * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The previousMaintenanceVersion. + */ + public java.lang.String getPreviousMaintenanceVersion() { + java.lang.Object ref = previousMaintenanceVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previousMaintenanceVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Previous maintenance version of the database resource.
+     * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+     * version maintenance is complete on a database resource.
+     * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for previousMaintenanceVersion. + */ + public com.google.protobuf.ByteString getPreviousMaintenanceVersionBytes() { + java.lang.Object ref = previousMaintenanceVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previousMaintenanceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Previous maintenance version of the database resource.
+     * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+     * version maintenance is complete on a database resource.
+     * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The previousMaintenanceVersion to set. + * @return This builder for chaining. + */ + public Builder setPreviousMaintenanceVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previousMaintenanceVersion_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Previous maintenance version of the database resource.
+     * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+     * version maintenance is complete on a database resource.
+     * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPreviousMaintenanceVersion() { + previousMaintenanceVersion_ = getDefaultInstance().getPreviousMaintenanceVersion(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Previous maintenance version of the database resource.
+     * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+     * version maintenance is complete on a database resource.
+     * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for previousMaintenanceVersion to set. + * @return This builder for chaining. + */ + public Builder setPreviousMaintenanceVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previousMaintenanceVersion_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.MaintenanceInfo) } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java index b3bf3452c3c0..adff986852ea 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java @@ -167,4 +167,263 @@ public interface MaintenanceInfoOrBuilder * @return The bytes for maintenanceVersion. */ com.google.protobuf.ByteString getMaintenanceVersionBytes(); + + /** + * + * + *
+   * Output only. The date when the maintenance version was released.
+   * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the currentVersionReleaseDate field is set. + */ + boolean hasCurrentVersionReleaseDate(); + + /** + * + * + *
+   * Output only. The date when the maintenance version was released.
+   * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The currentVersionReleaseDate. + */ + com.google.type.Date getCurrentVersionReleaseDate(); + + /** + * + * + *
+   * Output only. The date when the maintenance version was released.
+   * 
+ * + * + * .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getCurrentVersionReleaseDateOrBuilder(); + + /** + * + * + *
+   * Output only. Upcoming maintenance window for the database resource. This is
+   * only populated for an engine, if upcoming maintenance is scheduled for the
+   * resource. This schedule is generated per engine and engine version, and
+   * there is only one upcoming maintenance window at any given time. In case of
+   * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+   * and then IN_PROGRESS when the maintenance window starts.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upcomingMaintenance field is set. + */ + boolean hasUpcomingMaintenance(); + + /** + * + * + *
+   * Output only. Upcoming maintenance window for the database resource. This is
+   * only populated for an engine, if upcoming maintenance is scheduled for the
+   * resource. This schedule is generated per engine and engine version, and
+   * there is only one upcoming maintenance window at any given time. In case of
+   * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+   * and then IN_PROGRESS when the maintenance window starts.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upcomingMaintenance. + */ + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance getUpcomingMaintenance(); + + /** + * + * + *
+   * Output only. Upcoming maintenance window for the database resource. This is
+   * only populated for an engine, if upcoming maintenance is scheduled for the
+   * resource. This schedule is generated per engine and engine version, and
+   * there is only one upcoming maintenance window at any given time. In case of
+   * upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
+   * and then IN_PROGRESS when the maintenance window starts.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.databasecenter.v1beta.UpcomingMaintenanceOrBuilder + getUpcomingMaintenanceOrBuilder(); + + /** + * + * + *
+   * Output only. Resource maintenance state. This is to capture the current
+   * state of the maintenance.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Resource maintenance state. This is to capture the current
+   * state of the maintenance.
+   * 
+ * + * + * .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.databasecenter.v1beta.MaintenanceState getState(); + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the possibleFailureReasons. + */ + java.util.List + getPossibleFailureReasonsList(); + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of possibleFailureReasons. + */ + int getPossibleFailureReasonsCount(); + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The possibleFailureReasons at the given index. + */ + com.google.cloud.databasecenter.v1beta.PossibleFailureReason getPossibleFailureReasons(int index); + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for possibleFailureReasons. + */ + java.util.List getPossibleFailureReasonsValueList(); + + /** + * + * + *
+   * Output only. List of possible reasons why the maintenance is not completed.
+   * This is an optional field and is only populated if there are any
+   * reasons for failures recorded for the maintenance by DB Center.
+   * FAILURE maintenance status may not always have a failure reason.
+   * 
+ * + * + * repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of possibleFailureReasons at the given index. + */ + int getPossibleFailureReasonsValue(int index); + + /** + * + * + *
+   * Output only. Previous maintenance version of the database resource.
+   * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+   * version maintenance is complete on a database resource.
+   * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The previousMaintenanceVersion. + */ + java.lang.String getPreviousMaintenanceVersion(); + + /** + * + * + *
+   * Output only. Previous maintenance version of the database resource.
+   * Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
+   * version maintenance is complete on a database resource.
+   * 
+ * + * string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for previousMaintenanceVersion. + */ + com.google.protobuf.ByteString getPreviousMaintenanceVersionBytes(); } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java index 601fd9e67cb8..67a579f3dc42 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_databasecenter_v1beta_ResourceMaintenanceDenySchedule_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_databasecenter_v1beta_ResourceMaintenanceDenySchedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_databasecenter_v1beta_MaintenanceInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -64,39 +68,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n4google/cloud/databasecenter/v1beta/mai" + "ntenance.proto\022\"google.cloud.databasecen" + "ter.v1beta\032\037google/api/field_behavior.pr" - + "oto\032\026google/type/date.proto\032\033google/type" - + "/dayofweek.proto\032\033google/type/timeofday." - + "proto\"\267\001\n\033ResourceMaintenanceSchedule\022/\n" - + "\nstart_time\030\001 \001(\0132\026.google.type.TimeOfDa" - + "yB\003\340A\001\022(\n\003day\030\002 \001(\0162\026.google.type.DayOfW" - + "eekB\003\340A\001\022=\n\005phase\030\003 \001(\0162).google.cloud.d" - + "atabasecenter.v1beta.PhaseB\003\340A\001\"\242\001\n\037Reso" - + "urceMaintenanceDenySchedule\022*\n\nstart_dat" - + "e\030\001 \001(\0132\021.google.type.DateB\003\340A\001\022(\n\010end_d" - + "ate\030\002 \001(\0132\021.google.type.DateB\003\340A\001\022)\n\004tim" - + "e\030\003 \001(\0132\026.google.type.TimeOfDayB\003\340A\001\"\205\002\n" + + "oto\032\037google/protobuf/timestamp.proto\032\026go" + + "ogle/type/date.proto\032\033google/type/dayofw" + + "eek.proto\032\033google/type/timeofday.proto\"\267" + + "\001\n\033ResourceMaintenanceSchedule\022/\n\nstart_" + + "time\030\001 \001(\0132\026.google.type.TimeOfDayB\003\340A\001\022" + + "(\n\003day\030\002 \001(\0162\026.google.type.DayOfWeekB\003\340A" + + "\001\022=\n\005phase\030\003 \001(\0162).google.cloud.database" + + "center.v1beta.PhaseB\003\340A\001\"\242\001\n\037ResourceMai" + + "ntenanceDenySchedule\022*\n\nstart_date\030\001 \001(\013" + + "2\021.google.type.DateB\003\340A\001\022(\n\010end_date\030\002 \001" + + "(\0132\021.google.type.DateB\003\340A\001\022)\n\004time\030\003 \001(\013" + + "2\026.google.type.TimeOfDayB\003\340A\001\"}\n\023Upcomin" + + "gMaintenance\0223\n\nstart_time\030\001 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\366\004\n" + "\017MaintenanceInfo\022b\n\024maintenance_schedule" + "\030\001 \001(\0132?.google.cloud.databasecenter.v1b" + "eta.ResourceMaintenanceScheduleB\003\340A\001\022l\n\032" + "deny_maintenance_schedules\030\002 \003(\0132C.googl" + "e.cloud.databasecenter.v1beta.ResourceMa" + "intenanceDenyScheduleB\003\340A\001\022 \n\023maintenanc" - + "e_version\030\003 \001(\tB\003\340A\003*`\n\005Phase\022\025\n\021PHASE_U" - + "NSPECIFIED\020\000\022\017\n\013PHASE_WEEK1\020\001\022\017\n\013PHASE_W" - + "EEK2\020\002\022\017\n\013PHASE_WEEK5\020\003\022\r\n\tPHASE_ANY\020\004B\376" - + "\001\n&com.google.cloud.databasecenter.v1bet" - + "aB\020MaintenanceProtoP\001ZNcloud.google.com/" - + "go/databasecenter/apiv1beta/databasecent" - + "erpb;databasecenterpb\252\002\"Google.Cloud.Dat" - + "abaseCenter.V1Beta\312\002\"Google\\Cloud\\Databa" - + "seCenter\\V1beta\352\002%Google::Cloud::Databas" - + "eCenter::V1betab\006proto3" + + "e_version\030\003 \001(\tB\003\340A\003\022<\n\034current_version_" + + "release_date\030\004 \001(\0132\021.google.type.DateB\003\340" + + "A\003\022Z\n\024upcoming_maintenance\030\005 \001(\01327.googl" + + "e.cloud.databasecenter.v1beta.UpcomingMa" + + "intenanceB\003\340A\003\022H\n\005state\030\006 \001(\01624.google.c" + + "loud.databasecenter.v1beta.MaintenanceSt" + + "ateB\003\340A\003\022`\n\030possible_failure_reasons\030\007 \003" + + "(\01629.google.cloud.databasecenter.v1beta." + + "PossibleFailureReasonB\003\340A\003\022)\n\034previous_m" + + "aintenance_version\030\010 \001(\tB\003\340A\003*`\n\005Phase\022\025" + + "\n\021PHASE_UNSPECIFIED\020\000\022\017\n\013PHASE_WEEK1\020\001\022\017" + + "\n\013PHASE_WEEK2\020\002\022\017\n\013PHASE_WEEK5\020\003\022\r\n\tPHAS" + + "E_ANY\020\004*\270\001\n\020MaintenanceState\022!\n\035MAINTENA" + + "NCE_STATE_UNSPECIFIED\020\000\022\037\n\033MAINTENANCE_S" + + "TATE_SCHEDULED\020\001\022!\n\035MAINTENANCE_STATE_IN" + + "_PROGRESS\020\002\022\037\n\033MAINTENANCE_STATE_COMPLET" + + "ED\020\003\022\034\n\030MAINTENANCE_STATE_FAILED\020\004*\251\001\n\025P" + + "ossibleFailureReason\022\'\n#POSSIBLE_FAILURE" + + "_REASON_UNSPECIFIED\020\000\0220\n,POSSIBLE_FAILUR" + + "E_REASON_DENY_POLICY_CONFLICT\020\001\0225\n1POSSI" + + "BLE_FAILURE_REASON_INSTANCE_IN_STOPPED_S" + + "TATE\020\002B\376\001\n&com.google.cloud.databasecent" + + "er.v1betaB\020MaintenanceProtoP\001ZNcloud.goo" + + "gle.com/go/databasecenter/apiv1beta/data" + + "basecenterpb;databasecenterpb\252\002\"Google.C" + + "loud.DatabaseCenter.V1Beta\312\002\"Google\\Clou" + + "d\\DatabaseCenter\\V1beta\352\002%Google::Cloud:" + + ":DatabaseCenter::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), com.google.type.DayOfWeekProto.getDescriptor(), com.google.type.TimeOfDayProto.getDescriptor(), @@ -117,16 +144,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StartDate", "EndDate", "Time", }); - internal_static_google_cloud_databasecenter_v1beta_MaintenanceInfo_descriptor = + internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_databasecenter_v1beta_MaintenanceInfo_descriptor = + getDescriptor().getMessageType(3); internal_static_google_cloud_databasecenter_v1beta_MaintenanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_databasecenter_v1beta_MaintenanceInfo_descriptor, new java.lang.String[] { - "MaintenanceSchedule", "DenyMaintenanceSchedules", "MaintenanceVersion", + "MaintenanceSchedule", + "DenyMaintenanceSchedules", + "MaintenanceVersion", + "CurrentVersionReleaseDate", + "UpcomingMaintenance", + "State", + "PossibleFailureReasons", + "PreviousMaintenanceVersion", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); com.google.type.DayOfWeekProto.getDescriptor(); com.google.type.TimeOfDayProto.getDescriptor(); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceState.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceState.java new file mode 100644 index 000000000000..2ad08e5600c8 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceState.java @@ -0,0 +1,239 @@ +/* + * 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/databasecenter/v1beta/maintenance.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
+ * Resource maintenance state.
+ * 
+ * + * Protobuf enum {@code google.cloud.databasecenter.v1beta.MaintenanceState} + */ +@com.google.protobuf.Generated +public enum MaintenanceState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Status is unspecified.
+   * 
+ * + * MAINTENANCE_STATE_UNSPECIFIED = 0; + */ + MAINTENANCE_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Maintenance is scheduled.
+   * 
+ * + * MAINTENANCE_STATE_SCHEDULED = 1; + */ + MAINTENANCE_STATE_SCHEDULED(1), + /** + * + * + *
+   * Maintenance is in progress.
+   * 
+ * + * MAINTENANCE_STATE_IN_PROGRESS = 2; + */ + MAINTENANCE_STATE_IN_PROGRESS(2), + /** + * + * + *
+   * Maintenance is completed.
+   * 
+ * + * MAINTENANCE_STATE_COMPLETED = 3; + */ + MAINTENANCE_STATE_COMPLETED(3), + /** + * + * + *
+   * Maintenance has failed.
+   * 
+ * + * MAINTENANCE_STATE_FAILED = 4; + */ + MAINTENANCE_STATE_FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MaintenanceState"); + } + + /** + * + * + *
+   * Status is unspecified.
+   * 
+ * + * MAINTENANCE_STATE_UNSPECIFIED = 0; + */ + public static final int MAINTENANCE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Maintenance is scheduled.
+   * 
+ * + * MAINTENANCE_STATE_SCHEDULED = 1; + */ + public static final int MAINTENANCE_STATE_SCHEDULED_VALUE = 1; + + /** + * + * + *
+   * Maintenance is in progress.
+   * 
+ * + * MAINTENANCE_STATE_IN_PROGRESS = 2; + */ + public static final int MAINTENANCE_STATE_IN_PROGRESS_VALUE = 2; + + /** + * + * + *
+   * Maintenance is completed.
+   * 
+ * + * MAINTENANCE_STATE_COMPLETED = 3; + */ + public static final int MAINTENANCE_STATE_COMPLETED_VALUE = 3; + + /** + * + * + *
+   * Maintenance has failed.
+   * 
+ * + * MAINTENANCE_STATE_FAILED = 4; + */ + public static final int MAINTENANCE_STATE_FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MaintenanceState 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 MaintenanceState forNumber(int value) { + switch (value) { + case 0: + return MAINTENANCE_STATE_UNSPECIFIED; + case 1: + return MAINTENANCE_STATE_SCHEDULED; + case 2: + return MAINTENANCE_STATE_IN_PROGRESS; + case 3: + return MAINTENANCE_STATE_COMPLETED; + case 4: + return MAINTENANCE_STATE_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 MaintenanceState findValueByNumber(int number) { + return MaintenanceState.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.databasecenter.v1beta.MaintenanceProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final MaintenanceState[] VALUES = values(); + + public static MaintenanceState 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 MaintenanceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.databasecenter.v1beta.MaintenanceState) +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ManagementType.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ManagementType.java index f70676ffcccc..cc31f6dd0aac 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ManagementType.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ManagementType.java @@ -168,7 +168,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.databasecenter.v1beta.ServiceProto.getDescriptor() .getEnumTypes() - .get(3); + .get(2); } private static final ManagementType[] VALUES = values(); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/PossibleFailureReason.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/PossibleFailureReason.java new file mode 100644 index 000000000000..7a7c7b4aeaa7 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/PossibleFailureReason.java @@ -0,0 +1,199 @@ +/* + * 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/databasecenter/v1beta/maintenance.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
+ * Possible reasons why the maintenance is not completed.
+ * STATE_FAILED maintenance state may not always have a failure reason.
+ * 
+ * + * Protobuf enum {@code google.cloud.databasecenter.v1beta.PossibleFailureReason} + */ +@com.google.protobuf.Generated +public enum PossibleFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Failure reason is unspecified.
+   * 
+ * + * POSSIBLE_FAILURE_REASON_UNSPECIFIED = 0; + */ + POSSIBLE_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
+   * Maintenance may not be completed because there is a deny policy
+   * overlapping with upcoming maintenance schedule.
+   * 
+ * + * POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT = 1; + */ + POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT(1), + /** + * + * + *
+   * Maintenance may not be completed because the instance is stopped.
+   * 
+ * + * POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE = 2; + */ + POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PossibleFailureReason"); + } + + /** + * + * + *
+   * Failure reason is unspecified.
+   * 
+ * + * POSSIBLE_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int POSSIBLE_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Maintenance may not be completed because there is a deny policy
+   * overlapping with upcoming maintenance schedule.
+   * 
+ * + * POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT = 1; + */ + public static final int POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT_VALUE = 1; + + /** + * + * + *
+   * Maintenance may not be completed because the instance is stopped.
+   * 
+ * + * POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE = 2; + */ + public static final int POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE_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 PossibleFailureReason 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 PossibleFailureReason forNumber(int value) { + switch (value) { + case 0: + return POSSIBLE_FAILURE_REASON_UNSPECIFIED; + case 1: + return POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT; + case 2: + return POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE; + 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 PossibleFailureReason findValueByNumber(int number) { + return PossibleFailureReason.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.databasecenter.v1beta.MaintenanceProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final PossibleFailureReason[] VALUES = values(); + + public static PossibleFailureReason 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 PossibleFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.databasecenter.v1beta.PossibleFailureReason) +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ResourceCategory.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ResourceCategory.java index ec43f7a45c05..ee2d7e23d31f 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ResourceCategory.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ResourceCategory.java @@ -71,6 +71,26 @@ public enum ResourceCategory implements com.google.protobuf.ProtocolMessageEnum * DATABASE = 3; */ DATABASE(3), + /** + * + * + *
+   * A resource that is a Dataset.
+   * 
+ * + * DATASET = 4; + */ + DATASET(4), + /** + * + * + *
+   * A resource that is a Reservation.
+   * 
+ * + * RESERVATION = 5; + */ + RESERVATION(5), UNRECOGNIZED(-1), ; @@ -128,6 +148,28 @@ public enum ResourceCategory implements com.google.protobuf.ProtocolMessageEnum */ public static final int DATABASE_VALUE = 3; + /** + * + * + *
+   * A resource that is a Dataset.
+   * 
+ * + * DATASET = 4; + */ + public static final int DATASET_VALUE = 4; + + /** + * + * + *
+   * A resource that is a Reservation.
+   * 
+ * + * RESERVATION = 5; + */ + public static final int RESERVATION_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -160,6 +202,10 @@ public static ResourceCategory forNumber(int value) { return CLUSTER; case 3: return DATABASE; + case 4: + return DATASET; + case 5: + return RESERVATION; default: return null; } @@ -191,7 +237,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.databasecenter.v1beta.ServiceProto.getDescriptor() .getEnumTypes() - .get(0); + .get(3); } private static final ResourceCategory[] VALUES = values(); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java index e6b875bf4f65..ca49606cbd83 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java @@ -145,10 +145,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0google/cloud/databasecenter/v1beta/service.proto\022\"google.cloud.databasecenter." + "v1beta\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\0327google/cloud/databasecenter/v1beta/machine_config.proto\0324google/" - + "cloud/databasecenter/v1beta/maintenance.proto\0324google/cloud/databasecenter/v1bet" - + "a/metric_data.proto\0320google/cloud/databasecenter/v1beta/product.proto\0320google/cl" - + "oud/databasecenter/v1beta/signals.proto\032\026google/type/date.proto\"\\\n" + + "behavior.proto\0324google/cloud/databasecenter/v1beta/affiliation.proto\0327google/clo" + + "ud/databasecenter/v1beta/machine_config.proto\0324google/cloud/databasecenter/v1bet" + + "a/maintenance.proto\0324google/cloud/databasecenter/v1beta/metric_data.proto\0320googl" + + "e/cloud/databasecenter/v1beta/product.pr" + + "oto\0320google/cloud/databasecenter/v1beta/signals.proto\032\026google/type/date.proto\"\\\n" + "\024QueryProductsRequest\022\023\n" + "\006parent\030\003 \001(\tB\003\340A\002\022\026\n" + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" @@ -160,26 +161,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"QueryDatabaseResourceGroupsRequest\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\022T\n" - + "\022signal_type_groups\030\003" - + " \003(\01323.google.cloud.databasecenter.v1beta.SignalTypeGroupB\003\340A\001\022M\n" + + "\022signal_type_groups\030\003 \003(\01323.google.cloud.data" + + "basecenter.v1beta.SignalTypeGroupB\003\340A\001\022M\n" + "\016signal_filters\030\004" + " \003(\01320.google.cloud.databasecenter.v1beta.SignalFilterB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\006 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\007 \001(\tB\003\340A\001\"\254\001\n" + "#QueryDatabaseResourceGroupsResponse\022R\n" - + "\017resource_groups\030\001 \003(\013" - + "29.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\022\027\n" + + "\017resource_groups\030\001" + + " \003(\01329.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\022\027\n" + "\017next_page_token\030\002 \001(\t\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\006\"\254\001\n" + "\025DatabaseResourceGroup\022L\n" - + "\016root_resources\030\001 \003(\013" - + "24.google.cloud.databasecenter.v1beta.DatabaseResource\022E\n\r" - + "signal_groups\030\002 \003(\0132.." - + "google.cloud.databasecenter.v1beta.IssueCount\"\326\007\n" + + "\016root_resources\030\001" + + " \003(\01324.google.cloud.databasecenter.v1beta.DatabaseResource\022E\n\r" + + "signal_groups\030\002" + + " \003(\0132..google.cloud.databasecenter.v1beta.IssueCount\"\242\010\n" + "\020DatabaseResource\022M\n" - + "\017child_resources\030\001" - + " \003(\01324.google.cloud.databasecenter.v1beta.DatabaseResource\022\032\n" + + "\017child_resources\030\001 \003(\01324.google.cloud" + + ".databasecenter.v1beta.DatabaseResource\022\032\n" + "\022full_resource_name\030\003 \001(\t\022\021\n" + "\tcontainer\030\004 \001(\t\022<\n" + "\007product\030\005 \001(\0132+.google.cloud.databasecenter.v1beta.Product\022\020\n" @@ -187,10 +188,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006labels\030\007 \003(\0132).google.cloud.databasecenter.v1beta.Label\0225\n" + "\004tags\030\020 \003(\0132\'.google.cloud.databasecenter.v1beta.Tag\022\025\n\r" + "resource_type\030\010 \001(\t\022N\n" - + "\021sub_resource_type\030\t \001(\01623.g" - + "oogle.cloud.databasecenter.v1beta.SubResourceType\022I\n" - + "\016machine_config\030\014 \001(\01321.goog" - + "le.cloud.databasecenter.v1beta.MachineConfig\022F\n\r" + + "\021sub_resource_type\030\t" + + " \001(\01623.google.cloud.databasecenter.v1beta.SubResourceType\022I\n" + + "\016machine_config\030\014" + + " \001(\01321.google.cloud.databasecenter.v1beta.MachineConfig\022F\n\r" + "signal_groups\030\n" + " \003(\0132/.google.cloud.databasecenter.v1beta.SignalGroup\022<\n" + "\007metrics\030\r" @@ -198,22 +199,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021resource_category\030\016" + " \001(\01624.google.cloud.databasecenter.v1beta.ResourceCategory\022\025\n\r" + "resource_name\030\017 \001(\t\022P\n" - + "\017backupdr_config\030\021 \001(\01322.google.clo" - + "ud.databasecenter.v1beta.BackupDRConfigB\003\340A\001\022<\n" + + "\017backupdr_config\030\021 \001(" + + "\01322.google.cloud.databasecenter.v1beta.BackupDRConfigB\003\340A\001\022<\n" + "\007edition\030\022 \001(\0162+.google.cloud.databasecenter.v1beta.Edition\022R\n" - + "\020maintenance_info\030\023" - + " \001(\01323.google.cloud.databasecenter.v1beta.MaintenanceInfoB\003\340A\001\"\342\001\n" + + "\020maintenance_info\030\023 \001(\01323.google.clou" + + "d.databasecenter.v1beta.MaintenanceInfoB\003\340A\001\022J\n" + + "\014affiliations\030\024 \003(\0132/.google.clou" + + "d.databasecenter.v1beta.AffiliationB\003\340A\001\"\342\001\n" + "\032AggregateIssueStatsRequest\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\022T\n" - + "\022signal_type_groups\030\003" - + " \003(\01323.google.cloud.databasecenter.v1beta.SignalTypeGroupB\003\340A\001\0222\n\r" + + "\022signal_type_groups\030\003 \003(\01323.google.cloud.dat" + + "abasecenter.v1beta.SignalTypeGroupB\003\340A\001\0222\n\r" + "baseline_date\030\004" + " \001(\0132\021.google.type.DateB\003\340A\001H\000\210\001\001B\020\n" + "\016_baseline_date\"\313\001\n" + "\033AggregateIssueStatsResponse\022N\n" - + "\021issue_group_stats\030\001 \003(\01323" - + ".google.cloud.databasecenter.v1beta.IssueGroupStats\022\035\n" + + "\021issue_group_stats\030\001" + + " \003(\01323.google.cloud.databasecenter.v1beta.IssueGroupStats\022\035\n" + "\025total_resources_count\030\002 \001(\005\022#\n" + "\033total_resource_groups_count\030\003 \001(\005\022\030\n" + "\013unreachable\030\004 \003(\tB\003\340A\006\"\354\001\n" @@ -226,13 +229,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013issue_stats\030\006" + " \003(\0132..google.cloud.databasecenter.v1beta.IssueStats\"\261\002\n\n" + "IssueStats\022C\n" - + "\013signal_type\030\001" - + " \001(\0162..google.cloud.databasecenter.v1beta.SignalType\022\026\n" + + "\013signal_type\030\001 \001(\0162..google." + + "cloud.databasecenter.v1beta.SignalType\022\026\n" + "\016resource_count\030\002 \001(\005\022Q\n\r" - + "delta_details\030\003 \001(\01320.go" - + "ogle.cloud.databasecenter.v1beta.DeltaDetailsB\003\340A\001H\000\210\001\001\022N\n" - + "\016issue_severity\030\004 \001(\0162" - + "1.google.cloud.databasecenter.v1beta.IssueSeverityH\001\210\001\001B\020\n" + + "delta_details\030\003" + + " \001(\01320.google.cloud.databasecenter.v1beta.DeltaDetailsB\003\340A\001H\000\210\001\001\022N\n" + + "\016issue_severity\030\004" + + " \001(\01621.google.cloud.databasecenter.v1beta.IssueSeverityH\001\210\001\001B\020\n" + "\016_delta_detailsB\021\n" + "\017_issue_severity\"3\n" + "\005Label\022\013\n" @@ -250,8 +253,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\021.google.type.DateB\003\340A\001H\000\210\001\001B\020\n" + "\016_baseline_date\"\323\001\n" + "\026AggregateFleetResponse\022C\n" - + "\004rows\030\001" - + " \003(\01325.google.cloud.databasecenter.v1beta.AggregateFleetRow\022#\n" + + "\004rows\030\001 \003(\01325.google.c" + + "loud.databasecenter.v1beta.AggregateFleetRow\022#\n" + "\033resource_groups_total_count\030\002 \001(\005\022\034\n" + "\024resource_total_count\030\003 \001(\005\022\027\n" + "\017next_page_token\030\004 \001(\t\022\030\n" @@ -260,8 +263,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tdimension\030\001 \003(\0132-.google.cloud.databasecenter.v1beta.Dimension\022\035\n" + "\025resource_groups_count\030\002 \001(\005\022\027\n" + "\017resources_count\030\003 \001(\005\022Q\n\r" - + "delta_details\030\004 \001(\0132" - + "0.google.cloud.databasecenter.v1beta.DeltaDetailsB\003\340A\001H\000\210\001\001B\020\n" + + "delta_details\030\004" + + " \001(\01320.google.cloud.databasecenter.v1beta.DeltaDetailsB\003\340A\001H\000\210\001\001B\020\n" + "\016_delta_details\"\241\006\n" + "\tDimension\022\023\n" + "\tcontainer\030\002 \001(\tH\000\022G\n" @@ -272,14 +275,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017product_version\030\005 \001(\tH\000\022\022\n" + "\010location\030\006 \001(\tH\000\022\027\n\r" + "resource_type\030\007 \001(\tH\000\022P\n" - + "\021sub_resource_type\030\010 \001(\01623.goo" - + "gle.cloud.databasecenter.v1beta.SubResourceTypeH\000\022Q\n" - + "\021resource_category\030\t \001(\01624.g" - + "oogle.cloud.databasecenter.v1beta.ResourceCategoryH\000\022M\n" + + "\021sub_resource_type\030\010" + + " \001(\01623.google.cloud.databasecenter.v1beta.SubResourceTypeH\000\022Q\n" + + "\021resource_category\030\t" + + " \001(\01624.google.cloud.databasecenter.v1beta.ResourceCategoryH\000\022M\n" + "\017management_type\030\n" + " \001(\01622.google.cloud.databasecenter.v1beta.ManagementTypeH\000\022>\n" - + "\007edition\030\013" - + " \001(\0162+.google.cloud.databasecenter.v1beta.EditionH\000\022\021\n" + + "\007edition\030\013 \001(\0162+" + + ".google.cloud.databasecenter.v1beta.EditionH\000\022\021\n" + "\007tag_key\030\014 \001(\tH\000\022\023\n" + "\ttag_value\030\r" + " \001(\tH\000\022\024\n\n" @@ -297,25 +300,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022QueryIssuesRequest\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\022_\n" - + "\027signal_products_filters\030\003" - + " \003(\01329.google.cloud.databasecenter.v1beta.SignalProductsFiltersB\003\340A\001\022\025\n" + + "\027signal_products_filters\030\003 \003(\01329.google.cloud.datab" + + "asecenter.v1beta.SignalProductsFiltersB\003\340A\001\022\025\n" + "\010order_by\030\004 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\005 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\006 \001(\tB\003\340A\001\"\245\001\n" + "\025SignalProductsFilters\022H\n" - + "\013signal_type\030\001 \001(\0162..googl" - + "e.cloud.databasecenter.v1beta.SignalTypeB\003\340A\001\022B\n" - + "\010products\030\002" - + " \003(\0132+.google.cloud.databasecenter.v1beta.ProductB\003\340A\001\"\234\001\n" + + "\013signal_type\030\001 \001" + + "(\0162..google.cloud.databasecenter.v1beta.SignalTypeB\003\340A\001\022B\n" + + "\010products\030\002 \003(\0132+.goog" + + "le.cloud.databasecenter.v1beta.ProductB\003\340A\001\"\234\001\n" + "\023QueryIssuesResponse\022R\n" - + "\017resource_issues\030\001 \003" - + "(\01329.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\022\027\n" + + "\017resource_issues\030\001" + + " \003(\01329.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\022\027\n" + "\017next_page_token\030\002 \001(\t\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\006\"\233\001\n" + "\025DatabaseResourceIssue\022:\n" + "\006signal\030\001 \001(\0132*.google.cloud.databasecenter.v1beta.Signal\022F\n" - + "\010resource\030\002" - + " \001(\01324.google.cloud.databasecenter.v1beta.DatabaseResource\"D\n" + + "\010resource\030\002 \001(\01324.google.clou" + + "d.databasecenter.v1beta.DatabaseResource\"D\n" + "\003Tag\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t\022\016\n" @@ -329,13 +332,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014DeltaDetails\022P\n" + "\023increased_resources\030\001" + " \003(\01323.google.cloud.databasecenter.v1beta.ResourceDetails\022P\n" - + "\023decreased_resources\030\002" - + " \003(\01323.google.cloud.databasecenter.v1beta.ResourceDetails*^\n" - + "\020ResourceCategory\022!\n" - + "\035RESOURCE_CATEGORY_UNSPECIFIED\020\000\022\014\n" - + "\010INSTANCE\020\001\022\013\n" - + "\007CLUSTER\020\002\022\014\n" - + "\010DATABASE\020\003*m\n" + + "\023decreased_resources\030\002 \003(\01323.google.cloud" + + ".databasecenter.v1beta.ResourceDetails*m\n" + "\007Edition\022\027\n" + "\023EDITION_UNSPECIFIED\020\000\022\026\n" + "\022EDITION_ENTERPRISE\020\001\022\033\n" @@ -354,7 +352,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ManagementType\022\037\n" + "\033MANAGEMENT_TYPE_UNSPECIFIED\020\000\022\037\n" + "\033MANAGEMENT_TYPE_GCP_MANAGED\020\001\022 \n" - + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\0022\377\007\n" + + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\002*|\n" + + "\020ResourceCategory\022!\n" + + "\035RESOURCE_CATEGORY_UNSPECIFIED\020\000\022\014\n" + + "\010INSTANCE\020\001\022\013\n" + + "\007CLUSTER\020\002\022\014\n" + + "\010DATABASE\020\003\022\013\n" + + "\007DATASET\020\004\022\017\n" + + "\013RESERVATION\020\0052\377\007\n" + "\016DatabaseCenter\022\243\001\n\r" + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProd" + "uctsRequest\0329.google.cloud.databasecente" @@ -388,6 +393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.databasecenter.v1beta.AffiliationProto.getDescriptor(), com.google.cloud.databasecenter.v1beta.MachineConfigProto.getDescriptor(), com.google.cloud.databasecenter.v1beta.MaintenanceProto.getDescriptor(), com.google.cloud.databasecenter.v1beta.MetricDataProto.getDescriptor(), @@ -464,6 +470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupdrConfig", "Edition", "MaintenanceInfo", + "Affiliations", }); internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_descriptor = getDescriptor().getMessageType(6); @@ -633,6 +640,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.databasecenter.v1beta.AffiliationProto.getDescriptor(); com.google.cloud.databasecenter.v1beta.MachineConfigProto.getDescriptor(); com.google.cloud.databasecenter.v1beta.MaintenanceProto.getDescriptor(); com.google.cloud.databasecenter.v1beta.MetricDataProto.getDescriptor(); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java index 88e6eaf0f32a..24cf215484f6 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java @@ -306,7 +306,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.databasecenter.v1beta.ServiceProto.getDescriptor() .getEnumTypes() - .get(2); + .get(1); } private static final SubResourceType[] VALUES = values(); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/UpcomingMaintenance.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/UpcomingMaintenance.java new file mode 100644 index 000000000000..2aa0848f3bc7 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/UpcomingMaintenance.java @@ -0,0 +1,1023 @@ +/* + * 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/databasecenter/v1beta/maintenance.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
+ * Upcoming maintenance window for the database resource.
+ * 
+ * + * Protobuf type {@code google.cloud.databasecenter.v1beta.UpcomingMaintenance} + */ +@com.google.protobuf.Generated +public final class UpcomingMaintenance extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.UpcomingMaintenance) + UpcomingMaintenanceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpcomingMaintenance"); + } + + // Use UpcomingMaintenance.newBuilder() to construct. + private UpcomingMaintenance(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpcomingMaintenance() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.MaintenanceProto + .internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.MaintenanceProto + .internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.class, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Output only. Start time of the upcoming maintenance.
+   * Start time is always populated when an upcoming maintenance is
+   * scheduled.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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. Start time of the upcoming maintenance.
+   * Start time is always populated when an upcoming maintenance is
+   * scheduled.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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. Start time of the upcoming maintenance.
+   * Start time is always populated when an upcoming maintenance is
+   * scheduled.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Output only. End time of the upcoming maintenance. This is only populated
+   * for an engine, if end time is public for the engine.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. End time of the upcoming maintenance. This is only populated
+   * for an engine, if end time is public for the engine.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Output only. End time of the upcoming maintenance. This is only populated
+   * for an engine, if end time is public for the engine.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.databasecenter.v1beta.UpcomingMaintenance)) { + return super.equals(obj); + } + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance other = + (com.google.cloud.databasecenter.v1beta.UpcomingMaintenance) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance 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.databasecenter.v1beta.UpcomingMaintenance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance 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.databasecenter.v1beta.UpcomingMaintenance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance 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.databasecenter.v1beta.UpcomingMaintenance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+   * Upcoming maintenance window for the database resource.
+   * 
+ * + * Protobuf type {@code google.cloud.databasecenter.v1beta.UpcomingMaintenance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.UpcomingMaintenance) + com.google.cloud.databasecenter.v1beta.UpcomingMaintenanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.MaintenanceProto + .internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.MaintenanceProto + .internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.class, + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.Builder.class); + } + + // Construct using com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.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(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.databasecenter.v1beta.MaintenanceProto + .internal_static_google_cloud_databasecenter_v1beta_UpcomingMaintenance_descriptor; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenance getDefaultInstanceForType() { + return com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenance build() { + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenance buildPartial() { + com.google.cloud.databasecenter.v1beta.UpcomingMaintenance result = + new com.google.cloud.databasecenter.v1beta.UpcomingMaintenance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.databasecenter.v1beta.UpcomingMaintenance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.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.databasecenter.v1beta.UpcomingMaintenance) { + return mergeFrom((com.google.cloud.databasecenter.v1beta.UpcomingMaintenance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.UpcomingMaintenance other) { + if (other == com.google.cloud.databasecenter.v1beta.UpcomingMaintenance.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Output only. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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. Start time of the upcoming maintenance.
+     * Start time is always populated when an upcoming maintenance is
+     * scheduled.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.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 endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Output only. End time of the upcoming maintenance. This is only populated
+     * for an engine, if end time is public for the engine.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.UpcomingMaintenance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.UpcomingMaintenance) + private static final com.google.cloud.databasecenter.v1beta.UpcomingMaintenance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.UpcomingMaintenance(); + } + + public static com.google.cloud.databasecenter.v1beta.UpcomingMaintenance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpcomingMaintenance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.UpcomingMaintenance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/UpcomingMaintenanceOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/UpcomingMaintenanceOrBuilder.java new file mode 100644 index 000000000000..0b8460201c6a --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/UpcomingMaintenanceOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/databasecenter/v1beta/maintenance.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +@com.google.protobuf.Generated +public interface UpcomingMaintenanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.UpcomingMaintenance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Start time of the upcoming maintenance.
+   * Start time is always populated when an upcoming maintenance is
+   * scheduled.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Output only. Start time of the upcoming maintenance.
+   * Start time is always populated when an upcoming maintenance is
+   * scheduled.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Output only. Start time of the upcoming maintenance.
+   * Start time is always populated when an upcoming maintenance is
+   * scheduled.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. End time of the upcoming maintenance. This is only populated
+   * for an engine, if end time is public for the engine.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Output only. End time of the upcoming maintenance. This is only populated
+   * for an engine, if end time is public for the engine.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Output only. End time of the upcoming maintenance. This is only populated
+   * for an engine, if end time is public for the engine.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/affiliation.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/affiliation.proto new file mode 100644 index 000000000000..aa5c2b4a33cc --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/affiliation.proto @@ -0,0 +1,83 @@ +// 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.databasecenter.v1beta; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.DatabaseCenter.V1Beta"; +option go_package = "cloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb"; +option java_multiple_files = true; +option java_outer_classname = "AffiliationProto"; +option java_package = "com.google.cloud.databasecenter.v1beta"; +option php_namespace = "Google\\Cloud\\DatabaseCenter\\V1beta"; +option ruby_package = "Google::Cloud::DatabaseCenter::V1beta"; + +// Affiliation information of a resource +message Affiliation { + // lineage information of the affiliated resources + // This captures source, target and process which created the lineage. + message Lineage { + // Optional. FQN of source table / column + string source_fqn = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. FQN of target table / column + string target_fqn = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. FQN of process which created the lineage i.e. dataplex, + // datastream etc. + string process_fqn = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Type of process which created the lineage. + ProcessType process_type = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Type of process which created the lineage. + enum ProcessType { + // Unspecified process type. + PROCESS_TYPE_UNSPECIFIED = 0; + + // Composer process type. + COMPOSER = 1; + + // Datastream process type. + DATASTREAM = 2; + + // Dataflow process type. + DATAFLOW = 3; + + // Bigquery process type. + BIGQUERY = 4; + + // Data fusion process type. + DATA_FUSION = 5; + + // Dataproc process type. + DATAPROC = 6; + } + + // Optional. resource id of affiliated resource + string resource_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Full resource name + string full_resource_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Multiple lineages can be created from a resource. + // For example, a resource can be replicated to multiple target resources. + // In this case, there will be multiple lineages for the resource, one for + // each target resource. + repeated Lineage lineages = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto index 994bce966f01..3a1f5a690fbb 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto @@ -37,4 +37,14 @@ message MachineConfig { // Optional. The number of vCPUs (if applicable). optional double vcpu_count = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Baseline slots for BigQuery Reservations. Baseline slots are in + // increments of 50. + optional int64 baseline_slot_count = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Max slots for BigQuery Reservations. Max slots are in increments + // of 50. + optional int64 max_reservation_slot_count = 6 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto index d4d4b3239f8d..3f60a01b6d91 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.databasecenter.v1beta; import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; @@ -51,6 +52,38 @@ enum Phase { PHASE_ANY = 4; } +// Resource maintenance state. +enum MaintenanceState { + // Status is unspecified. + MAINTENANCE_STATE_UNSPECIFIED = 0; + + // Maintenance is scheduled. + MAINTENANCE_STATE_SCHEDULED = 1; + + // Maintenance is in progress. + MAINTENANCE_STATE_IN_PROGRESS = 2; + + // Maintenance is completed. + MAINTENANCE_STATE_COMPLETED = 3; + + // Maintenance has failed. + MAINTENANCE_STATE_FAILED = 4; +} + +// Possible reasons why the maintenance is not completed. +// STATE_FAILED maintenance state may not always have a failure reason. +enum PossibleFailureReason { + // Failure reason is unspecified. + POSSIBLE_FAILURE_REASON_UNSPECIFIED = 0; + + // Maintenance may not be completed because there is a deny policy + // overlapping with upcoming maintenance schedule. + POSSIBLE_FAILURE_REASON_DENY_POLICY_CONFLICT = 1; + + // Maintenance may not be completed because the instance is stopped. + POSSIBLE_FAILURE_REASON_INSTANCE_IN_STOPPED_STATE = 2; +} + // Maintenance window for the database resource. It specifies preferred time // and day of the week and phase in some cases, when the maintenance can start. message ResourceMaintenanceSchedule { @@ -86,6 +119,20 @@ message ResourceMaintenanceDenySchedule { google.type.TimeOfDay time = 3 [(google.api.field_behavior) = OPTIONAL]; } +// Upcoming maintenance window for the database resource. +message UpcomingMaintenance { + // Output only. Start time of the upcoming maintenance. + // Start time is always populated when an upcoming maintenance is + // scheduled. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. End time of the upcoming maintenance. This is only populated + // for an engine, if end time is public for the engine. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // MaintenanceInfo to capture the maintenance details of database resource. message MaintenanceInfo { // Optional. Maintenance window for the database resource. @@ -99,4 +146,34 @@ message MaintenanceInfo { // Output only. Current Maintenance version of the database resource. Example: // "MYSQL_8_0_41.R20250531.01_15" string maintenance_version = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date when the maintenance version was released. + google.type.Date current_version_release_date = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Upcoming maintenance window for the database resource. This is + // only populated for an engine, if upcoming maintenance is scheduled for the + // resource. This schedule is generated per engine and engine version, and + // there is only one upcoming maintenance window at any given time. In case of + // upcoming maintenance, the maintenance_state will be set to SCHEDULED first, + // and then IN_PROGRESS when the maintenance window starts. + UpcomingMaintenance upcoming_maintenance = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource maintenance state. This is to capture the current + // state of the maintenance. + MaintenanceState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of possible reasons why the maintenance is not completed. + // This is an optional field and is only populated if there are any + // reasons for failures recorded for the maintenance by DB Center. + // FAILURE maintenance status may not always have a failure reason. + repeated PossibleFailureReason possible_failure_reasons = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Previous maintenance version of the database resource. + // Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor + // version maintenance is complete on a database resource. + string previous_maintenance_version = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto index a19d7c09ced9..ce492118a753 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto @@ -19,6 +19,7 @@ package google.cloud.databasecenter.v1beta; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/cloud/databasecenter/v1beta/affiliation.proto"; import "google/cloud/databasecenter/v1beta/machine_config.proto"; import "google/cloud/databasecenter/v1beta/maintenance.proto"; import "google/cloud/databasecenter/v1beta/metric_data.proto"; @@ -85,21 +86,6 @@ service DatabaseCenter { } } -// The enum value corresponds to 'type' suffix in the resource_type field. -enum ResourceCategory { - // Unspecified. - RESOURCE_CATEGORY_UNSPECIFIED = 0; - - // A resource that is an Instance. - INSTANCE = 1; - - // A resource that is a Cluster. - CLUSTER = 2; - - // A resource that is a Database. - DATABASE = 3; -} - // Represents the edition of a database resource. enum Edition { // Default, to make it consistent with instance edition enum. @@ -157,6 +143,27 @@ enum ManagementType { MANAGEMENT_TYPE_SELF_MANAGED = 2; } +// The enum value corresponds to 'type' suffix in the resource_type field. +enum ResourceCategory { + // Unspecified. + RESOURCE_CATEGORY_UNSPECIFIED = 0; + + // A resource that is an Instance. + INSTANCE = 1; + + // A resource that is a Cluster. + CLUSTER = 2; + + // A resource that is a Database. + DATABASE = 3; + + // A resource that is a Dataset. + DATASET = 4; + + // A resource that is a Reservation. + RESERVATION = 5; +} + // QueryProductsRequest is the request to get a list of products. message QueryProductsRequest { // Required. Parent can be a project, a folder, or an organization. @@ -431,6 +438,10 @@ message DatabaseResource { // Optional. The maintenance information of the resource. MaintenanceInfo maintenance_info = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Affiliation details of the resource. + repeated Affiliation affiliations = 20 + [(google.api.field_behavior) = OPTIONAL]; } // AggregateIssueStatsRequest represents the input to the AggregateIssueStats diff --git a/java-datacatalog/.OwlBot-hermetic.yaml b/java-datacatalog/.OwlBot-hermetic.yaml index c7e741ac0f19..43aa06b891c7 100644 --- a/java-datacatalog/.OwlBot-hermetic.yaml +++ b/java-datacatalog/.OwlBot-hermetic.yaml @@ -20,8 +20,9 @@ deep-remove-regex: - "/java-datacatalog/google-.*/src" deep-preserve-regex: -- "/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java" -- "/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java" +- "/.*proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java" deep-copy-regex: - source: "/google/cloud/datacatalog/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index b8fbb4d57256..d50805d19528 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.94.0 + 1.96.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.94.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.96.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datacatalog/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-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.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-dataflow/.OwlBot-hermetic.yaml b/java-dataflow/.OwlBot-hermetic.yaml index 29dfb38df8cb..c33fd0a03d96 100644 --- a/java-dataflow/.OwlBot-hermetic.yaml +++ b/java-dataflow/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-dataflow/samples/snippets/generated" deep-preserve-regex: -- "/java-dataflow/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/dataflow/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-dataflow/README.md b/java-dataflow/README.md index c869bf468558..1d40255c8564 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.92.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.92.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.94.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-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.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/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-dataform/.OwlBot-hermetic.yaml b/java-dataform/.OwlBot-hermetic.yaml index 14297911eee2..34672662be20 100644 --- a/java-dataform/.OwlBot-hermetic.yaml +++ b/java-dataform/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-dataform/samples/snippets/generated" deep-preserve-regex: -- "/java-dataform/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/dataform/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-dataform/README.md b/java-dataform/README.md index 9e87b4a4a1f8..611e1e463997 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.87.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.87.0' +implementation 'com.google.cloud:google-cloud-dataform:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.89.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-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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/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-datalabeling/.OwlBot-hermetic.yaml b/java-datalabeling/.OwlBot-hermetic.yaml index aa890256a0d2..43f523395142 100644 --- a/java-datalabeling/.OwlBot-hermetic.yaml +++ b/java-datalabeling/.OwlBot-hermetic.yaml @@ -20,8 +20,9 @@ deep-remove-regex: - "/java-datalabeling/google-.*/src" deep-preserve-regex: -- "/java-datalabeling/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/it/ITSystemTest.java" -- "/java-datalabeling/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/it/ITSystemTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/it/ITSystemTest.java" +- "/.*google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/it/ITSystemTest.java" deep-copy-regex: diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 4818e2b453f6..443185e04aba 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.208.0 + 0.210.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.208.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.210.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.208.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.210.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-datalabeling/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-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.208.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.210.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-datalineage/.OwlBot-hermetic.yaml index 1d8c3d360b88..c4631c60d9fe 100644 --- a/java-datalineage/.OwlBot-hermetic.yaml +++ b/java-datalineage/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-datalineage/samples/snippets/generated" deep-preserve-regex: -- "/java-datalineage/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 343dd84dc83e..f7d84283673d 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.80.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.80.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.82.0" ``` ## Authentication @@ -175,7 +175,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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/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-datamanager/.OwlBot-hermetic.yaml b/java-datamanager/.OwlBot-hermetic.yaml index b6c852f2a3f6..0973cb3788d4 100644 --- a/java-datamanager/.OwlBot-hermetic.yaml +++ b/java-datamanager/.OwlBot-hermetic.yaml @@ -16,11 +16,12 @@ deep-remove-regex: - "/java-datamanager/grpc-google-.*/src" - "/java-datamanager/proto-google-.*/src" -- "/java-datamanager/google-.*/src" +- "/java-datamanager/data-manager.*/src" - "/java-datamanager/samples/snippets/generated" deep-preserve-regex: -- "/java-datamanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*data-manager.*/src/main/java/.*/stub/Version.java" +- "/.*data-manager.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/ads/datamanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-datamanager/README.md b/java-datamanager/README.md index 07df0e122ebe..7aff5489c8e7 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.9.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.9.0' +implementation 'com.google.api-ads:data-manager:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.9.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.11.0" ``` ## Authentication @@ -158,7 +158,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.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/.OwlBot-hermetic.yaml b/java-dataplex/.OwlBot-hermetic.yaml index 26da7b54f2a3..b868b48c0cd4 100644 --- a/java-dataplex/.OwlBot-hermetic.yaml +++ b/java-dataplex/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-dataplex/google-.*/src" deep-preserve-regex: -- "/java-dataplex/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/dataplex/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 4a9c0c30cb70..77694c5885f1 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.86.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.86.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.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-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json index e243886e8a40..ff6dde28ff96 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json +++ b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json @@ -1916,6 +1916,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$DatasetResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$DatasetResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Field", "queryAllDeclaredConstructors": true, @@ -1970,6 +1988,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$SchemaRelationship", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$SchemaRelationship$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$SchemaRelationship$SchemaPaths", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$SchemaRelationship$SchemaPaths$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$SchemaRelationship$Source", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$SchemaRelationship$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$TableResult", "queryAllDeclaredConstructors": true, diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java index 7d657f076cf9..a087ae2f0103 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java @@ -15,6 +15,7 @@ */ package com.google.cloud.dataplex.v1; + /** * * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationProto.java index 443395e0aa05..4e4d5ce82854 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationProto.java @@ -48,10 +48,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataplex_v1_DataDocumentationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -84,31 +96,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034GENERATION_SCOPE_UNSPECIFIED\020\000\022\007\n" + "\003ALL\020\001\022!\n" + "\035TABLE_AND_COLUMN_DESCRIPTIONS\020\002\022\017\n" - + "\013SQL_QUERIES\020\003\"\351\004\n" - + "\027DataDocumentationResult\022Z\n" - + "\014table_result\030\010 \001(\0132=" - + ".google.cloud.dataplex.v1.DataDocumentationResult.TableResultB\003\340A\003H\000\032\325\001\n" + + "\013SQL_QUERIES\020\003\"\250\014\n" + + "\027DataDocumentationResult\022^\n" + + "\016dataset_result\030\007 \001(\013" + + "2?.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultB\003\340A\003H\000\022Z\n" + + "\014table_result\030\010 \001(\0132=.google.cloud.dataplex.v" + + "1.DataDocumentationResult.TableResultB\003\340A\003H\000\032\336\001\n\r" + + "DatasetResult\022\025\n" + + "\010overview\030\001 \001(\tB\003\340A\003\022g\n" + + "\024schema_relationships\030\003 \003(\0132D.go" + + "ogle.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipB\003\340A\003\022M\n" + + "\007queries\030\004" + + " \003(\01327.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\003\340A\003\032\325\001\n" + "\013TableResult\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + "\010overview\030\002 \001(\tB\003\340A\003\022M\n" - + "\006schema\030\003 \001(\01328.google.cloud.da" - + "taplex.v1.DataDocumentationResult.SchemaB\003\340A\003\022M\n" - + "\007queries\030\004 \003(\01327.google.cloud.da" - + "taplex.v1.DataDocumentationResult.QueryB\003\340A\003\0323\n" + + "\006schema\030\003 \001(\01328.google.cloud.d" + + "ataplex.v1.DataDocumentationResult.SchemaB\003\340A\003\022M\n" + + "\007queries\030\004 \003(\01327.google.cloud.d" + + "ataplex.v1.DataDocumentationResult.QueryB\003\340A\003\032\373\004\n" + + "\022SchemaRelationship\022p\n" + + "\021left_schema_paths\030\001 \001(\0132P.google.cloud.dataplex." + + "v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\003\340A\003\022q\n" + + "\022right_schema_paths\030\002 \001(\0132P.google.cloud.dataplex.v1.Da" + + "taDocumentationResult.SchemaRelationship.SchemaPathsB\003\340A\003\022a\n" + + "\007sources\030\004 \003(\0162K.goo" + + "gle.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SourceB\003\340A\003\022\\\n" + + "\004type\030\006 \001(\0162I.google.cloud.dataplex.v1.Da" + + "taDocumentationResult.SchemaRelationship.TypeB\003\340A\003\0329\n" + + "\013SchemaPaths\022\026\n" + + "\ttable_fqn\030\001 \001(\tB\003\340A\003\022\022\n" + + "\005paths\030\002 \003(\tB\003\340A\003\"U\n" + + "\006Source\022\026\n" + + "\022SOURCE_UNSPECIFIED\020\000\022\t\n" + + "\005AGENT\020\004\022\021\n\r" + + "QUERY_HISTORY\020\005\022\025\n" + + "\021TABLE_CONSTRAINTS\020\006\"-\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013SCHEMA_JOIN\020\001\0323\n" + "\005Query\022\020\n" + "\003sql\030\001 \001(\tB\003\340A\003\022\030\n" + "\013description\030\002 \001(\tB\003\340A\003\032V\n" + "\006Schema\022L\n" - + "\006fields\030\001 " - + "\003(\01327.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\003\340A\003\032\202\001\n" + + "\006fields\030\001 \003" + + "(\01327.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\003\340A\003\032\202\001\n" + "\005Field\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + "\013description\030\002 \001(\tB\003\340A\003\022L\n" - + "\006fields\030\003 \003(\01327.google.cloud.dataplex" - + ".v1.DataDocumentationResult.FieldB\003\340A\003B\010\n" + + "\006fields\030\003" + + " \003(\01327.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\003\340A\003B\010\n" + "\006resultBr\n" - + "\034com.google.cloud.dataplex.v1B\026DataDocumentationProtoP\001Z8cloud.google" - + ".com/go/dataplex/apiv1/dataplexpb;dataplexpbb\006proto3" + + "\034com.google.cloud.dataplex.v1B\026DataDocumentationProtoP\001Z8cloud.google." + + "com/go/dataplex/apiv1/dataplexpb;dataplexpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -130,20 +170,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor, new java.lang.String[] { - "TableResult", "Result", + "DatasetResult", "TableResult", "Result", }); - internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_descriptor = internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor.getNestedType( 0); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_descriptor, + new java.lang.String[] { + "Overview", "SchemaRelationships", "Queries", + }); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor.getNestedType( + 1); internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor, new java.lang.String[] { "Name", "Overview", "Schema", "Queries", }); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor.getNestedType( + 2); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_descriptor, + new java.lang.String[] { + "LeftSchemaPaths", "RightSchemaPaths", "Sources", "Type", + }); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_descriptor + .getNestedType(0); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_descriptor, + new java.lang.String[] { + "TableFqn", "Paths", + }); internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor = internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor.getNestedType( - 1); + 3); internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor, @@ -152,7 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor = internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor.getNestedType( - 2); + 4); internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor, @@ -161,7 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor = internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor.getNestedType( - 3); + 5); internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor, diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResult.java index 613207a0a0af..ff309282ef9f 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResult.java @@ -68,118 +68,118 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataplex.v1.DataDocumentationResult.Builder.class); } - public interface TableResultOrBuilder + public interface DatasetResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Output only. The service-qualified full resource name of the cloud
-     * resource. Ex:
-     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * Output only. Generated Dataset description.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The name. + * @return The overview. */ - java.lang.String getName(); + java.lang.String getOverview(); /** * * *
-     * Output only. The service-qualified full resource name of the cloud
-     * resource. Ex:
-     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * Output only. Generated Dataset description.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for name. + * @return The bytes for overview. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString getOverviewBytes(); /** * * *
-     * Output only. Generated description of the table.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The overview. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.lang.String getOverview(); + java.util.List + getSchemaRelationshipsList(); /** * * *
-     * Output only. Generated description of the table.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for overview. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.protobuf.ByteString getOverviewBytes(); + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship getSchemaRelationships( + int index); /** * * *
-     * Output only. Schema of the table with generated metadata of the columns
-     * in the schema.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the schema field is set. */ - boolean hasSchema(); + int getSchemaRelationshipsCount(); /** * * *
-     * Output only. Schema of the table with generated metadata of the columns
-     * in the schema.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The schema. */ - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema(); + java.util.List< + ? extends + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder> + getSchemaRelationshipsOrBuilderList(); /** * * *
-     * Output only. Schema of the table with generated metadata of the columns
-     * in the schema.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder getSchemaOrBuilder(); + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder + getSchemaRelationshipsOrBuilder(int index); /** * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -192,7 +192,7 @@ public interface TableResultOrBuilder * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -205,7 +205,7 @@ public interface TableResultOrBuilder * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -218,7 +218,7 @@ public interface TableResultOrBuilder * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -232,7 +232,7 @@ public interface TableResultOrBuilder * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -247,15 +247,15 @@ com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder getQueriesOr * * *
-   * Generated metadata about the table.
+   * Insights for a dataset resource.
    * 
* - * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.TableResult} + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult} */ - public static final class TableResult extends com.google.protobuf.GeneratedMessage + public static final class DatasetResult extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) - TableResultOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) + DatasetResultOrBuilder { private static final long serialVersionUID = 0L; static { @@ -265,63 +265,60 @@ public static final class TableResult extends com.google.protobuf.GeneratedMessa /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "TableResult"); + "DatasetResult"); } - // Use TableResult.newBuilder() to construct. - private TableResult(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use DatasetResult.newBuilder() to construct. + private DatasetResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private TableResult() { - name_ = ""; + private DatasetResult() { overview_ = ""; + schemaRelationships_ = java.util.Collections.emptyList(); queries_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.DataDocumentationProto - .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.DataDocumentationProto - .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.class, - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder.class); + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.Builder.class); } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public static final int OVERVIEW_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + private volatile java.lang.Object overview_ = ""; /** * * *
-     * Output only. The service-qualified full resource name of the cloud
-     * resource. Ex:
-     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * Output only. Generated Dataset description.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The name. + * @return The overview. */ @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getOverview() { + java.lang.Object ref = overview_; if (ref instanceof java.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; + overview_ = s; return s; } } @@ -330,142 +327,121 @@ public java.lang.String getName() { * * *
-     * Output only. The service-qualified full resource name of the cloud
-     * resource. Ex:
-     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * Output only. Generated Dataset description.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for name. + * @return The bytes for overview. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + overview_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OVERVIEW_FIELD_NUMBER = 2; + public static final int SCHEMA_RELATIONSHIPS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object overview_ = ""; + private java.util.List + schemaRelationships_; /** * * *
-     * Output only. Generated description of the table.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The overview. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getOverview() { - java.lang.Object ref = overview_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - overview_ = s; - return s; - } + public java.util.List + getSchemaRelationshipsList() { + return schemaRelationships_; } /** * * *
-     * Output only. Generated description of the table.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for overview. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.protobuf.ByteString getOverviewBytes() { - java.lang.Object ref = overview_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - overview_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List< + ? extends + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder> + getSchemaRelationshipsOrBuilderList() { + return schemaRelationships_; } - public static final int SCHEMA_FIELD_NUMBER = 3; - private com.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema_; - /** * * *
-     * Output only. Schema of the table with generated metadata of the columns
-     * in the schema.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the schema field is set. */ @java.lang.Override - public boolean hasSchema() { - return ((bitField0_ & 0x00000001) != 0); + public int getSchemaRelationshipsCount() { + return schemaRelationships_.size(); } /** * * *
-     * Output only. Schema of the table with generated metadata of the columns
-     * in the schema.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The schema. */ @java.lang.Override - public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { - return schema_ == null - ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() - : schema_; + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + getSchemaRelationships(int index) { + return schemaRelationships_.get(index); } /** * * *
-     * Output only. Schema of the table with generated metadata of the columns
-     * in the schema.
+     * Output only. Relationships suggesting how tables in the dataset are
+     * related to each other, based on their schema.
      * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder - getSchemaOrBuilder() { - return schema_ == null - ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() - : schema_; + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder + getSchemaRelationshipsOrBuilder(int index) { + return schemaRelationships_.get(index); } public static final int QUERIES_FIELD_NUMBER = 4; @@ -477,7 +453,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -494,7 +470,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -512,7 +488,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -528,7 +504,7 @@ public int getQueriesCount() { * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -544,7 +520,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int * * *
-     * Output only. Sample SQL queries for the table.
+     * Output only. Sample SQL queries for the dataset.
      * 
* * @@ -571,14 +547,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(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(overview_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, overview_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, overview_); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getSchema()); + for (int i = 0; i < schemaRelationships_.size(); i++) { + output.writeMessage(3, schemaRelationships_.get(i)); } for (int i = 0; i < queries_.size(); i++) { output.writeMessage(4, queries_.get(i)); @@ -592,14 +565,13 @@ public int getSerializedSize() { 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(overview_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, overview_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, overview_); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSchema()); + for (int i = 0; i < schemaRelationships_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, schemaRelationships_.get(i)); } for (int i = 0; i < queries_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, queries_.get(i)); @@ -614,18 +586,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult)) { + if (!(obj instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult)) { return super.equals(obj); } - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult other = - (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) obj; + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) obj; - if (!getName().equals(other.getName())) return false; if (!getOverview().equals(other.getOverview())) return false; - if (hasSchema() != other.hasSchema()) return false; - if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; - } + if (!getSchemaRelationshipsList().equals(other.getSchemaRelationshipsList())) return false; if (!getQueriesList().equals(other.getQueriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -638,13 +606,11 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + OVERVIEW_FIELD_NUMBER; hash = (53 * hash) + getOverview().hashCode(); - if (hasSchema()) { - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); + if (getSchemaRelationshipsCount() > 0) { + hash = (37 * hash) + SCHEMA_RELATIONSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getSchemaRelationshipsList().hashCode(); } if (getQueriesCount() > 0) { hash = (37 * hash) + QUERIES_FIELD_NUMBER; @@ -655,59 +621,59 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult 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.dataplex.v1.DataDocumentationResult.TableResult + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -715,12 +681,12 @@ public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult p PARSER, input, extensionRegistry); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -738,7 +704,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult prototype) { + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -757,85 +723,76 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * Generated metadata about the table.
+     * Insights for a dataset resource.
      * 
* - * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.TableResult} + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.DataDocumentationProto - .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.DataDocumentationProto - .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.class, - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder.class); + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.Builder.class); } // Construct using - // com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.newBuilder() + private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetSchemaFieldBuilder(); - internalGetQueriesFieldBuilder(); - } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - name_ = ""; overview_ = ""; - schema_ = null; - if (schemaBuilder_ != null) { - schemaBuilder_.dispose(); - schemaBuilder_ = null; + if (schemaRelationshipsBuilder_ == null) { + schemaRelationships_ = java.util.Collections.emptyList(); + } else { + schemaRelationships_ = null; + schemaRelationshipsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); } else { queries_ = null; queriesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.DataDocumentationProto - .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_DatasetResult_descriptor; } @java.lang.Override - public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult getDefaultInstanceForType() { - return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + return com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult build() { - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result = buildPartial(); + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -843,9 +800,9 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult build() } @java.lang.Override - public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult buildPartial() { - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result = - new com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult(this); + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); @@ -855,11 +812,20 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult buildPar } private void buildPartialRepeatedFields( - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result) { + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult result) { + if (schemaRelationshipsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + schemaRelationships_ = java.util.Collections.unmodifiableList(schemaRelationships_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.schemaRelationships_ = schemaRelationships_; + } else { + result.schemaRelationships_ = schemaRelationshipsBuilder_.build(); + } if (queriesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { queries_ = java.util.Collections.unmodifiableList(queries_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.queries_ = queries_; } else { @@ -868,27 +834,18 @@ private void buildPartialRepeatedFields( } private void buildPartial0( - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result) { + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { result.overview_ = overview_; } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.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.dataplex.v1.DataDocumentationResult.TableResult) { + if (other instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) { return mergeFrom( - (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) other); + (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) other); } else { super.mergeFrom(other); return this; @@ -896,28 +853,47 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult other) { + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult other) { if (other - == com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + == com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } if (!other.getOverview().isEmpty()) { overview_ = other.overview_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); } - if (other.hasSchema()) { - mergeSchema(other.getSchema()); + if (schemaRelationshipsBuilder_ == null) { + if (!other.schemaRelationships_.isEmpty()) { + if (schemaRelationships_.isEmpty()) { + schemaRelationships_ = other.schemaRelationships_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.addAll(other.schemaRelationships_); + } + onChanged(); + } + } else { + if (!other.schemaRelationships_.isEmpty()) { + if (schemaRelationshipsBuilder_.isEmpty()) { + schemaRelationshipsBuilder_.dispose(); + schemaRelationshipsBuilder_ = null; + schemaRelationships_ = other.schemaRelationships_; + bitField0_ = (bitField0_ & ~0x00000002); + schemaRelationshipsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSchemaRelationshipsFieldBuilder() + : null; + } else { + schemaRelationshipsBuilder_.addAllMessages(other.schemaRelationships_); + } + } } if (queriesBuilder_ == null) { if (!other.queries_.isEmpty()) { if (queries_.isEmpty()) { queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureQueriesIsMutable(); queries_.addAll(other.queries_); @@ -930,7 +906,7 @@ public Builder mergeFrom( queriesBuilder_.dispose(); queriesBuilder_ = null; queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); queriesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetQueriesFieldBuilder() @@ -968,21 +944,23 @@ public Builder mergeFrom( break; case 10: { - name_ = input.readStringRequireUtf8(); + overview_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 18: - { - overview_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 case 26: { - input.readMessage( - internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship m = + input.readMessage( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .parser(), + extensionRegistry); + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(m); + } else { + schemaRelationshipsBuilder_.addMessage(m); + } break; } // case 26 case 34: @@ -1018,27 +996,25 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object name_ = ""; + private java.lang.Object overview_ = ""; /** * * *
-       * Output only. The service-qualified full resource name of the cloud
-       * resource. Ex:
-       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * Output only. Generated Dataset description.
        * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The name. + * @return The overview. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getOverview() { + java.lang.Object ref = overview_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + overview_ = s; return s; } else { return (java.lang.String) ref; @@ -1049,21 +1025,19 @@ public java.lang.String getName() { * * *
-       * Output only. The service-qualified full resource name of the cloud
-       * resource. Ex:
-       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * Output only. Generated Dataset description.
        * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for name. + * @return The bytes for overview. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + overview_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1074,21 +1048,19 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-       * Output only. The service-qualified full resource name of the cloud
-       * resource. Ex:
-       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * Output only. Generated Dataset description.
        * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The name to set. + * @param value The overview to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setOverview(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + overview_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -1098,17 +1070,15 @@ public Builder setName(java.lang.String value) { * * *
-       * Output only. The service-qualified full resource name of the cloud
-       * resource. Ex:
-       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * Output only. Generated Dataset description.
        * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); + public Builder clearOverview() { + overview_ = getDefaultInstance().getOverview(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -1118,49 +1088,63 @@ public Builder clearName() { * * *
-       * Output only. The service-qualified full resource name of the cloud
-       * resource. Ex:
-       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * Output only. Generated Dataset description.
        * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for name to set. + * @param value The bytes for overview to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setOverviewBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + overview_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object overview_ = ""; + private java.util.List< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship> + schemaRelationships_ = java.util.Collections.emptyList(); + + private void ensureSchemaRelationshipsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + schemaRelationships_ = + new java.util.ArrayList< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship>( + schemaRelationships_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder> + schemaRelationshipsBuilder_; /** * * *
-       * Output only. Generated description of the table.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The overview. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getOverview() { - java.lang.Object ref = overview_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - overview_ = s; - return s; + public java.util.List + getSchemaRelationshipsList() { + if (schemaRelationshipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(schemaRelationships_); } else { - return (java.lang.String) ref; + return schemaRelationshipsBuilder_.getMessageList(); } } @@ -1168,22 +1152,19 @@ public java.lang.String getOverview() { * * *
-       * Output only. Generated description of the table.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for overview. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getOverviewBytes() { - java.lang.Object ref = overview_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - overview_ = b; - return b; + public int getSchemaRelationshipsCount() { + if (schemaRelationshipsBuilder_ == null) { + return schemaRelationships_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return schemaRelationshipsBuilder_.getCount(); } } @@ -1191,39 +1172,48 @@ public com.google.protobuf.ByteString getOverviewBytes() { * * *
-       * Output only. Generated description of the table.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The overview to set. - * @return This builder for chaining. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setOverview(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + getSchemaRelationships(int index) { + if (schemaRelationshipsBuilder_ == null) { + return schemaRelationships_.get(index); + } else { + return schemaRelationshipsBuilder_.getMessage(index); } - overview_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
-       * Output only. Generated description of the table.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearOverview() { - overview_ = getDefaultInstance().getOverview(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + public Builder setSchemaRelationships( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship value) { + if (schemaRelationshipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.set(index, value); + onChanged(); + } else { + schemaRelationshipsBuilder_.setMessage(index, value); + } return this; } @@ -1231,97 +1221,105 @@ public Builder clearOverview() { * * *
-       * Output only. Generated description of the table.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* - * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for overview to set. - * @return This builder for chaining. + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setOverviewBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setSchemaRelationships( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + builderForValue) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.set(index, builderForValue.build()); + onChanged(); + } else { + schemaRelationshipsBuilder_.setMessage(index, builderForValue.build()); } - checkByteStringIsUtf8(value); - overview_ = value; - bitField0_ |= 0x00000002; - onChanged(); return this; } - private com.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, - com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder> - schemaBuilder_; - /** * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the schema field is set. */ - public boolean hasSchema() { - return ((bitField0_ & 0x00000004) != 0); + public Builder addSchemaRelationships( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship value) { + if (schemaRelationshipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(value); + onChanged(); + } else { + schemaRelationshipsBuilder_.addMessage(value); + } + return this; } /** * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The schema. */ - public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { - if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() - : schema_; + public Builder addSchemaRelationships( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship value) { + if (schemaRelationshipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(index, value); + onChanged(); } else { - return schemaBuilder_.getMessage(); + schemaRelationshipsBuilder_.addMessage(index, value); } + return this; } /** * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSchema(com.google.cloud.dataplex.v1.DataDocumentationResult.Schema value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; + public Builder addSchemaRelationships( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + builderForValue) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(builderForValue.build()); + onChanged(); } else { - schemaBuilder_.setMessage(value); + schemaRelationshipsBuilder_.addMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; - onChanged(); return this; } @@ -1329,23 +1327,25 @@ public Builder setSchema(com.google.cloud.dataplex.v1.DataDocumentationResult.Sc * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSchema( - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder builderForValue) { - if (schemaBuilder_ == null) { - schema_ = builderForValue.build(); + public Builder addSchemaRelationships( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + builderForValue) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(index, builderForValue.build()); + onChanged(); } else { - schemaBuilder_.setMessage(builderForValue.build()); + schemaRelationshipsBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000004; - onChanged(); return this; } @@ -1353,32 +1353,47 @@ public Builder setSchema( * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeSchema( - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema value) { - if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && schema_ != null - && schema_ - != com.google.cloud.dataplex.v1.DataDocumentationResult.Schema - .getDefaultInstance()) { - getSchemaBuilder().mergeFrom(value); - } else { - schema_ = value; - } + public Builder addAllSchemaRelationships( + java.lang.Iterable< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship> + values) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemaRelationships_); + onChanged(); } else { - schemaBuilder_.mergeFrom(value); + schemaRelationshipsBuilder_.addAllMessages(values); } - if (schema_ != null) { - bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSchemaRelationships() { + if (schemaRelationshipsBuilder_ == null) { + schemaRelationships_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); + } else { + schemaRelationshipsBuilder_.clear(); } return this; } @@ -1387,22 +1402,22 @@ public Builder mergeSchema( * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearSchema() { - bitField0_ = (bitField0_ & ~0x00000004); - schema_ = null; - if (schemaBuilder_ != null) { - schemaBuilder_.dispose(); - schemaBuilder_ = null; + public Builder removeSchemaRelationships(int index) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.remove(index); + onChanged(); + } else { + schemaRelationshipsBuilder_.remove(index); } - onChanged(); return this; } @@ -1410,41 +1425,37 @@ public Builder clearSchema() { * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder - getSchemaBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetSchemaFieldBuilder().getBuilder(); + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + getSchemaRelationshipsBuilder(int index) { + return internalGetSchemaRelationshipsFieldBuilder().getBuilder(index); } /** * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder - getSchemaOrBuilder() { - if (schemaBuilder_ != null) { - return schemaBuilder_.getMessageOrBuilder(); + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder + getSchemaRelationshipsOrBuilder(int index) { + if (schemaRelationshipsBuilder_ == null) { + return schemaRelationships_.get(index); } else { - return schema_ == null - ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() - : schema_; + return schemaRelationshipsBuilder_.getMessageOrBuilder(index); } } @@ -1452,40 +1463,113 @@ public Builder clearSchema() { * * *
-       * Output only. Schema of the table with generated metadata of the columns
-       * in the schema.
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
        * 
* * - * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, - com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder> - internalGetSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, - com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, - com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); - schema_ = null; + public java.util.List< + ? extends + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder> + getSchemaRelationshipsOrBuilderList() { + if (schemaRelationshipsBuilder_ != null) { + return schemaRelationshipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schemaRelationships_); } - return schemaBuilder_; + } + + /** + * + * + *
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + addSchemaRelationshipsBuilder() { + return internalGetSchemaRelationshipsFieldBuilder() + .addBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .getDefaultInstance()); + } + + /** + * + * + *
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + addSchemaRelationshipsBuilder(int index) { + return internalGetSchemaRelationshipsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .getDefaultInstance()); + } + + /** + * + * + *
+       * Output only. Relationships suggesting how tables in the dataset are
+       * related to each other, based on their schema.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder> + getSchemaRelationshipsBuilderList() { + return internalGetSchemaRelationshipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder> + internalGetSchemaRelationshipsFieldBuilder() { + if (schemaRelationshipsBuilder_ == null) { + schemaRelationshipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder>( + schemaRelationships_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + schemaRelationships_ = null; + } + return schemaRelationshipsBuilder_; } private java.util.List queries_ = java.util.Collections.emptyList(); private void ensureQueriesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { queries_ = new java.util.ArrayList( queries_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -1499,7 +1583,7 @@ private void ensureQueriesIsMutable() { * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1519,7 +1603,7 @@ private void ensureQueriesIsMutable() { * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1538,7 +1622,7 @@ public int getQueriesCount() { * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1557,7 +1641,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1583,7 +1667,7 @@ public Builder setQueries( * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1607,7 +1691,7 @@ public Builder setQueries( * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1632,7 +1716,7 @@ public Builder addQueries(com.google.cloud.dataplex.v1.DataDocumentationResult.Q * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1658,7 +1742,7 @@ public Builder addQueries( * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1681,7 +1765,7 @@ public Builder addQueries( * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1705,7 +1789,7 @@ public Builder addQueries( * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1729,7 +1813,7 @@ public Builder addAllQueries( * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1739,7 +1823,7 @@ public Builder addAllQueries( public Builder clearQueries() { if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { queriesBuilder_.clear(); @@ -1751,7 +1835,7 @@ public Builder clearQueries() { * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1773,7 +1857,7 @@ public Builder removeQueries(int index) { * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1789,7 +1873,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder getQue * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1809,7 +1893,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder getQue * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1830,7 +1914,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder getQue * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1848,7 +1932,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder getQue * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
        * 
* * @@ -1867,55 +1951,5389 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder addQue * * *
-       * Output only. Sample SQL queries for the table.
+       * Output only. Sample SQL queries for the dataset.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQueriesBuilderList() { + return internalGetQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + internalGetQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder>( + queries_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + queries_ = null; + } + return queriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TableResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The service-qualified full resource name of the cloud
+     * resource. Ex:
+     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * Output only. The service-qualified full resource name of the cloud
+     * resource. Ex:
+     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Output only. Generated description of the table.
+     * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The overview. + */ + java.lang.String getOverview(); + + /** + * + * + *
+     * Output only. Generated description of the table.
+     * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for overview. + */ + com.google.protobuf.ByteString getOverviewBytes(); + + /** + * + * + *
+     * Output only. Schema of the table with generated metadata of the columns
+     * in the schema.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + + /** + * + * + *
+     * Output only. Schema of the table with generated metadata of the columns
+     * in the schema.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The schema. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema(); + + /** + * + * + *
+     * Output only. Schema of the table with generated metadata of the columns
+     * in the schema.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getQueriesList(); + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int index); + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getQueriesCount(); + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getQueriesOrBuilderList(); + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder getQueriesOrBuilder( + int index); + } + + /** + * + * + *
+   * Insights for a table resource.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.TableResult} + */ + public static final class TableResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + TableResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TableResult"); + } + + // Use TableResult.newBuilder() to construct. + private TableResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TableResult() { + name_ = ""; + overview_ = ""; + queries_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * Output only. The service-qualified full resource name of the cloud
+     * resource. Ex:
+     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The service-qualified full resource name of the cloud
+     * resource. Ex:
+     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERVIEW_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object overview_ = ""; + + /** + * + * + *
+     * Output only. Generated description of the table.
+     * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The overview. + */ + @java.lang.Override + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overview_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. Generated description of the table.
+     * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for overview. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overview_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private com.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema_; + + /** + * + * + *
+     * Output only. Schema of the table with generated metadata of the columns
+     * in the schema.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Schema of the table with generated metadata of the columns
+     * in the schema.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } + + /** + * + * + *
+     * Output only. Schema of the table with generated metadata of the columns
+     * in the schema.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder + getSchemaOrBuilder() { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } + + public static final int QUERIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List queries_; + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getQueriesList() { + return queries_; + } + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + getQueriesOrBuilderList() { + return queries_; + } + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getQueriesCount() { + return queries_.size(); + } + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int index) { + return queries_.get(index); + } + + /** + * + * + *
+     * Output only. Sample SQL queries for the table.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder getQueriesOrBuilder( + int index) { + return queries_.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_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(overview_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, overview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSchema()); + } + for (int i = 0; i < queries_.size(); i++) { + output.writeMessage(4, queries_.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_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(overview_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, overview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSchema()); + } + for (int i = 0; i < queries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, queries_.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.dataplex.v1.DataDocumentationResult.TableResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) obj; + + if (!getName().equals(other.getName())) return false; + if (!getOverview().equals(other.getOverview())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema().equals(other.getSchema())) return false; + } + if (!getQueriesList().equals(other.getQueriesList())) return false; + if (!getUnknownFields().equals(other.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) + OVERVIEW_FIELD_NUMBER; + hash = (53 * hash) + getOverview().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + if (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult 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.dataplex.v1.DataDocumentationResult.TableResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + 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.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult 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.dataplex.v1.DataDocumentationResult.TableResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+     * Insights for a table resource.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.TableResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSchemaFieldBuilder(); + internalGetQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + overview_ = ""; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + } else { + queries_ = null; + queriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result) { + if (queriesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.queries_ = queries_; + } else { + result.queries_ = queriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.overview_ = overview_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.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.dataplex.v1.DataDocumentationResult.TableResult) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult other) { + if (other + == com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOverview().isEmpty()) { + overview_ = other.overview_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + if (queriesBuilder_ == null) { + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + } else { + if (!other.queries_.isEmpty()) { + if (queriesBuilder_.isEmpty()) { + queriesBuilder_.dispose(); + queriesBuilder_ = null; + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000008); + queriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetQueriesFieldBuilder() + : null; + } else { + queriesBuilder_.addAllMessages(other.queries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + overview_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.dataplex.v1.DataDocumentationResult.Query m = + input.readMessage( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.parser(), + extensionRegistry); + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(m); + } else { + queriesBuilder_.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 name_ = ""; + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the cloud
+       * resource. Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the cloud
+       * resource. Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the cloud
+       * resource. Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the cloud
+       * resource. Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the cloud
+       * resource. Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object overview_ = ""; + + /** + * + * + *
+       * Output only. Generated description of the table.
+       * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The overview. + */ + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overview_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. Generated description of the table.
+       * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for overview. + */ + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overview_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. Generated description of the table.
+       * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The overview to set. + * @return This builder for chaining. + */ + public Builder setOverview(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + overview_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Generated description of the table.
+       * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOverview() { + overview_ = getDefaultInstance().getOverview(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Generated description of the table.
+       * 
+ * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for overview to set. + * @return This builder for chaining. + */ + public Builder setOverviewBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + overview_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder> + schemaBuilder_; + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The schema. + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSchema(com.google.cloud.dataplex.v1.DataDocumentationResult.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSchema( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSchema( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && schema_ != null + && schema_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.Schema + .getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + if (schema_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder + getSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder + getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } + } + + /** + * + * + *
+       * Output only. Schema of the table with generated metadata of the columns
+       * in the schema.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder> + internalGetSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + private java.util.List queries_ = + java.util.Collections.emptyList(); + + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + queries_ = + new java.util.ArrayList( + queries_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + queriesBuilder_; + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQueriesList() { + if (queriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queries_); + } else { + return queriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getQueriesCount() { + if (queriesBuilder_ == null) { + return queries_.size(); + } else { + return queriesBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQueries( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Query value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + } else { + queriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQueries( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.set(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries(com.google.cloud.dataplex.v1.DataDocumentationResult.Query value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + } else { + queriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Query value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(index, value); + onChanged(); + } else { + queriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllQueries( + java.lang.Iterable + values) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); + onChanged(); + } else { + queriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQueries() { + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + queriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeQueries(int index) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.remove(index); + onChanged(); + } else { + queriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder getQueriesBuilder( + int index) { + return internalGetQueriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder + getQueriesOrBuilder(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + getQueriesOrBuilderList() { + if (queriesBuilder_ != null) { + return queriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queries_); + } + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder + addQueriesBuilder() { + return internalGetQueriesFieldBuilder() + .addBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.getDefaultInstance()); + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder addQueriesBuilder( + int index) { + return internalGetQueriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.getDefaultInstance()); + } + + /** + * + * + *
+       * Output only. Sample SQL queries for the table.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQueriesBuilderList() { + return internalGetQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + internalGetQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder>( + queries_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + queries_ = null; + } + return queriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SchemaRelationshipOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the first table.
+     * The size of this list must be the same as `right_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `right_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the leftSchemaPaths field is set. + */ + boolean hasLeftSchemaPaths(); + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the first table.
+     * The size of this list must be the same as `right_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `right_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The leftSchemaPaths. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getLeftSchemaPaths(); + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the first table.
+     * The size of this list must be the same as `right_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `right_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsOrBuilder + getLeftSchemaPathsOrBuilder(); + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the second
+     * table. The size of this list must be the same as `left_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `left_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rightSchemaPaths field is set. + */ + boolean hasRightSchemaPaths(); + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the second
+     * table. The size of this list must be the same as `left_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `left_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rightSchemaPaths. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getRightSchemaPaths(); + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the second
+     * table. The size of this list must be the same as `left_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `left_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsOrBuilder + getRightSchemaPathsOrBuilder(); + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the sources. + */ + java.util.List + getSourcesList(); + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of sources. + */ + int getSourcesCount(); + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source getSources( + int index); + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + java.util.List getSourcesValueList(); + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + int getSourcesValue(int index); + + /** + * + * + *
+     * Output only. The type of relationship between the schema paths.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+     * Output only. The type of relationship between the schema paths.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type getType(); + } + + /** + * + * + *
+   * Details of the relationship between the schema of two resources.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship} + */ + public static final class SchemaRelationship extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) + SchemaRelationshipOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SchemaRelationship"); + } + + // Use SchemaRelationship.newBuilder() to construct. + private SchemaRelationship(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SchemaRelationship() { + sources_ = emptyIntList(); + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + .class); + } + + /** + * + * + *
+     * Source which generated the schema relation edge.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source} + */ + public enum Source implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The source of the schema relationship is unspecified.
+       * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * + * + *
+       * The source of the schema relationship is agent.
+       * 
+ * + * AGENT = 4; + */ + AGENT(4), + /** + * + * + *
+       * The source of the schema relationship is query history from the source
+       * system.
+       * 
+ * + * QUERY_HISTORY = 5; + */ + QUERY_HISTORY(5), + /** + * + * + *
+       * The source of the schema relationship is table constraints added in
+       * the source system.
+       * 
+ * + * TABLE_CONSTRAINTS = 6; + */ + TABLE_CONSTRAINTS(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Source"); + } + + /** + * + * + *
+       * The source of the schema relationship is unspecified.
+       * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The source of the schema relationship is agent.
+       * 
+ * + * AGENT = 4; + */ + public static final int AGENT_VALUE = 4; + + /** + * + * + *
+       * The source of the schema relationship is query history from the source
+       * system.
+       * 
+ * + * QUERY_HISTORY = 5; + */ + public static final int QUERY_HISTORY_VALUE = 5; + + /** + * + * + *
+       * The source of the schema relationship is table constraints added in
+       * the source system.
+       * 
+ * + * TABLE_CONSTRAINTS = 6; + */ + public static final int TABLE_CONSTRAINTS_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 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 4: + return AGENT; + case 5: + return QUERY_HISTORY; + case 6: + return TABLE_CONSTRAINTS; + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship + .getDescriptor() + .getEnumTypes() + .get(0); + } + + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source) + } + + /** + * + * + *
+     * The type of relationship.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The type of the schema relationship is unspecified.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Indicates a join relationship between the schema fields.
+       * 
+ * + * SCHEMA_JOIN = 1; + */ + SCHEMA_JOIN(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+       * The type of the schema relationship is unspecified.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Indicates a join relationship between the schema fields.
+       * 
+ * + * SCHEMA_JOIN = 1; + */ + public static final int SCHEMA_JOIN_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 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 SCHEMA_JOIN; + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship + .getDescriptor() + .getEnumTypes() + .get(1); + } + + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type) + } + + public interface SchemaPathsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the table
+       * Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tableFqn. + */ + java.lang.String getTableFqn(); + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the table
+       * Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tableFqn. + */ + com.google.protobuf.ByteString getTableFqnBytes(); + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the paths. + */ + java.util.List getPathsList(); + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of paths. + */ + int getPathsCount(); + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + java.lang.String getPaths(int index); + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + com.google.protobuf.ByteString getPathsBytes(int index); + } + + /** + * + * + *
+     * Represents an ordered set of paths within a table's schema.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths} + */ + public static final class SchemaPaths extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths) + SchemaPathsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SchemaPaths"); + } + + // Use SchemaPaths.newBuilder() to construct. + private SchemaPaths(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SchemaPaths() { + tableFqn_ = ""; + paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .class, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder.class); + } + + public static final int TABLE_FQN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tableFqn_ = ""; + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the table
+       * Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tableFqn. + */ + @java.lang.Override + public java.lang.String getTableFqn() { + java.lang.Object ref = tableFqn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableFqn_ = s; + return s; + } + } + + /** + * + * + *
+       * Output only. The service-qualified full resource name of the table
+       * Ex:
+       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+       * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tableFqn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableFqnBytes() { + java.lang.Object ref = tableFqn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATHS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList paths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + return paths_; + } + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } + + /** + * + * + *
+       * Output only. An ordered set of Paths to fields within the schema of the
+       * table. For fields nested within a top level field of type record, use
+       * '.' to separate field names. Examples: Top level field - `top_level`
+       * Nested field - `top_level.child.sub_field`
+       * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString getPathsBytes(int index) { + return paths_.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(tableFqn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tableFqn_); + } + for (int i = 0; i < paths_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, paths_.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(tableFqn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tableFqn_); + } + { + int dataSize = 0; + for (int i = 0; i < paths_.size(); i++) { + dataSize += computeStringSizeNoTag(paths_.getRaw(i)); + } + size += dataSize; + size += 1 * getPathsList().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.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths) + obj; + + if (!getTableFqn().equals(other.getTableFqn())) return false; + if (!getPathsList().equals(other.getPathsList())) return false; + if (!getUnknownFields().equals(other.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) + TABLE_FQN_FIELD_NUMBER; + hash = (53 * hash) + getTableFqn().hashCode(); + if (getPathsCount() > 0) { + hash = (37 * hash) + PATHS_FIELD_NUMBER; + hash = (53 * hash) + getPathsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+       * Represents an ordered set of paths within a table's schema.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths) + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tableFqn_ = ""; + paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_SchemaPaths_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tableFqn_ = tableFqn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + paths_.makeImmutable(); + result.paths_ = paths_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + other) { + if (other + == com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance()) return this; + if (!other.getTableFqn().isEmpty()) { + tableFqn_ = other.tableFqn_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ |= 0x00000002; + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + 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: + { + tableFqn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePathsIsMutable(); + paths_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tableFqn_ = ""; + + /** + * + * + *
+         * Output only. The service-qualified full resource name of the table
+         * Ex:
+         * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+         * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tableFqn. + */ + public java.lang.String getTableFqn() { + java.lang.Object ref = tableFqn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableFqn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Output only. The service-qualified full resource name of the table
+         * Ex:
+         * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+         * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tableFqn. + */ + public com.google.protobuf.ByteString getTableFqnBytes() { + java.lang.Object ref = tableFqn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Output only. The service-qualified full resource name of the table
+         * Ex:
+         * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+         * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tableFqn to set. + * @return This builder for chaining. + */ + public Builder setTableFqn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tableFqn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The service-qualified full resource name of the table
+         * Ex:
+         * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+         * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTableFqn() { + tableFqn_ = getDefaultInstance().getTableFqn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The service-qualified full resource name of the table
+         * Ex:
+         * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
+         * 
+ * + * string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tableFqn to set. + * @return This builder for chaining. + */ + public Builder setTableFqnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tableFqn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList paths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePathsIsMutable() { + if (!paths_.isModifiable()) { + paths_ = new com.google.protobuf.LazyStringArrayList(paths_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + paths_.makeImmutable(); + return paths_; + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString getPathsBytes(int index) { + return paths_.getByteString(index); + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The paths to set. + * @return This builder for chaining. + */ + public Builder setPaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The paths to add. + * @return This builder for chaining. + */ + public Builder addPaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The paths to add. + * @return This builder for chaining. + */ + public Builder addAllPaths(java.lang.Iterable values) { + ensurePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPaths() { + paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. An ordered set of Paths to fields within the schema of the
+         * table. For fields nested within a top level field of type record, use
+         * '.' to separate field names. Examples: Top level field - `top_level`
+         * Nested field - `top_level.child.sub_field`
+         * 
+ * + * repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the paths to add. + * @return This builder for chaining. + */ + public Builder addPathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathsIsMutable(); + paths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaPaths parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int LEFT_SCHEMA_PATHS_FIELD_NUMBER = 1; + private com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + leftSchemaPaths_; + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the first table.
+     * The size of this list must be the same as `right_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `right_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the leftSchemaPaths field is set. + */ + @java.lang.Override + public boolean hasLeftSchemaPaths() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the first table.
+     * The size of this list must be the same as `right_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `right_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The leftSchemaPaths. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getLeftSchemaPaths() { + return leftSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the first table.
+     * The size of this list must be the same as `right_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `right_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder + getLeftSchemaPathsOrBuilder() { + return leftSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } + + public static final int RIGHT_SCHEMA_PATHS_FIELD_NUMBER = 2; + private com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + rightSchemaPaths_; + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the second
+     * table. The size of this list must be the same as `left_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `left_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rightSchemaPaths field is set. + */ + @java.lang.Override + public boolean hasRightSchemaPaths() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the second
+     * table. The size of this list must be the same as `left_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `left_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rightSchemaPaths. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getRightSchemaPaths() { + return rightSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } + + /** + * + * + *
+     * Output only. An ordered list of fields for the join from the second
+     * table. The size of this list must be the same as `left_schema_paths`.
+     * Each field at index i in this list must correspond to a field at the same
+     * index in the `left_schema_paths` list.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder + getRightSchemaPathsOrBuilder() { + return rightSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } + + public static final int SOURCES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList sources_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source> + sources_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source>() { + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source + convert(int from) { + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source + result = + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .Source.forNumber(from); + return result == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source + .UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the sources. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source> + getSourcesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source>( + sources_, sources_converter_); + } + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of sources. + */ + @java.lang.Override + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source + getSources(int index) { + return sources_converter_.convert(sources_.getInt(index)); + } + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + @java.lang.Override + public java.util.List getSourcesValueList() { + return sources_; + } + + /** + * + * + *
+     * Output only. Sources which generated the schema relation edge.
+     * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + @java.lang.Override + public int getSourcesValue(int index) { + return sources_.getInt(index); + } + + private int sourcesMemoizedSerializedSize; + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_ = 0; + + /** + * + * + *
+     * Output only. The type of relationship between the schema paths.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.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 relationship between the schema paths.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type getType() { + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type result = + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type.forNumber( + type_); + return result == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLeftSchemaPaths()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRightSchemaPaths()); + } + if (getSourcesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(sourcesMemoizedSerializedSize); + } + for (int i = 0; i < sources_.size(); i++) { + output.writeEnumNoTag(sources_.getInt(i)); + } + if (type_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type + .TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, type_); + } + 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, getLeftSchemaPaths()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRightSchemaPaths()); + } + { + int dataSize = 0; + for (int i = 0; i < sources_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(sources_.getInt(i)); + } + size += dataSize; + if (!getSourcesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + sourcesMemoizedSerializedSize = dataSize; + } + if (type_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type + .TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, 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.dataplex.v1.DataDocumentationResult.SchemaRelationship)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) obj; + + if (hasLeftSchemaPaths() != other.hasLeftSchemaPaths()) return false; + if (hasLeftSchemaPaths()) { + if (!getLeftSchemaPaths().equals(other.getLeftSchemaPaths())) return false; + } + if (hasRightSchemaPaths() != other.hasRightSchemaPaths()) return false; + if (hasRightSchemaPaths()) { + if (!getRightSchemaPaths().equals(other.getRightSchemaPaths())) return false; + } + if (!sources_.equals(other.sources_)) 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(); + if (hasLeftSchemaPaths()) { + hash = (37 * hash) + LEFT_SCHEMA_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getLeftSchemaPaths().hashCode(); + } + if (hasRightSchemaPaths()) { + hash = (37 * hash) + RIGHT_SCHEMA_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getRightSchemaPaths().hashCode(); + } + if (getSourcesCount() > 0) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + sources_.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.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship 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.dataplex.v1.DataDocumentationResult.SchemaRelationship + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + 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.dataplex.v1.DataDocumentationResult.SchemaRelationship parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship 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.dataplex.v1.DataDocumentationResult.SchemaRelationship prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 relationship between the schema of two resources.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Builder + .class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLeftSchemaPathsFieldBuilder(); + internalGetRightSchemaPathsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + leftSchemaPaths_ = null; + if (leftSchemaPathsBuilder_ != null) { + leftSchemaPathsBuilder_.dispose(); + leftSchemaPathsBuilder_ = null; + } + rightSchemaPaths_ = null; + if (rightSchemaPathsBuilder_ != null) { + rightSchemaPathsBuilder_.dispose(); + rightSchemaPathsBuilder_ = null; + } + sources_ = emptyIntList(); + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_SchemaRelationship_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.leftSchemaPaths_ = + leftSchemaPathsBuilder_ == null ? leftSchemaPaths_ : leftSchemaPathsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rightSchemaPaths_ = + rightSchemaPathsBuilder_ == null + ? rightSchemaPaths_ + : rightSchemaPathsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + sources_.makeImmutable(); + result.sources_ = sources_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship other) { + if (other + == com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .getDefaultInstance()) return this; + if (other.hasLeftSchemaPaths()) { + mergeLeftSchemaPaths(other.getLeftSchemaPaths()); + } + if (other.hasRightSchemaPaths()) { + mergeRightSchemaPaths(other.getRightSchemaPaths()); + } + if (!other.sources_.isEmpty()) { + if (sources_.isEmpty()) { + sources_ = other.sources_; + sources_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureSourcesIsMutable(); + sources_.addAll(other.sources_); + } + 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: + { + input.readMessage( + internalGetLeftSchemaPathsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRightSchemaPathsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + int tmpRaw = input.readEnum(); + ensureSourcesIsMutable(); + sources_.addInt(tmpRaw); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSourcesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + sources_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 34 + case 48: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000008; + 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 com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + leftSchemaPaths_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder> + leftSchemaPathsBuilder_; + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the leftSchemaPaths field is set. + */ + public boolean hasLeftSchemaPaths() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The leftSchemaPaths. + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getLeftSchemaPaths() { + if (leftSchemaPathsBuilder_ == null) { + return leftSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } else { + return leftSchemaPathsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLeftSchemaPaths( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + value) { + if (leftSchemaPathsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftSchemaPaths_ = value; + } else { + leftSchemaPathsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLeftSchemaPaths( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder + builderForValue) { + if (leftSchemaPathsBuilder_ == null) { + leftSchemaPaths_ = builderForValue.build(); + } else { + leftSchemaPathsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLeftSchemaPaths( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + value) { + if (leftSchemaPathsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && leftSchemaPaths_ != null + && leftSchemaPaths_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths.getDefaultInstance()) { + getLeftSchemaPathsBuilder().mergeFrom(value); + } else { + leftSchemaPaths_ = value; + } + } else { + leftSchemaPathsBuilder_.mergeFrom(value); + } + if (leftSchemaPaths_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLeftSchemaPaths() { + bitField0_ = (bitField0_ & ~0x00000001); + leftSchemaPaths_ = null; + if (leftSchemaPathsBuilder_ != null) { + leftSchemaPathsBuilder_.dispose(); + leftSchemaPathsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder + getLeftSchemaPathsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLeftSchemaPathsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder + getLeftSchemaPathsOrBuilder() { + if (leftSchemaPathsBuilder_ != null) { + return leftSchemaPathsBuilder_.getMessageOrBuilder(); + } else { + return leftSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the first table.
+       * The size of this list must be the same as `right_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `right_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder> + internalGetLeftSchemaPathsFieldBuilder() { + if (leftSchemaPathsBuilder_ == null) { + leftSchemaPathsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder>( + getLeftSchemaPaths(), getParentForChildren(), isClean()); + leftSchemaPaths_ = null; + } + return leftSchemaPathsBuilder_; + } + + private com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + rightSchemaPaths_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder> + rightSchemaPathsBuilder_; + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rightSchemaPaths field is set. + */ + public boolean hasRightSchemaPaths() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rightSchemaPaths. + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + getRightSchemaPaths() { + if (rightSchemaPathsBuilder_ == null) { + return rightSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } else { + return rightSchemaPathsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRightSchemaPaths( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + value) { + if (rightSchemaPathsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightSchemaPaths_ = value; + } else { + rightSchemaPathsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRightSchemaPaths( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder + builderForValue) { + if (rightSchemaPathsBuilder_ == null) { + rightSchemaPaths_ = builderForValue.build(); + } else { + rightSchemaPathsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRightSchemaPaths( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + value) { + if (rightSchemaPathsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rightSchemaPaths_ != null + && rightSchemaPaths_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths.getDefaultInstance()) { + getRightSchemaPathsBuilder().mergeFrom(value); + } else { + rightSchemaPaths_ = value; + } + } else { + rightSchemaPathsBuilder_.mergeFrom(value); + } + if (rightSchemaPaths_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRightSchemaPaths() { + bitField0_ = (bitField0_ & ~0x00000002); + rightSchemaPaths_ = null; + if (rightSchemaPathsBuilder_ != null) { + rightSchemaPathsBuilder_.dispose(); + rightSchemaPathsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder + getRightSchemaPathsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRightSchemaPathsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder + getRightSchemaPathsOrBuilder() { + if (rightSchemaPathsBuilder_ != null) { + return rightSchemaPathsBuilder_.getMessageOrBuilder(); + } else { + return rightSchemaPaths_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } + } + + /** + * + * + *
+       * Output only. An ordered list of fields for the join from the second
+       * table. The size of this list must be the same as `left_schema_paths`.
+       * Each field at index i in this list must correspond to a field at the same
+       * index in the `left_schema_paths` list.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder> + internalGetRightSchemaPathsFieldBuilder() { + if (rightSchemaPathsBuilder_ == null) { + rightSchemaPathsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPaths.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .SchemaPathsOrBuilder>( + getRightSchemaPaths(), getParentForChildren(), isClean()); + rightSchemaPaths_ = null; + } + return rightSchemaPathsBuilder_; + } + + private com.google.protobuf.Internal.IntList sources_ = emptyIntList(); + + private void ensureSourcesIsMutable() { + if (!sources_.isModifiable()) { + sources_ = makeMutableCopy(sources_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the sources. + */ + public java.util.List< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source> + getSourcesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source>( + sources_, sources_converter_); + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of sources. + */ + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source + getSources(int index) { + return sources_converter_.convert(sources_.getInt(index)); + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The sources to set. + * @return This builder for chaining. + */ + public Builder setSources( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The sources to add. + * @return This builder for chaining. + */ + public Builder addSources( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The sources to add. + * @return This builder for chaining. + */ + public Builder addAllSources( + java.lang.Iterable< + ? extends + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + .Source> + values) { + ensureSourcesIsMutable(); + for (com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source value : + values) { + sources_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSources() { + sources_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + public java.util.List getSourcesValueList() { + sources_.makeImmutable(); + return sources_; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + public int getSourcesValue(int index) { + return sources_.getInt(index); + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for sources to set. + * @return This builder for chaining. + */ + public Builder setSourcesValue(int index, int value) { + ensureSourcesIsMutable(); + sources_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for sources to add. + * @return This builder for chaining. + */ + public Builder addSourcesValue(int value) { + ensureSourcesIsMutable(); + sources_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Sources which generated the schema relation edge.
+       * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for sources to add. + * @return This builder for chaining. + */ + public Builder addAllSourcesValue(java.lang.Iterable values) { + ensureSourcesIsMutable(); + for (int value : values) { + sources_.addInt(value); + } + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+       * Output only. The type of relationship between the schema paths.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.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 relationship between the schema paths.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of relationship between the schema paths.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type + getType() { + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type result = + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type.forNumber( + type_); + return result == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The type of relationship between the schema paths.
+       * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of relationship between the schema paths.
        * 
* * - * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public java.util.List - getQueriesBuilderList() { - return internalGetQueriesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.dataplex.v1.DataDocumentationResult.Query, - com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, - com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> - internalGetQueriesFieldBuilder() { - if (queriesBuilder_ == null) { - queriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.dataplex.v1.DataDocumentationResult.Query, - com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, - com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder>( - queries_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - queries_ = null; - } - return queriesBuilder_; + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000008); + type_ = 0; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) } - // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) - private static final com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult(); + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship(); } - public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + public static com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship 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 TableResult parsePartialFrom( + public SchemaRelationship parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1935,17 +7353,17 @@ public TableResult 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.dataplex.v1.DataDocumentationResult.TableResult + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -5307,6 +10725,7 @@ public enum ResultCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATASET_RESULT(7), TABLE_RESULT(8), RESULT_NOT_SET(0); private final int value; @@ -5327,6 +10746,8 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { + case 7: + return DATASET_RESULT; case 8: return TABLE_RESULT; case 0: @@ -5345,13 +10766,74 @@ public ResultCase getResultCase() { return ResultCase.forNumber(resultCase_); } + public static final int DATASET_RESULT_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Output only. Insights for a Dataset resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the datasetResult field is set. + */ + @java.lang.Override + public boolean hasDatasetResult() { + return resultCase_ == 7; + } + + /** + * + * + *
+   * Output only. Insights for a Dataset resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The datasetResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult getDatasetResult() { + if (resultCase_ == 7) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. Insights for a Dataset resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultOrBuilder + getDatasetResultOrBuilder() { + if (resultCase_ == 7) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.getDefaultInstance(); + } + public static final int TABLE_RESULT_FIELD_NUMBER = 8; /** * * *
-   * Output only. Table result for insights.
+   * Output only. Insights for a Table resource.
    * 
* * @@ -5369,7 +10851,7 @@ public boolean hasTableResult() { * * *
-   * Output only. Table result for insights.
+   * Output only. Insights for a Table resource.
    * 
* * @@ -5390,7 +10872,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult getTable * * *
-   * Output only. Table result for insights.
+   * Output only. Insights for a Table resource.
    * 
* * @@ -5420,6 +10902,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resultCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_); + } if (resultCase_ == 8) { output.writeMessage( 8, (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_); @@ -5433,6 +10919,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (resultCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_); + } if (resultCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -5456,6 +10947,9 @@ public boolean equals(final java.lang.Object obj) { if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { + case 7: + if (!getDatasetResult().equals(other.getDatasetResult())) return false; + break; case 8: if (!getTableResult().equals(other.getTableResult())) return false; break; @@ -5474,6 +10968,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (resultCase_) { + case 7: + hash = (37 * hash) + DATASET_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDatasetResult().hashCode(); + break; case 8: hash = (37 * hash) + TABLE_RESULT_FIELD_NUMBER; hash = (53 * hash) + getTableResult().hashCode(); @@ -5621,6 +11119,9 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (datasetResultBuilder_ != null) { + datasetResultBuilder_.clear(); + } if (tableResultBuilder_ != null) { tableResultBuilder_.clear(); } @@ -5668,6 +11169,9 @@ private void buildPartial0(com.google.cloud.dataplex.v1.DataDocumentationResult private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataDocumentationResult result) { result.resultCase_ = resultCase_; result.result_ = this.result_; + if (resultCase_ == 7 && datasetResultBuilder_ != null) { + result.result_ = datasetResultBuilder_.build(); + } if (resultCase_ == 8 && tableResultBuilder_ != null) { result.result_ = tableResultBuilder_.build(); } @@ -5687,6 +11191,11 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataDocumentationResult ot if (other == com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance()) return this; switch (other.getResultCase()) { + case DATASET_RESULT: + { + mergeDatasetResult(other.getDatasetResult()); + break; + } case TABLE_RESULT: { mergeTableResult(other.getTableResult()); @@ -5723,6 +11232,13 @@ public Builder mergeFrom( case 0: done = true; break; + case 58: + { + input.readMessage( + internalGetDatasetResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 7; + break; + } // case 58 case 66: { input.readMessage( @@ -5763,6 +11279,254 @@ public Builder clearResult() { private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultOrBuilder> + datasetResultBuilder_; + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the datasetResult field is set. + */ + @java.lang.Override + public boolean hasDatasetResult() { + return resultCase_ == 7; + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The datasetResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult getDatasetResult() { + if (datasetResultBuilder_ == null) { + if (resultCase_ == 7) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + .getDefaultInstance(); + } else { + if (resultCase_ == 7) { + return datasetResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDatasetResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult value) { + if (datasetResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + datasetResultBuilder_.setMessage(value); + } + resultCase_ = 7; + return this; + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDatasetResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.Builder + builderForValue) { + if (datasetResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + datasetResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 7; + return this; + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDatasetResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult value) { + if (datasetResultBuilder_ == null) { + if (resultCase_ == 7 + && result_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + .getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.newBuilder( + (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 7) { + datasetResultBuilder_.mergeFrom(value); + } else { + datasetResultBuilder_.setMessage(value); + } + } + resultCase_ = 7; + return this; + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDatasetResult() { + if (datasetResultBuilder_ == null) { + if (resultCase_ == 7) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 7) { + resultCase_ = 0; + result_ = null; + } + datasetResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.Builder + getDatasetResultBuilder() { + return internalGetDatasetResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultOrBuilder + getDatasetResultOrBuilder() { + if ((resultCase_ == 7) && (datasetResultBuilder_ != null)) { + return datasetResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 7) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. Insights for a Dataset resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultOrBuilder> + internalGetDatasetResultFieldBuilder() { + if (datasetResultBuilder_ == null) { + if (!(resultCase_ == 7)) { + result_ = + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + .getDefaultInstance(); + } + datasetResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 7; + onChanged(); + return datasetResultBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult, com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder, @@ -5773,7 +11537,7 @@ public Builder clearResult() { * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5791,7 +11555,7 @@ public boolean hasTableResult() { * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5821,7 +11585,7 @@ public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult getTable * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5847,7 +11611,7 @@ public Builder setTableResult( * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5870,7 +11634,7 @@ public Builder setTableResult( * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5908,7 +11672,7 @@ public Builder mergeTableResult( * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5936,7 +11700,7 @@ public Builder clearTableResult() { * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5952,7 +11716,7 @@ public Builder clearTableResult() { * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * @@ -5977,7 +11741,7 @@ public Builder clearTableResult() { * * *
-     * Output only. Table result for insights.
+     * Output only. Insights for a Table resource.
      * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResultOrBuilder.java index 855646da1cdf..84f43f0420fb 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResultOrBuilder.java @@ -30,7 +30,51 @@ public interface DataDocumentationResultOrBuilder * * *
-   * Output only. Table result for insights.
+   * Output only. Insights for a Dataset resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the datasetResult field is set. + */ + boolean hasDatasetResult(); + + /** + * + * + *
+   * Output only. Insights for a Dataset resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The datasetResult. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult getDatasetResult(); + + /** + * + * + *
+   * Output only. Insights for a Dataset resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultOrBuilder + getDatasetResultOrBuilder(); + + /** + * + * + *
+   * Output only. Insights for a Table resource.
    * 
* * @@ -45,7 +89,7 @@ public interface DataDocumentationResultOrBuilder * * *
-   * Output only. Table result for insights.
+   * Output only. Insights for a Table resource.
    * 
* * @@ -60,7 +104,7 @@ public interface DataDocumentationResultOrBuilder * * *
-   * Output only. Table result for insights.
+   * Output only. Insights for a Table resource.
    * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_documentation.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_documentation.proto index 2b9bb49f4a38..340d2cdad184 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_documentation.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_documentation.proto @@ -55,7 +55,21 @@ message DataDocumentationSpec { // The output of a DataDocumentation scan. message DataDocumentationResult { - // Generated metadata about the table. + // Insights for a dataset resource. + message DatasetResult { + // Output only. Generated Dataset description. + string overview = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Relationships suggesting how tables in the dataset are + // related to each other, based on their schema. + repeated SchemaRelationship schema_relationships = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Sample SQL queries for the dataset. + repeated Query queries = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Insights for a table resource. message TableResult { // Output only. The service-qualified full resource name of the cloud // resource. Ex: @@ -73,6 +87,69 @@ message DataDocumentationResult { repeated Query queries = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Details of the relationship between the schema of two resources. + message SchemaRelationship { + // Source which generated the schema relation edge. + enum Source { + // The source of the schema relationship is unspecified. + SOURCE_UNSPECIFIED = 0; + + // The source of the schema relationship is agent. + AGENT = 4; + + // The source of the schema relationship is query history from the source + // system. + QUERY_HISTORY = 5; + + // The source of the schema relationship is table constraints added in + // the source system. + TABLE_CONSTRAINTS = 6; + } + + // The type of relationship. + enum Type { + // The type of the schema relationship is unspecified. + TYPE_UNSPECIFIED = 0; + + // Indicates a join relationship between the schema fields. + SCHEMA_JOIN = 1; + } + + // Represents an ordered set of paths within a table's schema. + message SchemaPaths { + // Output only. The service-qualified full resource name of the table + // Ex: + // //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + string table_fqn = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An ordered set of Paths to fields within the schema of the + // table. For fields nested within a top level field of type record, use + // '.' to separate field names. Examples: Top level field - `top_level` + // Nested field - `top_level.child.sub_field` + repeated string paths = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. An ordered list of fields for the join from the first table. + // The size of this list must be the same as `right_schema_paths`. + // Each field at index i in this list must correspond to a field at the same + // index in the `right_schema_paths` list. + SchemaPaths left_schema_paths = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An ordered list of fields for the join from the second + // table. The size of this list must be the same as `left_schema_paths`. + // Each field at index i in this list must correspond to a field at the same + // index in the `left_schema_paths` list. + SchemaPaths right_schema_paths = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Sources which generated the schema relation edge. + repeated Source sources = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of relationship between the schema paths. + Type type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // A sample SQL query in data documentation. message Query { // Output only. The SQL query string which can be executed. @@ -102,7 +179,11 @@ message DataDocumentationResult { // The result of the data documentation scan. oneof result { - // Output only. Table result for insights. + // Output only. Insights for a Dataset resource. + DatasetResult dataset_result = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Insights for a Table resource. TableResult table_result = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/java-dataproc-metastore/.OwlBot-hermetic.yaml b/java-dataproc-metastore/.OwlBot-hermetic.yaml index 33622235d5f3..f682fd5ad824 100644 --- a/java-dataproc-metastore/.OwlBot-hermetic.yaml +++ b/java-dataproc-metastore/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-dataproc-metastore/samples/snippets/generated" deep-preserve-regex: -- "/java-dataproc-metastore/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/metastore/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index d0740ae802fe..dd638bba5e0a 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.89.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-dataproc/.OwlBot-hermetic.yaml index d9e6c8af096c..0e36cb2965f5 100644 --- a/java-dataproc/.OwlBot-hermetic.yaml +++ b/java-dataproc/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-dataproc/google-.*/src" deep-preserve-regex: -- "/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v.*/it/ITSystemTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/dataproc/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 5c8f9f4e008e..57eb46eb47c6 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.85.0 + 4.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.85.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.87.0" ``` ## Authentication @@ -175,7 +175,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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index 6f8076c7529c..4cbeace67205 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -809,6 +809,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.ClusterConfig$Engine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.ClusterMetrics", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index 2c604e8dd7c4..5211cfaceb4d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -54,6 +54,7 @@ private ClusterConfig(com.google.protobuf.GeneratedMessage.Builder builder) { private ClusterConfig() { clusterType_ = 0; clusterTier_ = 0; + engine_ = 0; configBucket_ = ""; tempBucket_ = ""; initializationActions_ = java.util.Collections.emptyList(); @@ -438,6 +439,175 @@ private ClusterTier(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ClusterConfig.ClusterTier) } + /** + * + * + *
+   * The cluster engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.ClusterConfig.Engine} + */ + public enum Engine implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The engine is not specified. Works the same as ENGINE_DEFAULT.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + ENGINE_UNSPECIFIED(0), + /** + * + * + *
+     * The cluster is a default engine cluster.
+     * 
+ * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + * + * + *
+     * The cluster is a lightning engine cluster.
+     * 
+ * + * LIGHTNING = 2; + */ + LIGHTNING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Engine"); + } + + /** + * + * + *
+     * The engine is not specified. Works the same as ENGINE_DEFAULT.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + public static final int ENGINE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The cluster is a default engine cluster.
+     * 
+ * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + + /** + * + * + *
+     * The cluster is a lightning engine cluster.
+     * 
+ * + * LIGHTNING = 2; + */ + public static final int LIGHTNING_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 Engine 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 Engine forNumber(int value) { + switch (value) { + case 0: + return ENGINE_UNSPECIFIED; + case 1: + return DEFAULT; + case 2: + return LIGHTNING; + 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 Engine findValueByNumber(int number) { + return Engine.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.dataproc.v1.ClusterConfig.getDescriptor().getEnumTypes().get(2); + } + + private static final Engine[] VALUES = values(); + + public static Engine 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 Engine(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ClusterConfig.Engine) + } + private int bitField0_; public static final int CLUSTER_TYPE_FIELD_NUMBER = 27; private int clusterType_ = 0; @@ -525,6 +695,47 @@ public com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier getClusterTier() { : result; } + public static final int ENGINE_FIELD_NUMBER = 30; + private int engine_ = 0; + + /** + * + * + *
+   * Optional. The cluster engine.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+   * Optional. The cluster engine.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterConfig.Engine getEngine() { + com.google.cloud.dataproc.v1.ClusterConfig.Engine result = + com.google.cloud.dataproc.v1.ClusterConfig.Engine.forNumber(engine_); + return result == null ? com.google.cloud.dataproc.v1.ClusterConfig.Engine.UNRECOGNIZED : result; + } + public static final int CONFIG_BUCKET_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1705,6 +1916,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(29, clusterTier_); } + if (engine_ + != com.google.cloud.dataproc.v1.ClusterConfig.Engine.ENGINE_UNSPECIFIED.getNumber()) { + output.writeEnum(30, engine_); + } getUnknownFields().writeTo(output); } @@ -1777,6 +1992,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(29, clusterTier_); } + if (engine_ + != com.google.cloud.dataproc.v1.ClusterConfig.Engine.ENGINE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(30, engine_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1795,6 +2014,7 @@ public boolean equals(final java.lang.Object obj) { if (clusterType_ != other.clusterType_) return false; if (clusterTier_ != other.clusterTier_) return false; + if (engine_ != other.engine_) return false; if (!getConfigBucket().equals(other.getConfigBucket())) return false; if (!getTempBucket().equals(other.getTempBucket())) return false; if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false; @@ -1862,6 +2082,8 @@ public int hashCode() { hash = (53 * hash) + clusterType_; hash = (37 * hash) + CLUSTER_TIER_FIELD_NUMBER; hash = (53 * hash) + clusterTier_; + hash = (37 * hash) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + engine_; hash = (37 * hash) + CONFIG_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getConfigBucket().hashCode(); hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER; @@ -2086,6 +2308,7 @@ public Builder clear() { bitField0_ = 0; clusterType_ = 0; clusterTier_ = 0; + engine_ = 0; configBucket_ = ""; tempBucket_ = ""; gceClusterConfig_ = null; @@ -2119,7 +2342,7 @@ public Builder clear() { initializationActions_ = null; initializationActionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -2161,7 +2384,7 @@ public Builder clear() { auxiliaryNodeGroups_ = null; auxiliaryNodeGroupsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); return this; } @@ -2199,18 +2422,18 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ClusterConfig result) { if (initializationActionsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } result.initializationActions_ = initializationActions_; } else { result.initializationActions_ = initializationActionsBuilder_.build(); } if (auxiliaryNodeGroupsBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { auxiliaryNodeGroups_ = java.util.Collections.unmodifiableList(auxiliaryNodeGroups_); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); } result.auxiliaryNodeGroups_ = auxiliaryNodeGroups_; } else { @@ -2227,72 +2450,75 @@ private void buildPartial0(com.google.cloud.dataproc.v1.ClusterConfig result) { result.clusterTier_ = clusterTier_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.configBucket_ = configBucket_; + result.engine_ = engine_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.configBucket_ = configBucket_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.tempBucket_ = tempBucket_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.gceClusterConfig_ = gceClusterConfigBuilder_ == null ? gceClusterConfig_ : gceClusterConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.masterConfig_ = masterConfigBuilder_ == null ? masterConfig_ : masterConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.workerConfig_ = workerConfigBuilder_ == null ? workerConfig_ : workerConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_ == null ? secondaryWorkerConfig_ : secondaryWorkerConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.softwareConfig_ = softwareConfigBuilder_ == null ? softwareConfig_ : softwareConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.autoscalingConfig_ = autoscalingConfigBuilder_ == null ? autoscalingConfig_ : autoscalingConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.securityConfig_ = securityConfigBuilder_ == null ? securityConfig_ : securityConfigBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.lifecycleConfig_ = lifecycleConfigBuilder_ == null ? lifecycleConfig_ : lifecycleConfigBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.endpointConfig_ = endpointConfigBuilder_ == null ? endpointConfig_ : endpointConfigBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.metastoreConfig_ = metastoreConfigBuilder_ == null ? metastoreConfig_ : metastoreConfigBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.dataprocMetricConfig_ = dataprocMetricConfigBuilder_ == null ? dataprocMetricConfig_ @@ -2320,14 +2546,17 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other.clusterTier_ != 0) { setClusterTierValue(other.getClusterTierValue()); } + if (other.engine_ != 0) { + setEngineValue(other.getEngineValue()); + } if (!other.getConfigBucket().isEmpty()) { configBucket_ = other.configBucket_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getTempBucket().isEmpty()) { tempBucket_ = other.tempBucket_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasGceClusterConfig()) { @@ -2349,7 +2578,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (!other.initializationActions_.isEmpty()) { if (initializationActions_.isEmpty()) { initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureInitializationActionsIsMutable(); initializationActions_.addAll(other.initializationActions_); @@ -2362,7 +2591,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { initializationActionsBuilder_.dispose(); initializationActionsBuilder_ = null; initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); initializationActionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetInitializationActionsFieldBuilder() @@ -2397,7 +2626,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (!other.auxiliaryNodeGroups_.isEmpty()) { if (auxiliaryNodeGroups_.isEmpty()) { auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); } else { ensureAuxiliaryNodeGroupsIsMutable(); auxiliaryNodeGroups_.addAll(other.auxiliaryNodeGroups_); @@ -2410,7 +2639,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { auxiliaryNodeGroupsBuilder_.dispose(); auxiliaryNodeGroupsBuilder_ = null; auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); auxiliaryNodeGroupsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAuxiliaryNodeGroupsFieldBuilder() @@ -2449,34 +2678,34 @@ public Builder mergeFrom( case 10: { configBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { tempBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 66: { input.readMessage( internalGetGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 66 case 74: { input.readMessage( internalGetMasterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 74 case 82: { input.readMessage( internalGetWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 82 case 90: @@ -2497,63 +2726,63 @@ public Builder mergeFrom( { input.readMessage( internalGetSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 98 case 106: { input.readMessage( internalGetSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 106 case 122: { input.readMessage( internalGetEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 122 case 130: { input.readMessage( internalGetSecurityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 130 case 138: { input.readMessage( internalGetLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 138 case 146: { input.readMessage( internalGetAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 146 case 154: { input.readMessage( internalGetEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 154 case 162: { input.readMessage( internalGetMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 162 case 186: { input.readMessage( internalGetDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 186 case 202: @@ -2582,6 +2811,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 232 + case 240: + { + engine_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 240 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2815,6 +3050,113 @@ public Builder clearClusterTier() { return this; } + private int engine_ = 0; + + /** + * + * + *
+     * Optional. The cluster engine.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+     * Optional. The cluster engine.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineValue(int value) { + engine_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The cluster engine.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterConfig.Engine getEngine() { + com.google.cloud.dataproc.v1.ClusterConfig.Engine result = + com.google.cloud.dataproc.v1.ClusterConfig.Engine.forNumber(engine_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterConfig.Engine.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The cluster engine.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine(com.google.cloud.dataproc.v1.ClusterConfig.Engine value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + engine_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The cluster engine.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEngine() { + bitField0_ = (bitField0_ & ~0x00000004); + engine_ = 0; + onChanged(); + return this; + } + private java.lang.Object configBucket_ = ""; /** @@ -2910,7 +3252,7 @@ public Builder setConfigBucket(java.lang.String value) { throw new NullPointerException(); } configBucket_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2938,7 +3280,7 @@ public Builder setConfigBucket(java.lang.String value) { */ public Builder clearConfigBucket() { configBucket_ = getDefaultInstance().getConfigBucket(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2971,7 +3313,7 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); configBucket_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3071,7 +3413,7 @@ public Builder setTempBucket(java.lang.String value) { throw new NullPointerException(); } tempBucket_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3099,7 +3441,7 @@ public Builder setTempBucket(java.lang.String value) { */ public Builder clearTempBucket() { tempBucket_ = getDefaultInstance().getTempBucket(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3132,7 +3474,7 @@ public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); tempBucket_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3159,7 +3501,7 @@ public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { * @return Whether the gceClusterConfig field is set. */ public boolean hasGceClusterConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -3207,7 +3549,7 @@ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig } else { gceClusterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3231,7 +3573,7 @@ public Builder setGceClusterConfig( } else { gceClusterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3250,7 +3592,7 @@ public Builder setGceClusterConfig( */ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { if (gceClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && gceClusterConfig_ != null && gceClusterConfig_ != com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()) { @@ -3262,7 +3604,7 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf gceClusterConfigBuilder_.mergeFrom(value); } if (gceClusterConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -3281,7 +3623,7 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf *
*/ public Builder clearGceClusterConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); gceClusterConfig_ = null; if (gceClusterConfigBuilder_ != null) { gceClusterConfigBuilder_.dispose(); @@ -3304,7 +3646,7 @@ public Builder clearGceClusterConfig() { *
*/ public com.google.cloud.dataproc.v1.GceClusterConfig.Builder getGceClusterConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetGceClusterConfigFieldBuilder().getBuilder(); } @@ -3382,7 +3724,7 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi * @return Whether the masterConfig field is set. */ public boolean hasMasterConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3430,7 +3772,7 @@ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig } else { masterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3454,7 +3796,7 @@ public Builder setMasterConfig( } else { masterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3473,7 +3815,7 @@ public Builder setMasterConfig( */ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (masterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && masterConfig_ != null && masterConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3485,7 +3827,7 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi masterConfigBuilder_.mergeFrom(value); } if (masterConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -3504,7 +3846,7 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi *
*/ public Builder clearMasterConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); masterConfig_ = null; if (masterConfigBuilder_ != null) { masterConfigBuilder_.dispose(); @@ -3527,7 +3869,7 @@ public Builder clearMasterConfig() { *
*/ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetMasterConfigFieldBuilder().getBuilder(); } @@ -3605,7 +3947,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig * @return Whether the workerConfig field is set. */ public boolean hasWorkerConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3653,7 +3995,7 @@ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig } else { workerConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3677,7 +4019,7 @@ public Builder setWorkerConfig( } else { workerConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3696,7 +4038,7 @@ public Builder setWorkerConfig( */ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (workerConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && workerConfig_ != null && workerConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3708,7 +4050,7 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi workerConfigBuilder_.mergeFrom(value); } if (workerConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -3727,7 +4069,7 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi *
*/ public Builder clearWorkerConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); workerConfig_ = null; if (workerConfigBuilder_ != null) { workerConfigBuilder_.dispose(); @@ -3750,7 +4092,7 @@ public Builder clearWorkerConfig() { *
*/ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetWorkerConfigFieldBuilder().getBuilder(); } @@ -3828,7 +4170,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig * @return Whether the secondaryWorkerConfig field is set. */ public boolean hasSecondaryWorkerConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3877,7 +4219,7 @@ public Builder setSecondaryWorkerConfig( } else { secondaryWorkerConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3901,7 +4243,7 @@ public Builder setSecondaryWorkerConfig( } else { secondaryWorkerConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3921,7 +4263,7 @@ public Builder setSecondaryWorkerConfig( public Builder mergeSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (secondaryWorkerConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && secondaryWorkerConfig_ != null && secondaryWorkerConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3933,7 +4275,7 @@ public Builder mergeSecondaryWorkerConfig( secondaryWorkerConfigBuilder_.mergeFrom(value); } if (secondaryWorkerConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3952,7 +4294,7 @@ public Builder mergeSecondaryWorkerConfig( *
*/ public Builder clearSecondaryWorkerConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); secondaryWorkerConfig_ = null; if (secondaryWorkerConfigBuilder_ != null) { secondaryWorkerConfigBuilder_.dispose(); @@ -3976,7 +4318,7 @@ public Builder clearSecondaryWorkerConfig() { */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getSecondaryWorkerConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetSecondaryWorkerConfigFieldBuilder().getBuilder(); } @@ -4054,7 +4396,7 @@ public Builder clearSecondaryWorkerConfig() { * @return Whether the softwareConfig field is set. */ public boolean hasSoftwareConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -4100,7 +4442,7 @@ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig val } else { softwareConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4123,7 +4465,7 @@ public Builder setSoftwareConfig( } else { softwareConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4141,7 +4483,7 @@ public Builder setSoftwareConfig( */ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { if (softwareConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && softwareConfig_ != null && softwareConfig_ != com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()) { @@ -4153,7 +4495,7 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v softwareConfigBuilder_.mergeFrom(value); } if (softwareConfig_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -4171,7 +4513,7 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v *
*/ public Builder clearSoftwareConfig() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); softwareConfig_ = null; if (softwareConfigBuilder_ != null) { softwareConfigBuilder_.dispose(); @@ -4193,7 +4535,7 @@ public Builder clearSoftwareConfig() { *
*/ public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetSoftwareConfigFieldBuilder().getBuilder(); } @@ -4251,11 +4593,11 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB initializationActions_ = java.util.Collections.emptyList(); private void ensureInitializationActionsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { initializationActions_ = new java.util.ArrayList( initializationActions_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } @@ -4641,7 +4983,7 @@ public Builder addAllInitializationActions( public Builder clearInitializationActions() { if (initializationActionsBuilder_ == null) { initializationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { initializationActionsBuilder_.clear(); @@ -4874,7 +5216,7 @@ public Builder removeInitializationActions(int index) { com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( initializationActions_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); initializationActions_ = null; @@ -4903,7 +5245,7 @@ public Builder removeInitializationActions(int index) { * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4949,7 +5291,7 @@ public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig } else { encryptionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4972,7 +5314,7 @@ public Builder setEncryptionConfig( } else { encryptionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4990,7 +5332,7 @@ public Builder setEncryptionConfig( */ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && encryptionConfig_ != null && encryptionConfig_ != com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()) { @@ -5002,7 +5344,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf encryptionConfigBuilder_.mergeFrom(value); } if (encryptionConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -5020,7 +5362,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf * */ public Builder clearEncryptionConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -5042,7 +5384,7 @@ public Builder clearEncryptionConfig() { * */ public com.google.cloud.dataproc.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetEncryptionConfigFieldBuilder().getBuilder(); } @@ -5118,7 +5460,7 @@ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfi * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -5166,7 +5508,7 @@ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConf } else { autoscalingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5190,7 +5532,7 @@ public Builder setAutoscalingConfig( } else { autoscalingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5209,7 +5551,7 @@ public Builder setAutoscalingConfig( */ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && autoscalingConfig_ != null && autoscalingConfig_ != com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()) { @@ -5221,7 +5563,7 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo autoscalingConfigBuilder_.mergeFrom(value); } if (autoscalingConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5240,7 +5582,7 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo * */ public Builder clearAutoscalingConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); autoscalingConfig_ = null; if (autoscalingConfigBuilder_ != null) { autoscalingConfigBuilder_.dispose(); @@ -5263,7 +5605,7 @@ public Builder clearAutoscalingConfig() { * */ public com.google.cloud.dataproc.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetAutoscalingConfigFieldBuilder().getBuilder(); } @@ -5340,7 +5682,7 @@ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingCon * @return Whether the securityConfig field is set. */ public boolean hasSecurityConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5386,7 +5728,7 @@ public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig val } else { securityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5409,7 +5751,7 @@ public Builder setSecurityConfig( } else { securityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5427,7 +5769,7 @@ public Builder setSecurityConfig( */ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { if (securityConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && securityConfig_ != null && securityConfig_ != com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()) { @@ -5439,7 +5781,7 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v securityConfigBuilder_.mergeFrom(value); } if (securityConfig_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5457,7 +5799,7 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v * */ public Builder clearSecurityConfig() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); securityConfig_ = null; if (securityConfigBuilder_ != null) { securityConfigBuilder_.dispose(); @@ -5479,7 +5821,7 @@ public Builder clearSecurityConfig() { * */ public com.google.cloud.dataproc.v1.SecurityConfig.Builder getSecurityConfigBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetSecurityConfigFieldBuilder().getBuilder(); } @@ -5554,7 +5896,7 @@ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrB * @return Whether the lifecycleConfig field is set. */ public boolean hasLifecycleConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5600,7 +5942,7 @@ public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig v } else { lifecycleConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5623,7 +5965,7 @@ public Builder setLifecycleConfig( } else { lifecycleConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5641,7 +5983,7 @@ public Builder setLifecycleConfig( */ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { if (lifecycleConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && lifecycleConfig_ != null && lifecycleConfig_ != com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()) { @@ -5653,7 +5995,7 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfigBuilder_.mergeFrom(value); } if (lifecycleConfig_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5671,7 +6013,7 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig * */ public Builder clearLifecycleConfig() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); lifecycleConfig_ = null; if (lifecycleConfigBuilder_ != null) { lifecycleConfigBuilder_.dispose(); @@ -5693,7 +6035,7 @@ public Builder clearLifecycleConfig() { * */ public com.google.cloud.dataproc.v1.LifecycleConfig.Builder getLifecycleConfigBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetLifecycleConfigFieldBuilder().getBuilder(); } @@ -5768,7 +6110,7 @@ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigO * @return Whether the endpointConfig field is set. */ public boolean hasEndpointConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5814,7 +6156,7 @@ public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig val } else { endpointConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5837,7 +6179,7 @@ public Builder setEndpointConfig( } else { endpointConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5855,7 +6197,7 @@ public Builder setEndpointConfig( */ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { if (endpointConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && endpointConfig_ != null && endpointConfig_ != com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()) { @@ -5867,7 +6209,7 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v endpointConfigBuilder_.mergeFrom(value); } if (endpointConfig_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5885,7 +6227,7 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v * */ public Builder clearEndpointConfig() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); endpointConfig_ = null; if (endpointConfigBuilder_ != null) { endpointConfigBuilder_.dispose(); @@ -5907,7 +6249,7 @@ public Builder clearEndpointConfig() { * */ public com.google.cloud.dataproc.v1.EndpointConfig.Builder getEndpointConfigBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetEndpointConfigFieldBuilder().getBuilder(); } @@ -5982,7 +6324,7 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB * @return Whether the metastoreConfig field is set. */ public boolean hasMetastoreConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6028,7 +6370,7 @@ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig v } else { metastoreConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6051,7 +6393,7 @@ public Builder setMetastoreConfig( } else { metastoreConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6069,7 +6411,7 @@ public Builder setMetastoreConfig( */ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && metastoreConfig_ != null && metastoreConfig_ != com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()) { @@ -6081,7 +6423,7 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfigBuilder_.mergeFrom(value); } if (metastoreConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -6099,7 +6441,7 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig * */ public Builder clearMetastoreConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); metastoreConfig_ = null; if (metastoreConfigBuilder_ != null) { metastoreConfigBuilder_.dispose(); @@ -6121,7 +6463,7 @@ public Builder clearMetastoreConfig() { * */ public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetMetastoreConfigFieldBuilder().getBuilder(); } @@ -6196,7 +6538,7 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO * @return Whether the dataprocMetricConfig field is set. */ public boolean hasDataprocMetricConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -6243,7 +6585,7 @@ public Builder setDataprocMetricConfig( } else { dataprocMetricConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6266,7 +6608,7 @@ public Builder setDataprocMetricConfig( } else { dataprocMetricConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6285,7 +6627,7 @@ public Builder setDataprocMetricConfig( public Builder mergeDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig value) { if (dataprocMetricConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && dataprocMetricConfig_ != null && dataprocMetricConfig_ != com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) { @@ -6297,7 +6639,7 @@ public Builder mergeDataprocMetricConfig( dataprocMetricConfigBuilder_.mergeFrom(value); } if (dataprocMetricConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -6315,7 +6657,7 @@ public Builder mergeDataprocMetricConfig( * */ public Builder clearDataprocMetricConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); dataprocMetricConfig_ = null; if (dataprocMetricConfigBuilder_ != null) { dataprocMetricConfigBuilder_.dispose(); @@ -6338,7 +6680,7 @@ public Builder clearDataprocMetricConfig() { */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder getDataprocMetricConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetDataprocMetricConfigFieldBuilder().getBuilder(); } @@ -6397,11 +6739,11 @@ public Builder clearDataprocMetricConfig() { java.util.Collections.emptyList(); private void ensureAuxiliaryNodeGroupsIsMutable() { - if (!((bitField0_ & 0x00020000) != 0)) { + if (!((bitField0_ & 0x00040000) != 0)) { auxiliaryNodeGroups_ = new java.util.ArrayList( auxiliaryNodeGroups_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } } @@ -6652,7 +6994,7 @@ public Builder addAllAuxiliaryNodeGroups( public Builder clearAuxiliaryNodeGroups() { if (auxiliaryNodeGroupsBuilder_ == null) { auxiliaryNodeGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { auxiliaryNodeGroupsBuilder_.clear(); @@ -6799,7 +7141,7 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeG com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>( auxiliaryNodeGroups_, - ((bitField0_ & 0x00020000) != 0), + ((bitField0_ & 0x00040000) != 0), getParentForChildren(), isClean()); auxiliaryNodeGroups_ = null; diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index a1b2294e2353..293d6a193db0 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -86,6 +86,36 @@ public interface ClusterConfigOrBuilder */ com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier getClusterTier(); + /** + * + * + *
+   * Optional. The cluster engine.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for engine. + */ + int getEngineValue(); + + /** + * + * + *
+   * Optional. The cluster engine.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.Engine engine = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engine. + */ + com.google.cloud.dataproc.v1.ClusterConfig.Engine getEngine(); + /** * * diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index e47d4f05559c..47f7b52a582d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -291,34 +291,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.dataproc.v1.ClusterMetricsB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\341\013\n\r" + + "\005value\030\002 \001(\t:\0028\001\"\344\014\n\r" + "ClusterConfig\022N\n" + "\014cluster_type\030\033 \001(\01623" + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTypeB\003\340A\001\022N\n" + "\014cluster_tier\030\035 \001(\01623" - + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTierB\003\340A\001\022\032\n\r" + + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTierB\003\340A\001\022C\n" + + "\006engine\030\036 \001(\0162..googl" + + "e.cloud.dataproc.v1.ClusterConfig.EngineB\003\340A\001\022\032\n\r" + "config_bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013temp_bucket\030\002 \001(\tB\003\340A\001\022K\n" + "\022gce_cluster_config\030\010" + " \001(\0132*.google.cloud.dataproc.v1.GceClusterConfigB\003\340A\001\022I\n\r" - + "master_config\030\t" - + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022I\n\r" + + "master_config\030\t \001(\0132" + + "-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022I\n\r" + "worker_config\030\n" + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022S\n" - + "\027secondary_worker_config\030\014" - + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022F\n" + + "\027secondary_worker_config\030\014 \001(\0132" + + "-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022F\n" + "\017software_config\030\r" + " \001(\0132(.google.cloud.dataproc.v1.SoftwareConfigB\003\340A\001\022W\n" - + "\026initialization_actions\030\013" - + " \003(\01322.google.cloud.dataproc.v1.NodeInitializationActionB\003\340A\001\022J\n" - + "\021encryption_config\030\017" - + " \001(\0132*.google.cloud.dataproc.v1.EncryptionConfigB\003\340A\001\022L\n" - + "\022autoscaling_config\030\022" - + " \001(\0132+.google.cloud.dataproc.v1.AutoscalingConfigB\003\340A\001\022F\n" - + "\017security_config\030\020 \001" - + "(\0132(.google.cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" - + "\020lifecycle_config\030\021 \001(\0132).go" - + "ogle.cloud.dataproc.v1.LifecycleConfigB\003\340A\001\022F\n" + + "\026initialization_actions\030\013 \003(\01322.go" + + "ogle.cloud.dataproc.v1.NodeInitializationActionB\003\340A\001\022J\n" + + "\021encryption_config\030\017 \001(\0132" + + "*.google.cloud.dataproc.v1.EncryptionConfigB\003\340A\001\022L\n" + + "\022autoscaling_config\030\022 \001(\0132+.g" + + "oogle.cloud.dataproc.v1.AutoscalingConfigB\003\340A\001\022F\n" + + "\017security_config\030\020 \001(\0132(.google" + + ".cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" + + "\020lifecycle_config\030\021" + + " \001(\0132).google.cloud.dataproc.v1.LifecycleConfigB\003\340A\001\022F\n" + "\017endpoint_config\030\023" + " \001(\0132(.google.cloud.dataproc.v1.EndpointConfigB\003\340A\001\022H\n" + "\020metastore_config\030\024" @@ -335,19 +337,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ClusterTier\022\034\n" + "\030CLUSTER_TIER_UNSPECIFIED\020\000\022\031\n" + "\025CLUSTER_TIER_STANDARD\020\001\022\030\n" - + "\024CLUSTER_TIER_PREMIUM\020\002\"\204\002\n" + + "\024CLUSTER_TIER_PREMIUM\020\002\"<\n" + + "\006Engine\022\026\n" + + "\022ENGINE_UNSPECIFIED\020\000\022\013\n" + + "\007DEFAULT\020\001\022\r\n" + + "\tLIGHTNING\020\002\"\204\002\n" + "\024VirtualClusterConfig\022\033\n" + "\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n" - + "\031kubernetes_cluster_config\030\006 \001(\01321.go" - + "ogle.cloud.dataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" + + "\031kubernetes_cluster_config\030\006" + + " \001(\01321.google.cloud.dataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" + "\031auxiliary_services_config\030\007" + " \001(\01321.google.cloud.dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + "\025infrastructure_config\"\301\001\n" + "\027AuxiliaryServicesConfig\022H\n" - + "\020metastore_config\030\001" - + " \001(\0132).google.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" - + "\033spark_history_server_config\030\002 \001(\01322.google.cl" - + "oud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + + "\020metastore_config\030\001 \001(\0132).goo" + + "gle.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" + + "\033spark_history_server_config\030\002 \001(\0132" + + "2.google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + "\016EndpointConfig\022P\n\n" + "http_ports\030\001" + " \003(\01327.google.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" @@ -366,21 +372,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n" + "\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\"\n" + "\020internal_ip_only\030\007 \001(\010B\003\340A\001H\000\210\001\001\022k\n" - + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.dataproc.v1.GceClus" - + "terConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.dataproc" + + ".v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + "\017service_account\030\010 \001(\tB\003\340A\001\022#\n" + "\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n" + "\004tags\030\004 \003(\t\022O\n" - + "\010metadata\030\005 \003(\01328.google.cloud.datapro" - + "c.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" - + "\024reservation_affinity\030\013 \001(\0132-.google." - + "cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + + "\010metadata\030\005 \003(\01328.google.cl" + + "oud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" + + "\024reservation_affinity\030\013 \001(" + + "\0132-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + "\023node_group_affinity\030\r" + " \001(\0132+.google.cloud.dataproc.v1.NodeGroupAffinityB\003\340A\001\022W\n" - + "\030shielded_instance_config\030\016 \001(\01320.go" - + "ogle.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" - + "\034confidential_instance_config\030\017" - + " \001(\01324.google.cloud.dataproc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\r" + + "\030shielded_instance_config\030\016" + + " \001(\01320.google.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" + + "\034confidential_instance_config\030\017 \001(\01324.google.cloud.datap" + + "roc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\203\001\n" @@ -405,26 +411,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023InstanceGroupConfig\022\032\n\r" + "num_instances\030\001 \001(\005B\003\340A\001\022\033\n" + "\016instance_names\030\002 \003(\tB\003\340A\003\022M\n" - + "\023instance_references\030\013 \003(\0132+." - + "google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + + "\023instance_references\030\013" + + " \003(\0132+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + "\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n" + "\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n" - + "\013disk_config\030\005 " - + "\001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + + "\013disk_config\030\005" + + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + "\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n" + "\016preemptibility\030\n" - + " \001(\0162<.google.cloud.datap" - + "roc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" - + "\024managed_group_config\030\007 \001(\0132,.g" - + "oogle.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" - + "\014accelerators\030\010 \003(\0132+.google.c" - + "loud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + + " \001(\0162<.google." + + "cloud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + + "\024managed_group_config\030\007" + + " \001(\0132,.google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" + + "\014accelerators\030\010 \003(\013" + + "2+.google.cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + "\020min_cpu_platform\030\t \001(\tB\003\340A\001\022\036\n" + "\021min_num_instances\030\014 \001(\005B\003\340A\001\022]\n" + "\033instance_flexibility_policy\030\r" + " \001(\01323.google.cloud.dataproc.v1.InstanceFlexibilityPolicyB\003\340A\001\022D\n" - + "\016startup_config\030\016" - + " \001(\0132\'.google.cloud.dataproc.v1.StartupConfigB\003\340A\001\"`\n" + + "\016startup_config\030\016 \001(\0132\'.googl" + + "e.cloud.dataproc.v1.StartupConfigB\003\340A\001\"`\n" + "\016Preemptibility\022\036\n" + "\032PREEMPTIBILITY_UNSPECIFIED\020\000\022\023\n" + "\017NON_PREEMPTIBLE\020\001\022\017\n" @@ -444,12 +450,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\345\005\n" + "\031InstanceFlexibilityPolicy\022m\n" - + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud.d" - + "ataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" - + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.dataproc." - + "v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" - + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Insta" - + "nceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + + "\026provisioning_model_mix\030\001 \001(\0132H.goo" + + "gle.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" + + "\027instance_selection_list\030\002 \003(\0132E.google.clou" + + "d.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" + + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.datapr" + + "oc.v1.InstanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + "\024ProvisioningModelMix\022(\n" + "\026standard_capacity_base\030\001 \001(\005B\003\340A\001H\000\210\001\001\0226\n" + "$standard_capacity_percent_above_base\030\002" @@ -483,32 +489,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "node_group_id\030\002 \001(\tB\003\340A\001\"\275\003\n" + "\tNodeGroup\022\014\n" + "\004name\030\001 \001(\t\022<\n" - + "\005roles\030\002 " - + "\003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" - + "\021node_group_config\030\003 \001(\0132-." - + "google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004 \003(\0132/.google.cloud" - + ".dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\005roles\030\002" + + " \003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" + + "\021node_group_config\030\003" + + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" + + "\006labels\030\004 \003(\0132/.g" + + "oogle.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/regions/{re" - + "gion}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/" + + "regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\326\003\n\r" + "ClusterStatus\022A\n" - + "\005state\030\001 \001(\0162-" - + ".google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + + "\005state\030\001" + + " \001(\0162-.google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + "\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n" + "\020state_start_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n" - + "\010substate\030\004 \001(\01620.google" - + ".cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + + "\010substate\030\004 \001" + + "(\01620.google.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + "\005State\022\013\n" + "\007UNKNOWN\020\000\022\014\n" + "\010CREATING\020\001\022\013\n" @@ -527,10 +534,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tUNHEALTHY\020\001\022\020\n" + "\014STALE_STATUS\020\002\"\240\001\n" + "\016SecurityConfig\022F\n" - + "\017kerberos_config\030\001 \001" - + "(\0132(.google.cloud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n" - + "\017identity_config\030\002 \001(\0132(.goo" - + "gle.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + + "\017kerberos_config\030\001" + + " \001(\0132(.google.cloud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n" + + "\017identity_config\030\002" + + " \001(\0132(.google.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + "\016KerberosConfig\022\034\n" + "\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n" + "\033root_principal_password_uri\030\002 \001(\tB\003\340A\001\022\030\n" @@ -550,51 +557,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\0132G.google.c" - + "loud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\013" + + "2G.google.cloud.dataproc.v1.IdentityConf" + + "ig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002 \003(\013" - + "28.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "properties\030\002" + + " \003(\01328.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + "\023optional_components\030\003" + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\203\002\n" + + "\005value\030\002 \001(\t:\0028\001\"\272\003\n" + "\017LifecycleConfig\0227\n" + "\017idle_delete_ttl\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022;\n" + "\020auto_delete_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n" + "\017auto_delete_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0228\n" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0225\n\r" + + "idle_stop_ttl\030\005 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0229\n" + + "\016auto_stop_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\001\0227\n\r" + + "auto_stop_ttl\030\007" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\001\0228\n" + "\017idle_start_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\005\n" - + "\003ttl\"_\n" + + "\003ttlB\n\n" + + "\010stop_ttl\"_\n" + "\017MetastoreConfig\022L\n" + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001 \003(\01329.google.cloud" - + ".dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002 \003(\01329.google.clou" - + "d.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001 \003(\01329.google.cloud.datap" + + "roc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002 \003(\01329.google.cloud.data" + + "proc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\0322\n" + "\020YarnMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001 \003(\01325.google" - + ".cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001 \003(\01325.google.cloud" + + ".dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001" - + " \001(\0162;.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001 \001(\0162" + + ";.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -612,8 +625,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007cluster\030\002" + " \001(\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" - + " action_on_failed_primary_workers\030\005 \001(\016" - + "2\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + + " action_on_failed_primary_workers\030\005 \001(\0162\'.goo" + + "gle.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + "\024UpdateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\005 \001(\tB\003\340A\002\022\031\n" @@ -630,7 +643,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\n" + "request_id\030\005 \001(\tB\003\340A\001\"\222\001\n" - + "\023StartClusterRequest\022\027\n\n" + + "\023StartClusterRequest\022\027\n" + + "\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\002 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n" @@ -661,14 +675,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005 \001(\0162>.google.cloud.datapr" - + "oc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005 \001(\0162>.google.cloud.dataproc.v1." + + "DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" + " \003(\tB\003\340A\001\022!\n" - + "\024yarn_application_ids\030\013 \003(\tB\003\340A\001\"g\n" - + "\r" + + "\024yarn_application_ids\030\013 \003(\tB\003\340A\001\"g\n\r" + "TarballAccess\022\036\n" + "\032TARBALL_ACCESS_UNSPECIFIED\020\000\022\030\n" + "\024GOOGLE_CLOUD_SUPPORT\020\001\022\034\n" @@ -686,51 +699,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" + "\021ClusterController\022\200\002\n\r" - + "CreateCluster\022..google.cloud.dataproc.v1.CreateCl" - + "usterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A\031project_" - + "id,region,cluster\202\323\344\223\002>\"3/v1/projects/{p" - + "roject_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..google.cloud.d" - + "ataproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperation" - + "Metadata\332A2project_id,region,cluster_nam" - + "e,cluster,update_mask\202\323\344\223\002M2B/v1/project" - + "s/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.google.cloud.dataproc.v1.StopClusterR" - + "equest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "CreateCluster\022..google.cloud.dataproc.v1.CreateClusterR" + + "equest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + "\007Cluster\0221google.cloud.dataproc.v1.C" - + "lusterOperationMetadata\202\323\344\223\002L\"G/v1/proje" - + "cts/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google.cloud.dataproc.v1.StartClust" - + "erRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v" - + "1.ClusterOperationMetadata\202\323\344\223\002M\"H/v1/pr" - + "ojects/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..google.cloud.dataproc.v1.Delet" - + "eClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMe" - + "tadata\332A\036project_id,region,cluster_name\202" - + "\323\344\223\002D*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetC" - + "lusterRequest\032!.google.cloud.dataproc.v1" - + ".Cluster\"k\332A\036project_id,region,cluster_n" - + "ame\202\323\344\223\002D\022B/v1/projects/{project_id}/reg" - + "ions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v" - + "1.ListClustersRequest\032..google.cloud.dat" - + "aproc.v1.ListClustersResponse\"j\332A\021projec" - + "t_id,region\332A\030project_id,region,filter\202\323" - + "\344\223\0025\0223/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google.cloud.dataproc.v1.DiagnoseCluster" - + "Request\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332" - + "A\036project_id,region,cluster_name\202\323\344\223\002P\"K" - + "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\001*\032K" - + "\312A\027dataproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + + "lusterOperationMetadata\332A\031project_id,reg" + + "ion,cluster\202\323\344\223\002>\"3/v1/projects/{project" + + "_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..google.cloud.datapro" + + "c.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetada" + + "ta\332A2project_id,region,cluster_name,clus" + + "ter,update_mask\202\323\344\223\002M2B/v1/projects/{pro" + + "ject_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.goo" + + "gle.cloud.dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.Cluster" + + "OperationMetadata\202\323\344\223\002L\"G/v1/projects/{p" + + "roject_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google.cloud.dataproc.v1.StartClusterRequ" + + "est\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.Clus" + + "terOperationMetadata\202\323\344\223\002M\"H/v1/projects" + + "/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteClust" + + "erRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMetadata" + + "\332A\036project_id,region,cluster_name\202\323\344\223\002D*" + + "B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetCluster" + + "Request\032!.google.cloud.dataproc.v1.Clust" + + "er\"k\332A\036project_id,region,cluster_name\202\323\344" + + "\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" + + "\014ListClusters\022-.google.cloud.dataproc.v1.List" + + "ClustersRequest\032..google.cloud.dataproc." + + "v1.ListClustersResponse\"j\332A\021project_id,r" + + "egion\332A\030project_id,region,filter\202\323\344\223\0025\0223" + + "/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" + + "\017DiagnoseCluster\0220.google" + + ".cloud.dataproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" + + "\026DiagnoseClusterResults\0221google.cloud.dat" + + "aproc.v1.ClusterOperationMetadata\332A\036proj" + + "ect_id,region,cluster_name\202\323\344\223\002P\"K/v1/pr" + + "ojects/{project_id}/regions/{region}/clu" + + "sters/{cluster_name}:diagnose:\001*\032K\312A\027dat" + + "aproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/ap" - + "iv1/dataprocpb;dataprocpbb\006proto3" + + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/da" + + "taprocpb;dataprocpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -781,6 +796,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ClusterType", "ClusterTier", + "Engine", "ConfigBucket", "TempBucket", "GceClusterConfig", @@ -1110,7 +1126,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, new java.lang.String[] { - "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", + "IdleDeleteTtl", + "AutoDeleteTime", + "AutoDeleteTtl", + "IdleStopTtl", + "AutoStopTime", + "AutoStopTtl", + "IdleStartTime", + "Ttl", + "StopTtl", }); internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = getDescriptor().getMessageType(27); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java index f7adca5d0a88..a3c13a6a723f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java @@ -119,6 +119,56 @@ public TtlCase getTtlCase() { return TtlCase.forNumber(ttlCase_); } + private int stopTtlCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object stopTtl_; + + public enum StopTtlCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUTO_STOP_TIME(6), + AUTO_STOP_TTL(7), + STOPTTL_NOT_SET(0); + private final int value; + + private StopTtlCase(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 StopTtlCase valueOf(int value) { + return forNumber(value); + } + + public static StopTtlCase forNumber(int value) { + switch (value) { + case 6: + return AUTO_STOP_TIME; + case 7: + return AUTO_STOP_TTL; + case 0: + return STOPTTL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StopTtlCase getStopTtlCase() { + return StopTtlCase.forNumber(stopTtlCase_); + } + public static final int IDLE_DELETE_TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration idleDeleteTtl_; @@ -319,6 +369,202 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { return com.google.protobuf.Duration.getDefaultInstance(); } + public static final int IDLE_STOP_TTL_FIELD_NUMBER = 5; + private com.google.protobuf.Duration idleStopTtl_; + + /** + * + * + *
+   * Optional. The duration to keep the cluster started while idling (when no
+   * jobs are running). Passing this threshold will cause the cluster to be
+   * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idleStopTtl field is set. + */ + @java.lang.Override + public boolean hasIdleStopTtl() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The duration to keep the cluster started while idling (when no
+   * jobs are running). Passing this threshold will cause the cluster to be
+   * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idleStopTtl. + */ + @java.lang.Override + public com.google.protobuf.Duration getIdleStopTtl() { + return idleStopTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleStopTtl_; + } + + /** + * + * + *
+   * Optional. The duration to keep the cluster started while idling (when no
+   * jobs are running). Passing this threshold will cause the cluster to be
+   * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getIdleStopTtlOrBuilder() { + return idleStopTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleStopTtl_; + } + + public static final int AUTO_STOP_TIME_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Optional. The time when cluster will be auto-stopped (see JSON
+   * representation of
+   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoStopTime field is set. + */ + @java.lang.Override + public boolean hasAutoStopTime() { + return stopTtlCase_ == 6; + } + + /** + * + * + *
+   * Optional. The time when cluster will be auto-stopped (see JSON
+   * representation of
+   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoStopTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getAutoStopTime() { + if (stopTtlCase_ == 6) { + return (com.google.protobuf.Timestamp) stopTtl_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The time when cluster will be auto-stopped (see JSON
+   * representation of
+   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAutoStopTimeOrBuilder() { + if (stopTtlCase_ == 6) { + return (com.google.protobuf.Timestamp) stopTtl_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int AUTO_STOP_TTL_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Optional. The lifetime duration of the cluster. The cluster will be
+   * auto-stopped at the end of this period, calculated from the time of
+   * submission of the create or update cluster request. Minimum value is 10
+   * minutes; maximum value is 14 days (see JSON representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoStopTtl field is set. + */ + @java.lang.Override + public boolean hasAutoStopTtl() { + return stopTtlCase_ == 7; + } + + /** + * + * + *
+   * Optional. The lifetime duration of the cluster. The cluster will be
+   * auto-stopped at the end of this period, calculated from the time of
+   * submission of the create or update cluster request. Minimum value is 10
+   * minutes; maximum value is 14 days (see JSON representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoStopTtl. + */ + @java.lang.Override + public com.google.protobuf.Duration getAutoStopTtl() { + if (stopTtlCase_ == 7) { + return (com.google.protobuf.Duration) stopTtl_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The lifetime duration of the cluster. The cluster will be
+   * auto-stopped at the end of this period, calculated from the time of
+   * submission of the create or update cluster request. Minimum value is 10
+   * minutes; maximum value is 14 days (see JSON representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getAutoStopTtlOrBuilder() { + if (stopTtlCase_ == 7) { + return (com.google.protobuf.Duration) stopTtl_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + public static final int IDLE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp idleStartTime_; @@ -340,7 +586,7 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { */ @java.lang.Override public boolean hasIdleStartTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -410,9 +656,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ttlCase_ == 3) { output.writeMessage(3, (com.google.protobuf.Duration) ttl_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getIdleStartTime()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIdleStopTtl()); + } + if (stopTtlCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Timestamp) stopTtl_); + } + if (stopTtlCase_ == 7) { + output.writeMessage(7, (com.google.protobuf.Duration) stopTtl_); + } getUnknownFields().writeTo(output); } @@ -435,9 +690,22 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.protobuf.Duration) ttl_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdleStartTime()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIdleStopTtl()); + } + if (stopTtlCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.protobuf.Timestamp) stopTtl_); + } + if (stopTtlCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.protobuf.Duration) stopTtl_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -458,6 +726,10 @@ public boolean equals(final java.lang.Object obj) { if (hasIdleDeleteTtl()) { if (!getIdleDeleteTtl().equals(other.getIdleDeleteTtl())) return false; } + if (hasIdleStopTtl() != other.hasIdleStopTtl()) return false; + if (hasIdleStopTtl()) { + if (!getIdleStopTtl().equals(other.getIdleStopTtl())) return false; + } if (hasIdleStartTime() != other.hasIdleStartTime()) return false; if (hasIdleStartTime()) { if (!getIdleStartTime().equals(other.getIdleStartTime())) return false; @@ -473,6 +745,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getStopTtlCase().equals(other.getStopTtlCase())) return false; + switch (stopTtlCase_) { + case 6: + if (!getAutoStopTime().equals(other.getAutoStopTime())) return false; + break; + case 7: + if (!getAutoStopTtl().equals(other.getAutoStopTtl())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -488,6 +771,10 @@ public int hashCode() { hash = (37 * hash) + IDLE_DELETE_TTL_FIELD_NUMBER; hash = (53 * hash) + getIdleDeleteTtl().hashCode(); } + if (hasIdleStopTtl()) { + hash = (37 * hash) + IDLE_STOP_TTL_FIELD_NUMBER; + hash = (53 * hash) + getIdleStopTtl().hashCode(); + } if (hasIdleStartTime()) { hash = (37 * hash) + IDLE_START_TIME_FIELD_NUMBER; hash = (53 * hash) + getIdleStartTime().hashCode(); @@ -504,6 +791,18 @@ public int hashCode() { case 0: default: } + switch (stopTtlCase_) { + case 6: + hash = (37 * hash) + AUTO_STOP_TIME_FIELD_NUMBER; + hash = (53 * hash) + getAutoStopTime().hashCode(); + break; + case 7: + hash = (37 * hash) + AUTO_STOP_TTL_FIELD_NUMBER; + hash = (53 * hash) + getAutoStopTtl().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -646,6 +945,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetIdleDeleteTtlFieldBuilder(); + internalGetIdleStopTtlFieldBuilder(); internalGetIdleStartTimeFieldBuilder(); } } @@ -665,6 +965,17 @@ public Builder clear() { if (autoDeleteTtlBuilder_ != null) { autoDeleteTtlBuilder_.clear(); } + idleStopTtl_ = null; + if (idleStopTtlBuilder_ != null) { + idleStopTtlBuilder_.dispose(); + idleStopTtlBuilder_ = null; + } + if (autoStopTimeBuilder_ != null) { + autoStopTimeBuilder_.clear(); + } + if (autoStopTtlBuilder_ != null) { + autoStopTtlBuilder_.clear(); + } idleStartTime_ = null; if (idleStartTimeBuilder_ != null) { idleStartTimeBuilder_.dispose(); @@ -672,6 +983,8 @@ public Builder clear() { } ttlCase_ = 0; ttl_ = null; + stopTtlCase_ = 0; + stopTtl_ = null; return this; } @@ -716,9 +1029,14 @@ private void buildPartial0(com.google.cloud.dataproc.v1.LifecycleConfig result) to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.idleStopTtl_ = + idleStopTtlBuilder_ == null ? idleStopTtl_ : idleStopTtlBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.idleStartTime_ = idleStartTimeBuilder_ == null ? idleStartTime_ : idleStartTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -732,6 +1050,14 @@ private void buildPartialOneofs(com.google.cloud.dataproc.v1.LifecycleConfig res if (ttlCase_ == 3 && autoDeleteTtlBuilder_ != null) { result.ttl_ = autoDeleteTtlBuilder_.build(); } + result.stopTtlCase_ = stopTtlCase_; + result.stopTtl_ = this.stopTtl_; + if (stopTtlCase_ == 6 && autoStopTimeBuilder_ != null) { + result.stopTtl_ = autoStopTimeBuilder_.build(); + } + if (stopTtlCase_ == 7 && autoStopTtlBuilder_ != null) { + result.stopTtl_ = autoStopTtlBuilder_.build(); + } } @java.lang.Override @@ -749,6 +1075,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.LifecycleConfig other) { if (other.hasIdleDeleteTtl()) { mergeIdleDeleteTtl(other.getIdleDeleteTtl()); } + if (other.hasIdleStopTtl()) { + mergeIdleStopTtl(other.getIdleStopTtl()); + } if (other.hasIdleStartTime()) { mergeIdleStartTime(other.getIdleStartTime()); } @@ -768,6 +1097,22 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.LifecycleConfig other) { break; } } + switch (other.getStopTtlCase()) { + case AUTO_STOP_TIME: + { + mergeAutoStopTime(other.getAutoStopTime()); + break; + } + case AUTO_STOP_TTL: + { + mergeAutoStopTtl(other.getAutoStopTtl()); + break; + } + case STOPTTL_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -819,9 +1164,30 @@ public Builder mergeFrom( { input.readMessage( internalGetIdleStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; break; } // case 34 + case 42: + { + input.readMessage( + internalGetIdleStopTtlFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetAutoStopTimeFieldBuilder().getBuilder(), extensionRegistry); + stopTtlCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetAutoStopTtlFieldBuilder().getBuilder(), extensionRegistry); + stopTtlCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -853,6 +1219,20 @@ public Builder clearTtl() { return this; } + private int stopTtlCase_ = 0; + private java.lang.Object stopTtl_; + + public StopTtlCase getStopTtlCase() { + return StopTtlCase.forNumber(stopTtlCase_); + } + + public Builder clearStopTtl() { + stopTtlCase_ = 0; + stopTtl_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.Duration idleDeleteTtl_; @@ -1610,30 +1990,30 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { return autoDeleteTtlBuilder_; } - private com.google.protobuf.Timestamp idleStartTime_; + private com.google.protobuf.Duration idleStopTtl_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - idleStartTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + idleStopTtlBuilder_; /** * * *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the idleStartTime field is set. + * @return Whether the idleStopTtl field is set. */ - public boolean hasIdleStartTime() { + public boolean hasIdleStopTtl() { return ((bitField0_ & 0x00000008) != 0); } @@ -1641,14 +2021,760 @@ public boolean hasIdleStartTime() { * * *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idleStopTtl. + */ + public com.google.protobuf.Duration getIdleStopTtl() { + if (idleStopTtlBuilder_ == null) { + return idleStopTtl_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleStopTtl_; + } else { + return idleStopTtlBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdleStopTtl(com.google.protobuf.Duration value) { + if (idleStopTtlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleStopTtl_ = value; + } else { + idleStopTtlBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdleStopTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (idleStopTtlBuilder_ == null) { + idleStopTtl_ = builderForValue.build(); + } else { + idleStopTtlBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIdleStopTtl(com.google.protobuf.Duration value) { + if (idleStopTtlBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && idleStopTtl_ != null + && idleStopTtl_ != com.google.protobuf.Duration.getDefaultInstance()) { + getIdleStopTtlBuilder().mergeFrom(value); + } else { + idleStopTtl_ = value; + } + } else { + idleStopTtlBuilder_.mergeFrom(value); + } + if (idleStopTtl_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIdleStopTtl() { + bitField0_ = (bitField0_ & ~0x00000008); + idleStopTtl_ = null; + if (idleStopTtlBuilder_ != null) { + idleStopTtlBuilder_.dispose(); + idleStopTtlBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getIdleStopTtlBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetIdleStopTtlFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getIdleStopTtlOrBuilder() { + if (idleStopTtlBuilder_ != null) { + return idleStopTtlBuilder_.getMessageOrBuilder(); + } else { + return idleStopTtl_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleStopTtl_; + } + } + + /** + * + * + *
+     * Optional. The duration to keep the cluster started while idling (when no
+     * jobs are running). Passing this threshold will cause the cluster to be
+     * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetIdleStopTtlFieldBuilder() { + if (idleStopTtlBuilder_ == null) { + idleStopTtlBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getIdleStopTtl(), getParentForChildren(), isClean()); + idleStopTtl_ = null; + } + return idleStopTtlBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + autoStopTimeBuilder_; + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoStopTime field is set. + */ + @java.lang.Override + public boolean hasAutoStopTime() { + return stopTtlCase_ == 6; + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoStopTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getAutoStopTime() { + if (autoStopTimeBuilder_ == null) { + if (stopTtlCase_ == 6) { + return (com.google.protobuf.Timestamp) stopTtl_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (stopTtlCase_ == 6) { + return autoStopTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoStopTime(com.google.protobuf.Timestamp value) { + if (autoStopTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopTtl_ = value; + onChanged(); + } else { + autoStopTimeBuilder_.setMessage(value); + } + stopTtlCase_ = 6; + return this; + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoStopTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (autoStopTimeBuilder_ == null) { + stopTtl_ = builderForValue.build(); + onChanged(); + } else { + autoStopTimeBuilder_.setMessage(builderForValue.build()); + } + stopTtlCase_ = 6; + return this; + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutoStopTime(com.google.protobuf.Timestamp value) { + if (autoStopTimeBuilder_ == null) { + if (stopTtlCase_ == 6 && stopTtl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + stopTtl_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) stopTtl_) + .mergeFrom(value) + .buildPartial(); + } else { + stopTtl_ = value; + } + onChanged(); + } else { + if (stopTtlCase_ == 6) { + autoStopTimeBuilder_.mergeFrom(value); + } else { + autoStopTimeBuilder_.setMessage(value); + } + } + stopTtlCase_ = 6; + return this; + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutoStopTime() { + if (autoStopTimeBuilder_ == null) { + if (stopTtlCase_ == 6) { + stopTtlCase_ = 0; + stopTtl_ = null; + onChanged(); + } + } else { + if (stopTtlCase_ == 6) { + stopTtlCase_ = 0; + stopTtl_ = null; + } + autoStopTimeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getAutoStopTimeBuilder() { + return internalGetAutoStopTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAutoStopTimeOrBuilder() { + if ((stopTtlCase_ == 6) && (autoStopTimeBuilder_ != null)) { + return autoStopTimeBuilder_.getMessageOrBuilder(); + } else { + if (stopTtlCase_ == 6) { + return (com.google.protobuf.Timestamp) stopTtl_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The time when cluster will be auto-stopped (see JSON
+     * representation of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetAutoStopTimeFieldBuilder() { + if (autoStopTimeBuilder_ == null) { + if (!(stopTtlCase_ == 6)) { + stopTtl_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + autoStopTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) stopTtl_, getParentForChildren(), isClean()); + stopTtl_ = null; + } + stopTtlCase_ = 6; + onChanged(); + return autoStopTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + autoStopTtlBuilder_; + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoStopTtl field is set. + */ + @java.lang.Override + public boolean hasAutoStopTtl() { + return stopTtlCase_ == 7; + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoStopTtl. + */ + @java.lang.Override + public com.google.protobuf.Duration getAutoStopTtl() { + if (autoStopTtlBuilder_ == null) { + if (stopTtlCase_ == 7) { + return (com.google.protobuf.Duration) stopTtl_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (stopTtlCase_ == 7) { + return autoStopTtlBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoStopTtl(com.google.protobuf.Duration value) { + if (autoStopTtlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopTtl_ = value; + onChanged(); + } else { + autoStopTtlBuilder_.setMessage(value); + } + stopTtlCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoStopTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (autoStopTtlBuilder_ == null) { + stopTtl_ = builderForValue.build(); + onChanged(); + } else { + autoStopTtlBuilder_.setMessage(builderForValue.build()); + } + stopTtlCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutoStopTtl(com.google.protobuf.Duration value) { + if (autoStopTtlBuilder_ == null) { + if (stopTtlCase_ == 7 && stopTtl_ != com.google.protobuf.Duration.getDefaultInstance()) { + stopTtl_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) stopTtl_) + .mergeFrom(value) + .buildPartial(); + } else { + stopTtl_ = value; + } + onChanged(); + } else { + if (stopTtlCase_ == 7) { + autoStopTtlBuilder_.mergeFrom(value); + } else { + autoStopTtlBuilder_.setMessage(value); + } + } + stopTtlCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutoStopTtl() { + if (autoStopTtlBuilder_ == null) { + if (stopTtlCase_ == 7) { + stopTtlCase_ = 0; + stopTtl_ = null; + onChanged(); + } + } else { + if (stopTtlCase_ == 7) { + stopTtlCase_ = 0; + stopTtl_ = null; + } + autoStopTtlBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getAutoStopTtlBuilder() { + return internalGetAutoStopTtlFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getAutoStopTtlOrBuilder() { + if ((stopTtlCase_ == 7) && (autoStopTtlBuilder_ != null)) { + return autoStopTtlBuilder_.getMessageOrBuilder(); + } else { + if (stopTtlCase_ == 7) { + return (com.google.protobuf.Duration) stopTtl_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The lifetime duration of the cluster. The cluster will be
+     * auto-stopped at the end of this period, calculated from the time of
+     * submission of the create or update cluster request. Minimum value is 10
+     * minutes; maximum value is 14 days (see JSON representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetAutoStopTtlFieldBuilder() { + if (autoStopTtlBuilder_ == null) { + if (!(stopTtlCase_ == 7)) { + stopTtl_ = com.google.protobuf.Duration.getDefaultInstance(); + } + autoStopTtlBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) stopTtl_, getParentForChildren(), isClean()); + stopTtl_ = null; + } + stopTtlCase_ = 7; + onChanged(); + return autoStopTtlBuilder_; + } + + private com.google.protobuf.Timestamp idleStartTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + idleStartTimeBuilder_; + + /** + * + * + *
+     * Output only. The time when cluster became idle (most recent job finished)
+     * and became eligible for deletion due to idleness (see JSON representation
+     * of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the idleStartTime field is set. + */ + public boolean hasIdleStartTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The time when cluster became idle (most recent job finished)
+     * and became eligible for deletion due to idleness (see JSON representation
+     * of
+     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The idleStartTime. @@ -1686,7 +2812,7 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { } else { idleStartTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1711,7 +2837,7 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderFor } else { idleStartTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1732,7 +2858,7 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { if (idleStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000040) != 0) && idleStartTime_ != null && idleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getIdleStartTimeBuilder().mergeFrom(value); @@ -1743,7 +2869,7 @@ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { idleStartTimeBuilder_.mergeFrom(value); } if (idleStartTime_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1764,7 +2890,7 @@ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearIdleStartTime() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); idleStartTime_ = null; if (idleStartTimeBuilder_ != null) { idleStartTimeBuilder_.dispose(); @@ -1789,7 +2915,7 @@ public Builder clearIdleStartTime() { *
*/ public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return internalGetIdleStartTimeFieldBuilder().getBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java index 4b9adc851934..33119122ca9b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java @@ -176,6 +176,156 @@ public interface LifecycleConfigOrBuilder */ com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder(); + /** + * + * + *
+   * Optional. The duration to keep the cluster started while idling (when no
+   * jobs are running). Passing this threshold will cause the cluster to be
+   * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idleStopTtl field is set. + */ + boolean hasIdleStopTtl(); + + /** + * + * + *
+   * Optional. The duration to keep the cluster started while idling (when no
+   * jobs are running). Passing this threshold will cause the cluster to be
+   * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idleStopTtl. + */ + com.google.protobuf.Duration getIdleStopTtl(); + + /** + * + * + *
+   * Optional. The duration to keep the cluster started while idling (when no
+   * jobs are running). Passing this threshold will cause the cluster to be
+   * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration idle_stop_ttl = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getIdleStopTtlOrBuilder(); + + /** + * + * + *
+   * Optional. The time when cluster will be auto-stopped (see JSON
+   * representation of
+   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoStopTime field is set. + */ + boolean hasAutoStopTime(); + + /** + * + * + *
+   * Optional. The time when cluster will be auto-stopped (see JSON
+   * representation of
+   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoStopTime. + */ + com.google.protobuf.Timestamp getAutoStopTime(); + + /** + * + * + *
+   * Optional. The time when cluster will be auto-stopped (see JSON
+   * representation of
+   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Timestamp auto_stop_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getAutoStopTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The lifetime duration of the cluster. The cluster will be
+   * auto-stopped at the end of this period, calculated from the time of
+   * submission of the create or update cluster request. Minimum value is 10
+   * minutes; maximum value is 14 days (see JSON representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoStopTtl field is set. + */ + boolean hasAutoStopTtl(); + + /** + * + * + *
+   * Optional. The lifetime duration of the cluster. The cluster will be
+   * auto-stopped at the end of this period, calculated from the time of
+   * submission of the create or update cluster request. Minimum value is 10
+   * minutes; maximum value is 14 days (see JSON representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoStopTtl. + */ + com.google.protobuf.Duration getAutoStopTtl(); + + /** + * + * + *
+   * Optional. The lifetime duration of the cluster. The cluster will be
+   * auto-stopped at the end of this period, calculated from the time of
+   * submission of the create or update cluster request. Minimum value is 10
+   * minutes; maximum value is 14 days (see JSON representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration auto_stop_ttl = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getAutoStopTtlOrBuilder(); + /** * * @@ -229,4 +379,6 @@ public interface LifecycleConfigOrBuilder com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder(); com.google.cloud.dataproc.v1.LifecycleConfig.TtlCase getTtlCase(); + + com.google.cloud.dataproc.v1.LifecycleConfig.StopTtlCase getStopTtlCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index d55ea617419e..f1bc59a225e6 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -243,12 +243,27 @@ message ClusterConfig { CLUSTER_TIER_PREMIUM = 2; } + // The cluster engine. + enum Engine { + // The engine is not specified. Works the same as ENGINE_DEFAULT. + ENGINE_UNSPECIFIED = 0; + + // The cluster is a default engine cluster. + DEFAULT = 1; + + // The cluster is a lightning engine cluster. + LIGHTNING = 2; + } + // Optional. The type of the cluster. ClusterType cluster_type = 27 [(google.api.field_behavior) = OPTIONAL]; // Optional. The cluster tier. ClusterTier cluster_tier = 29 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The cluster engine. + Engine engine = 30 [(google.api.field_behavior) = OPTIONAL]; + // Optional. A Cloud Storage bucket used to stage job // dependencies, config files, and job driver console output. // If you do not specify a staging bucket, Cloud @@ -1266,6 +1281,32 @@ message LifecycleConfig { [(google.api.field_behavior) = OPTIONAL]; } + // Optional. The duration to keep the cluster started while idling (when no + // jobs are running). Passing this threshold will cause the cluster to be + // stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON + // representation of + // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). + google.protobuf.Duration idle_stop_ttl = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Either the exact time the cluster should be stopped at or + // the cluster maximum age. + oneof stop_ttl { + // Optional. The time when cluster will be auto-stopped (see JSON + // representation of + // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). + google.protobuf.Timestamp auto_stop_time = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The lifetime duration of the cluster. The cluster will be + // auto-stopped at the end of this period, calculated from the time of + // submission of the create or update cluster request. Minimum value is 10 + // minutes; maximum value is 14 days (see JSON representation of + // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). + google.protobuf.Duration auto_stop_ttl = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + // Output only. The time when cluster became idle (most recent job finished) // and became eligible for deletion due to idleness (see JSON representation // of diff --git a/java-datastore/.OwlBot-hermetic.yaml b/java-datastore/.OwlBot-hermetic.yaml index c53f7529e9bf..dce59c74ec54 100644 --- a/java-datastore/.OwlBot-hermetic.yaml +++ b/java-datastore/.OwlBot-hermetic.yaml @@ -15,7 +15,8 @@ deep-remove-regex: - /java-datastore/proto-google-.*/src deep-preserve-regex: -- /java-datastore/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java +- /.*google-.*/src/main/java/.*/stub/Version.java +- /.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java deep-copy-regex: - source: /google/datastore/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-datastore/$1/proto-google-cloud-datastore-$1/src diff --git a/java-datastore/README.md b/java-datastore/README.md index 96518194208a..75567d9b8f81 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -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:2.37.0' +implementation 'com.google.cloud:google-cloud-datastore:2.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.39.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-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/2.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/2.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-datastream/.OwlBot-hermetic.yaml index 5efef4f8c226..8cc68058f04d 100644 --- a/java-datastream/.OwlBot-hermetic.yaml +++ b/java-datastream/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-datastream/google-.*/src" deep-preserve-regex: -- "/java-datastream/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/datastream/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-datastream/README.md b/java-datastream/README.md index 15e0321d02ec..d16195a4c2e3 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.87.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.87.0' +implementation 'com.google.cloud:google-cloud-datastream:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.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-deploy/.OwlBot-hermetic.yaml b/java-deploy/.OwlBot-hermetic.yaml index df16b930f746..114057365364 100644 --- a/java-deploy/.OwlBot-hermetic.yaml +++ b/java-deploy/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-deploy/google-.*/src" deep-preserve-regex: -- "/java-deploy/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/deploy/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-deploy/README.md b/java-deploy/README.md index c3c5d4839d27..c432a2ee25e0 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.86.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.86.0' +implementation 'com.google.cloud:google-cloud-deploy:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.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-developerconnect/.OwlBot-hermetic.yaml b/java-developerconnect/.OwlBot-hermetic.yaml index 62aea104799a..d1e9cb274753 100644 --- a/java-developerconnect/.OwlBot-hermetic.yaml +++ b/java-developerconnect/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-developerconnect/samples/snippets/generated" deep-preserve-regex: -- "/java-developerconnect/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/developerconnect/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 5042005a892e..75e2027ff18e 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.45.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.45.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.47.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-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.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/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-devicestreaming/.OwlBot-hermetic.yaml b/java-devicestreaming/.OwlBot-hermetic.yaml index c64ff7c4f554..562181c3d889 100644 --- a/java-devicestreaming/.OwlBot-hermetic.yaml +++ b/java-devicestreaming/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-devicestreaming/samples/snippets/generated" deep-preserve-regex: -- "/java-devicestreaming/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/devicestreaming/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index 3522d76270ce..d0f2b7a12b38 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.28.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.28.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.30.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-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.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/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-dialogflow-cx/.OwlBot-hermetic.yaml b/java-dialogflow-cx/.OwlBot-hermetic.yaml index 63f6c33a8c11..ed47b4ae48a3 100644 --- a/java-dialogflow-cx/.OwlBot-hermetic.yaml +++ b/java-dialogflow-cx/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-dialogflow-cx/samples/snippets/generated" deep-preserve-regex: -- "/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v.*/it/ITSystemTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index edc56edaa4d8..5481fb9b2fd9 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.99.0 + 0.101.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.99.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.101.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-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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/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-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CodeBlockProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CodeBlockProto.java index 2a03bd4def48..fb30f33a915f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CodeBlockProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CodeBlockProto.java @@ -56,11 +56,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n.google/cloud/dialogflow/cx/v3/code_blo" + "ck.proto\022\035google.cloud.dialogflow.cx.v3\032" + "\037google/api/field_behavior.proto\"\036\n\tCode" - + "Block\022\021\n\004code\030\001 \001(\tB\003\340A\001B\215\001\n!com.google." + + "Block\022\021\n\004code\030\001 \001(\tB\003\340A\001B\261\001\n!com.google." + "cloud.dialogflow.cx.v3B\016CodeBlockProtoP\001" + "Z1cloud.google.com/go/dialogflow/cx/apiv" + "3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Dialogfl" - + "ow.Cx.V3b\006proto3" + + "ow.Cx.V3\352\002!Google::Cloud::Dialogflow::CX" + + "::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleProto.java index 175e9f4226a1..c39763dedb40 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleProto.java @@ -148,11 +148,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "laybooks/*/examples/*}:\007example\032x\312A\031dial" + "ogflow.googleapis.com\322AYhttps://www.goog" + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/dialogflowB\213\001\n!co" + + "ww.googleapis.com/auth/dialogflowB\257\001\n!co" + "m.google.cloud.dialogflow.cx.v3B\014Example" + "ProtoP\001Z1cloud.google.com/go/dialogflow/" + "cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.D" - + "ialogflow.Cx.V3b\006proto3" + + "ialogflow.Cx.V3\352\002!Google::Cloud::Dialogf" + + "low::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinition.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinition.java index 45f97236448f..f003e1cac0df 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinition.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinition.java @@ -408,7 +408,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -429,7 +429,7 @@ public int getTypeValue() { * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @return The type. */ @java.lang.Override @@ -1088,7 +1088,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -1109,7 +1109,7 @@ public int getTypeValue() { * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1133,7 +1133,7 @@ public Builder setTypeValue(int value) { * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @return The type. */ @java.lang.Override @@ -1158,7 +1158,7 @@ public com.google.cloud.dialogflow.cx.v3.ParameterDefinition.ParameterType getTy * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @param value The type to set. * @return This builder for chaining. */ @@ -1186,7 +1186,7 @@ public Builder setType( * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionOrBuilder.java index c88d6aaee0ff..484eea8c9f3f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionOrBuilder.java @@ -64,7 +64,7 @@ public interface ParameterDefinitionOrBuilder * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @return The enum numeric value on the wire for type. */ @java.lang.Deprecated @@ -82,7 +82,7 @@ public interface ParameterDefinitionOrBuilder * * * @deprecated google.cloud.dialogflow.cx.v3.ParameterDefinition.type is deprecated. See - * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=59 + * google/cloud/dialogflow/cx/v3/parameter_definition.proto;l=60 * @return The type. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionProto.java index d694cd196567..296a78419963 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ParameterDefinitionProto.java @@ -100,9 +100,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006STRING\020\001\022\n\n" + "\006NUMBER\020\002\022\013\n" + "\007BOOLEAN\020\003\022\t\n" - + "\005ARRAY\020\006Br\n" - + "!com.google.cloud.dialogflow.cx.v3B\030ParameterDefiniti" - + "onProtoP\001Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpbb\006proto3" + + "\005ARRAY\020\006B\226\001\n" + + "!com.google.cloud.dialogflow.cx.v3B\030ParameterDefinit" + + "ionProtoP\001Z1cloud.google.com/go/dialogfl" + + "ow/cx/apiv3/cxpb;cxpb\352\002!Google::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookProto.java index 1dec3dd080da..331e3434cd2c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookProto.java @@ -374,11 +374,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cations/*/agents/*/playbooks/*/versions/" + "*}\032x\312A\031dialogflow.googleapis.com\322AYhttps" + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/dialogflowB\214\001\n" + + "m,https://www.googleapis.com/auth/dialogflowB\260\001\n" + "!com.google.cloud.dialogflow.cx.v3B\r" + "PlaybookProtoP\001Z1cloud.google.com/go" + "/dialogflow/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Go" - + "ogle.Cloud.Dialogflow.Cx.V3b\006proto3" + + "ogle.Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolProto.java index 2db5b6e73788..872fd9479f3d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolProto.java @@ -361,9 +361,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "J\"E/v3/{name=projects/*/locations/*/agen" + "ts/*/tools/*/versions/*}:restore:\001*\032x\312A\031" + "dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https" - + "://www.googleapis.com/auth/dialogflowB\210\001\n" + + "://www.googleapis.com/auth/dialogflowB\254\001\n" + "!com.google.cloud.dialogflow.cx.v3B\tToolProtoP\001Z1cloud.google.com/go/dialogflow" - + "/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3b\006proto3" + + "/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud." + + "Dialogflow.Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/code_block.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/code_block.proto index e6eeb36a96a1..f250d4afd902 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/code_block.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/code_block.proto @@ -24,6 +24,7 @@ option java_multiple_files = true; option java_outer_classname = "CodeBlockProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // Represents a code block. message CodeBlock { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/example.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/example.proto index 9c8467a586ee..29c8a833b8ef 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/example.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/example.proto @@ -31,6 +31,7 @@ option java_multiple_files = true; option java_outer_classname = "ExampleProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // Service for managing [Examples][google.cloud.dialogflow.cx.v3.Example]. service Examples { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/parameter_definition.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/parameter_definition.proto index 03839000be14..62e6c6f4c78a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/parameter_definition.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/parameter_definition.proto @@ -22,6 +22,7 @@ option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "ParameterDefinitionProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // Defines the properties of a parameter. // Used to define parameters used in the agent and the diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/playbook.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/playbook.proto index fe8f373e79be..3c7b9ed532a5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/playbook.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/playbook.proto @@ -38,6 +38,7 @@ option java_multiple_files = true; option java_outer_classname = "PlaybookProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // Service for managing [Playbooks][google.cloud.dialogflow.cx.v3.Playbook]. service Playbooks { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/tool.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/tool.proto index 1a66b277f8e2..231784cd7d79 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/tool.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/tool.proto @@ -32,6 +32,7 @@ option java_multiple_files = true; option java_outer_classname = "ToolProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // Service for managing [Tools][google.cloud.dialogflow.cx.v3.Tool]. service Tools { diff --git a/java-dialogflow/.OwlBot-hermetic.yaml b/java-dialogflow/.OwlBot-hermetic.yaml index 7f6f56def354..6760f0c2a39b 100644 --- a/java-dialogflow/.OwlBot-hermetic.yaml +++ b/java-dialogflow/.OwlBot-hermetic.yaml @@ -20,15 +20,16 @@ deep-remove-regex: - "/java-dialogflow/google-.*/src" deep-preserve-regex: -- "/java-dialogflow/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextManagementSmokeTest.java" -- "/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelName.java" -- "/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java" -- "/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationModelName.java" -- "/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentContextName.java" -- "/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionEntityTypeName.java" -- "/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionName.java" -- "/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectAgentName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextManagementSmokeTest.java" +- "/.*proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelName.java" +- "/.*proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java" +- "/.*proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationModelName.java" +- "/.*proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentContextName.java" +- "/.*proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionEntityTypeName.java" +- "/.*proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionName.java" +- "/.*proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectAgentName.java" deep-copy-regex: diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 3d8d5739518e..9b3ebdcda09d 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.94.0 + 4.96.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.94.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.96.0" ``` ## Authentication @@ -175,7 +175,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.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.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-discoveryengine/.OwlBot-hermetic.yaml b/java-discoveryengine/.OwlBot-hermetic.yaml index 699c60b17a4d..05388100d4f4 100644 --- a/java-discoveryengine/.OwlBot-hermetic.yaml +++ b/java-discoveryengine/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-discoveryengine/samples/snippets/generated" deep-preserve-regex: -- "/java-discoveryengine/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/discoveryengine/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 7e8e15469670..b9336cca645f 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.84.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.84.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.86.0" ``` ## Authentication @@ -175,7 +175,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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/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-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java index 1801d33c5f20..adea2e82c35d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java @@ -27095,6 +27095,17 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * ENABLED = 2; */ ENABLED(2), + /** + * + * + *
+       * Automatic switching between search-as-you-type and standard search
+       * modes, ideal for single-API implementations (e.g., debouncing).
+       * 
+ * + * AUTO = 3; + */ + AUTO(3), UNRECOGNIZED(-1), ; @@ -27142,6 +27153,18 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLED_VALUE = 2; + /** + * + * + *
+       * Automatic switching between search-as-you-type and standard search
+       * modes, ideal for single-API implementations (e.g., debouncing).
+       * 
+ * + * AUTO = 3; + */ + public static final int AUTO_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -27172,6 +27195,8 @@ public static Condition forNumber(int value) { return DISABLED; case 2: return ENABLED; + case 3: + return AUTO; default: return null; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java index 53f7a7b83677..9fc482f87a6d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java @@ -272,7 +272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/field_behavior.proto\032\031google/api/re" + "source.proto\0320google/cloud/discoveryengine/v1alpha/chunk.proto\0321google/cloud/dis" + "coveryengine/v1alpha/common.proto\0323googl" - + "e/cloud/discoveryengine/v1alpha/document.proto\032\034google/protobuf/struct.proto\"\3204\n" + + "e/cloud/discoveryengine/v1alpha/document.proto\032\034google/protobuf/struct.proto\"\3324\n" + "\r" + "SearchRequest\022L\n" + "\016serving_config\030\001 \001(\tB4\340A\002\372A.\n" @@ -451,14 +451,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031FilterExtractionCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" - + "\007ENABLED\020\002\032\276\001\n" + + "\007ENABLED\020\002\032\310\001\n" + "\023SearchAsYouTypeSpec\022d\n" + "\tcondition\030\001 \001(\0162Q.google.cloud.discoveryengine.v1alpha.Se" - + "archRequest.SearchAsYouTypeSpec.Condition\"A\n" + + "archRequest.SearchAsYouTypeSpec.Condition\"K\n" + "\tCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" - + "\007ENABLED\020\002\032q\n" + + "\007ENABLED\020\002\022\010\n" + + "\004AUTO\020\003\032q\n" + "\013SessionSpec\022\020\n" + "\010query_id\030\001 \001(\t\022,\n" + "\037search_result_persistence_count\030\002 \001(\005H\000\210\001\001B\"\n" @@ -480,43 +481,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021RANK_BY_EMBEDDING\020\003\022\023\n" + "\017RANK_BY_FORMULA\020\004\"\004\010\001\020\001\"\004\010\002\020\002\"\2126\n" + "\016SearchResponse\022R\n" - + "\007results\030\001 \003(\0132A.google.cloud.discoveryengi" - + "ne.v1alpha.SearchResponse.SearchResult\022J\n" - + "\006facets\030\002" - + " \003(\0132:.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet\022e\n" - + "\024guided_search_result\030\010 \001(\0132G.google.cloud." - + "discoveryengine.v1alpha.SearchResponse.GuidedSearchResult\022\022\n\n" + + "\007results\030\001 \003(\0132A.google.cloud.dis" + + "coveryengine.v1alpha.SearchResponse.SearchResult\022J\n" + + "\006facets\030\002 \003(\0132:.google.cloud." + + "discoveryengine.v1alpha.SearchResponse.Facet\022e\n" + + "\024guided_search_result\030\010 \001(\0132G.goo" + + "gle.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult\022\022\n\n" + "total_size\030\003 \001(\005\022\031\n" + "\021attribution_token\030\004 \001(\t\022\024\n" + "\014redirect_uri\030\014 \001(\t\022\027\n" + "\017next_page_token\030\005 \001(\t\022\027\n" + "\017corrected_query\030\007 \001(\t\022M\n" - + "\007summary\030\t \001(\0132<.goog" - + "le.cloud.discoveryengine.v1alpha.SearchResponse.Summary\022\030\n" + + "\007summary\030\t " + + "\001(\0132<.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary\022\030\n" + "\020applied_controls\030\n" + " \003(\t\022f\n" - + "\025geo_search_debug_info\030\020 \003(\0132G.googl" - + "e.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo\022e\n" - + "\024query_expansion_info\030\016 \001(\0132G.google.cloud.discovery" - + "engine.v1alpha.SearchResponse.QueryExpansionInfo\022\215\001\n" - + ")natural_language_query_understanding_info\030\017 \001(\0132Z.google.cloud.disc" - + "overyengine.v1alpha.SearchResponse.NaturalLanguageQueryUnderstandingInfo\022V\n" - + "\014session_info\030\023 \001(\0132@.google.cloud.discoverye" - + "ngine.v1alpha.SearchResponse.SessionInfo\022Z\n" - + "\017one_box_results\030\024 \003(\0132A.google.cloud" - + ".discoveryengine.v1alpha.SearchResponse.OneBoxResult\032\310\010\n" + + "\025geo_search_debug_info\030\020 \003" + + "(\0132G.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo\022e\n" + + "\024query_expansion_info\030\016 \001(\0132G.google.cloud" + + ".discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo\022\215\001\n" + + ")natural_language_query_understanding_info\030\017 \001(\0132Z.google." + + "cloud.discoveryengine.v1alpha.SearchResp" + + "onse.NaturalLanguageQueryUnderstandingInfo\022V\n" + + "\014session_info\030\023 \001(\0132@.google.cloud." + + "discoveryengine.v1alpha.SearchResponse.SessionInfo\022Z\n" + + "\017one_box_results\030\024 \003(\0132A.go" + + "ogle.cloud.discoveryengine.v1alpha.SearchResponse.OneBoxResult\032\310\010\n" + "\014SearchResult\022\n\n" + "\002id\030\001 \001(\t\022@\n" + "\010document\030\002 \001(\0132..google.cloud.discoveryengine.v1alpha.Document\022:\n" + "\005chunk\030\022 \001(\0132+.google.cloud.discoveryengine.v1alpha.Chunk\022h\n" - + "\014model_scores\030\004 \003(\0132R.google.c" - + "loud.discoveryengine.v1alpha.SearchResponse.SearchResult.ModelScoresEntry\022h\n" - + "\014rank_signals\030\007 \001(\0132M.google.cloud.discovery" - + "engine.v1alpha.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032d\n" + + "\014model_scores\030\004 \003(\0132R.google.cloud.discoveryengine.v1alpha.S" + + "earchResponse.SearchResult.ModelScoresEntry\022h\n" + + "\014rank_signals\030\007 \001(\0132M.google.cloud" + + ".discoveryengine.v1alpha.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032d\n" + "\020ModelScoresEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002 \001(\01320.google.clo" - + "ud.discoveryengine.v1alpha.DoubleList:\0028\001\032\363\004\n" + + "\005value\030\002 \001(\01320." + + "google.cloud.discoveryengine.v1alpha.DoubleList:\0028\001\032\363\004\n" + "\013RankSignals\022*\n" + "\030keyword_similarity_score\030\001 \001(\002B\003\340A\001H\000\210\001\001\022!\n" + "\017relevance_score\030\002 \001(\002B\003\340A\001H\001\210\001\001\022+\n" @@ -527,8 +529,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014document_age\030\007 \001(\002B\003\340A\001H\005\210\001\001\022!\n" + "\017boosting_factor\030\010 \001(\002B\003\340A\001H\006\210\001\001\022\031\n" + "\014default_rank\030 \001(\002B\003\340A\001\022w\n" - + "\016custom_signals\030! \003(\0132Z.google.cloud.discoveryengine.v1alp" - + "ha.SearchResponse.SearchResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + + "\016custom_signals\030! \003(\0132Z.google.cloud.discoveryen" + + "gine.v1alpha.SearchResponse.SearchResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + "\014CustomSignal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\002B\003\340A\001B\033\n" @@ -541,43 +543,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_boosting_factorJ\004\010\005\020\006\032\203\002\n" + "\005Facet\022\013\n" + "\003key\030\001 \001(\t\022U\n" - + "\006values\030\002 \003(\0132E.google." - + "cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue\022\025\n\r" + + "\006values\030\002 \003(\013" + + "2E.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue\022\025\n\r" + "dynamic_facet\030\003 \001(\010\032\177\n\n" + "FacetValue\022\017\n" + "\005value\030\001 \001(\tH\000\022B\n" + "\010interval\030\002" + " \001(\0132..google.cloud.discoveryengine.v1alpha.IntervalH\000\022\r\n" - + "\005count\030\003 \001(\003B\r" - + "\n" + + "\005count\030\003 \001(\003B\r\n" + "\013facet_value\032\364\001\n" + "\022GuidedSearchResult\022z\n" - + "\025refinement_attributes\030\001 \003(\0132[.google.clo" - + "ud.discoveryengine.v1alpha.SearchRespons" - + "e.GuidedSearchResult.RefinementAttribute\022\033\n" + + "\025refinement_attributes\030\001 \003(\0132[.google.cloud.discoveryengine.v1alpha.Sea" + + "rchResponse.GuidedSearchResult.RefinementAttribute\022\033\n" + "\023follow_up_questions\030\002 \003(\t\032E\n" + "\023RefinementAttribute\022\025\n\r" + "attribute_key\030\001 \001(\t\022\027\n" + "\017attribute_value\030\002 \001(\t\032\273\014\n" + "\007Summary\022\024\n" + "\014summary_text\030\001 \001(\t\022r\n" - + "\027summary_skipped_reasons\030\002 \003(\0162Q.google.cloud.discoveryengine.v" - + "1alpha.SearchResponse.Summary.SummarySkippedReason\022h\n" - + "\021safety_attributes\030\003 \001(\0132M." - + "google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes\022o\n" - + "\025summary_with_metadata\030\004 \001(\0132P.google.clo" - + "ud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata\0326\n" + + "\027summary_skipped_reasons\030\002 \003(\0162Q.google.cloud.discove" + + "ryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason\022h\n" + + "\021safety_attributes\030\003 \001(\0132M.google.cloud.discoveryengine.v" + + "1alpha.SearchResponse.Summary.SafetyAttributes\022o\n" + + "\025summary_with_metadata\030\004 \001(\0132P.google.cloud.discoveryengine.v1alpha.Sea" + + "rchResponse.Summary.SummaryWithMetadata\0326\n" + "\020SafetyAttributes\022\022\n\n" + "categories\030\001 \003(\t\022\016\n" + "\006scores\030\002 \003(\002\032l\n" + "\020CitationMetadata\022X\n" - + "\tcitations\030\001" - + " \003(\0132E.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Citation\032\220\001\n" + + "\tcitations\030\001 \003(\0132E.google.cloud.discoverye" + + "ngine.v1alpha.SearchResponse.Summary.Citation\032\220\001\n" + "\010Citation\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\022\\\n" - + "\007sources\030\003 \003(\0132K.google.cloud" - + ".discoveryengine.v1alpha.SearchResponse.Summary.CitationSource\032)\n" + + "\007sources\030\003 \003(\0132K.go" + + "ogle.cloud.discoveryengine.v1alpha.SearchResponse.Summary.CitationSource\032)\n" + "\016CitationSource\022\027\n" + "\017reference_index\030\004 \001(\003\032\221\002\n" + "\tReference\022\r\n" @@ -585,17 +585,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010document\030\002 \001(\tB/\340A\002\372A)\n" + "\'discoveryengine.googleapis.com/Document\022\013\n" + "\003uri\030\003 \001(\t\022k\n" - + "\016chunk_contents\030\004 \003(\0132S.google.cloud.discoveryengine.v1alpha.Se" - + "archResponse.Summary.Reference.ChunkContent\0328\n" + + "\016chunk_contents\030\004 \003(\0132S.google.cloud.discoveryengine." + + "v1alpha.SearchResponse.Summary.Reference.ChunkContent\0328\n" + "\014ChunkContent\022\017\n" + "\007content\030\001 \001(\t\022\027\n" + "\017page_identifier\030\002 \001(\t\032\354\001\n" + "\023SummaryWithMetadata\022\017\n" + "\007summary\030\001 \001(\t\022h\n" - + "\021citation_metadata\030\002 \001(\0132M.google.cloud.discoveryengine" - + ".v1alpha.SearchResponse.Summary.CitationMetadata\022Z\n\n" - + "references\030\003 \003(\0132F.google.cl" - + "oud.discoveryengine.v1alpha.SearchResponse.Summary.Reference\"\343\002\n" + + "\021citation_metadata\030\002 \001(\0132M.google.cloud.disco" + + "veryengine.v1alpha.SearchResponse.Summary.CitationMetadata\022Z\n\n" + + "references\030\003 \003(\0132F" + + ".google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Reference\"\343\002\n" + "\024SummarySkippedReason\022&\n" + "\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020\000\022\035\n" + "\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n" @@ -616,22 +616,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%NaturalLanguageQueryUnderstandingInfo\022\031\n" + "\021extracted_filters\030\001 \001(\t\022\027\n" + "\017rewritten_query\030\002 \001(\t\022\231\001\n" - + "\033structured_extracted_filter\030\003 \001(\0132t.google.cloud.di" - + "scoveryengine.v1alpha.SearchResponse.Nat" - + "uralLanguageQueryUnderstandingInfo.StructuredExtractedFilter\032\221\017\n" + + "\033structured_extracted_filter\030\003 \001(\0132t.googl" + + "e.cloud.discoveryengine.v1alpha.SearchRe" + + "sponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter\032\221\017\n" + "\031StructuredExtractedFilter\022\223\001\n\n" - + "expression\030\001 \001(\0132\177.google.cloud.discoveryengine.v1alpha.SearchRes" - + "ponse.NaturalLanguageQueryUnderstandingI" - + "nfo.StructuredExtractedFilter.Expression\032M\n" + + "expression\030\001 \001(\0132\177.google.cloud.discoveryengine.v1alpha" + + ".SearchResponse.NaturalLanguageQueryUnde" + + "rstandingInfo.StructuredExtractedFilter.Expression\032M\n" + "\020StringConstraint\022\022\n\n" + "field_name\030\001 \001(\t\022\016\n" + "\006values\030\002 \003(\t\022\025\n\r" + "query_segment\030\003 \001(\t\032\373\002\n" + "\020NumberConstraint\022\022\n\n" + "field_name\030\001 \001(\t\022\245\001\n\n" - + "comparison\030\002 \001(\0162\220\001.google.cloud.di" - + "scoveryengine.v1alpha.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Struc" - + "turedExtractedFilter.NumberConstraint.Comparison\022\r\n" + + "comparison\030\002 \001(\0162\220\001.google.cloud.discoveryengine.v1alpha.SearchRe" + + "sponse.NaturalLanguageQueryUnderstanding" + + "Info.StructuredExtractedFilter.NumberConstraint.Comparison\022\r\n" + "\005value\030\003 \001(\001\022\025\n\r" + "query_segment\030\004 \001(\t\"\204\001\n\n" + "Comparison\022\032\n" @@ -646,61 +646,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007address\030\002 \001(\t\022\020\n" + "\010latitude\030\004 \001(\001\022\021\n" + "\tlongitude\030\005 \001(\001\022\030\n" - + "\020radius_in_meters\030\003 \001(\002\032\246\001\n\r" + + "\020radius_in_meters\030\003 \001(\002\032\246\001\n" + + "\r" + "AndExpression\022\224\001\n" - + "\013expressions\030\001 \003(\0132\177.google.clou" - + "d.discoveryengine.v1alpha.SearchResponse" - + ".NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression\032\245\001\n" + + "\013expressions\030\001 \003(\0132\177.google.cloud.discoveryengine.v1alpha.Sear" + + "chResponse.NaturalLanguageQueryUnderstan" + + "dingInfo.StructuredExtractedFilter.Expression\032\245\001\n" + "\014OrExpression\022\224\001\n" - + "\013expressions\030\001 \003(\0132\177.google.cloud.discoveryengine.v1alpha.Search" - + "Response.NaturalLanguageQueryUnderstandi" - + "ngInfo.StructuredExtractedFilter.Expression\032\302\006\n\n" + + "\013expressions\030\001 \003(\0132\177.google.cloud.discoveryengine.v1al" + + "pha.SearchResponse.NaturalLanguageQueryU" + + "nderstandingInfo.StructuredExtractedFilter.Expression\032\302\006\n\n" + "Expression\022\243\001\n" - + "\021string_constraint\030\001 \001(\0132\205\001.google.cloud.discoveryengine.v" - + "1alpha.SearchResponse.NaturalLanguageQue" - + "ryUnderstandingInfo.StructuredExtractedFilter.StringConstraintH\000\022\243\001\n" - + "\021number_constraint\030\002 \001(\0132\205\001.google.cloud.discoveryen" - + "gine.v1alpha.SearchResponse.NaturalLangu" - + "ageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintH\000\022\255\001\n" - + "\026geolocation_constraint\030\003 \001(\0132\212\001.google.cloud." - + "discoveryengine.v1alpha.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Str" - + "ucturedExtractedFilter.GeolocationConstraintH\000\022\227\001\n" - + "\010and_expr\030\004 \001(\0132\202\001.google.clou" - + "d.discoveryengine.v1alpha.SearchResponse.NaturalLanguageQueryUnderstandingInfo.S" - + "tructuredExtractedFilter.AndExpressionH\000\022\225\001\n" - + "\007or_expr\030\005 \001(\0132\201\001.google.cloud.disco" - + "veryengine.v1alpha.SearchResponse.Natura" - + "lLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpressionH\000B\006\n" + + "\021string_constraint\030\001 \001(\0132\205\001.google.cloud.discove" + + "ryengine.v1alpha.SearchResponse.NaturalL" + + "anguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintH\000\022\243\001\n" + + "\021number_constraint\030\002 \001(\0132\205\001.google.cloud.d" + + "iscoveryengine.v1alpha.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Stru" + + "cturedExtractedFilter.NumberConstraintH\000\022\255\001\n" + + "\026geolocation_constraint\030\003 \001(\0132\212\001.goo" + + "gle.cloud.discoveryengine.v1alpha.SearchResponse.NaturalLanguageQueryUnderstandi" + + "ngInfo.StructuredExtractedFilter.GeolocationConstraintH\000\022\227\001\n" + + "\010and_expr\030\004 \001(\0132\202\001.google.cloud.discoveryengine.v1alpha.Sear" + + "chResponse.NaturalLanguageQueryUnderstan" + + "dingInfo.StructuredExtractedFilter.AndExpressionH\000\022\225\001\n" + + "\007or_expr\030\005 \001(\0132\201\001.google.c" + + "loud.discoveryengine.v1alpha.SearchResponse.NaturalLanguageQueryUnderstandingInf" + + "o.StructuredExtractedFilter.OrExpressionH\000B\006\n" + "\004expr\032-\n" + "\013SessionInfo\022\014\n" + "\004name\030\001 \001(\t\022\020\n" + "\010query_id\030\002 \001(\t\032\242\002\n" + "\014OneBoxResult\022b\n" - + "\014one_box_type\030\001 \001(\0162L.google.cloud.discoveryengine.v1" - + "alpha.SearchResponse.OneBoxResult.OneBoxType\022Y\n" - + "\016search_results\030\002 \003(\0132A.google.cl" - + "oud.discoveryengine.v1alpha.SearchResponse.SearchResult\"S\n\n" + + "\014one_box_type\030\001 \001(\0162L.google.cloud.discover" + + "yengine.v1alpha.SearchResponse.OneBoxResult.OneBoxType\022Y\n" + + "\016search_results\030\002 \003(\0132A" + + ".google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult\"S\n\n" + "OneBoxType\022\034\n" + "\030ONE_BOX_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006PEOPLE\020\001\022\020\n" + "\014ORGANIZATION\020\002\022\t\n" + "\005SLACK\020\0032\216\004\n\r" + "SearchService\022\250\003\n" - + "\006Search\0223.google.cloud.discoveryengine" - + ".v1alpha.SearchRequest\0324.google.cloud.di" - + "scoveryengine.v1alpha.SearchResponse\"\262\002\202" - + "\323\344\223\002\253\002\"U/v1alpha/{serving_config=project" - + "s/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zh\"c/v1alpha/{serving_co" - + "nfig=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:search:" - + "\001*Ze\"`/v1alpha/{serving_config=projects/*/locations/*/collections/*/engines/*/se" - + "rvingConfigs/*}:search:\001*\032R\312A\036discoverye" - + "ngine.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\236\002\n" - + "(com.google.cloud.discoveryengine.v1alphaB\022Sear" - + "chServiceProtoP\001ZRcloud.google.com/go/discoveryengine/apiv1alpha/discoveryengine" - + "pb;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002" - + "$Google.Cloud.DiscoveryEngine.V1Alpha\312\002$" - + "Google\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'G" - + "oogle::Cloud::DiscoveryEngine::V1alphab\006proto3" + + "\006Search\0223.google.cloud.discoveryengine.v1alpha.SearchRequest\0324.googl" + + "e.cloud.discoveryengine.v1alpha.SearchRe" + + "sponse\"\262\002\202\323\344\223\002\253\002\"U/v1alpha/{serving_conf" + + "ig=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zh\"c/v1alpha/{" + + "serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/" + + "*}:search:\001*Ze\"`/v1alpha/{serving_config=projects/*/locations/*/collections/*/en" + + "gines/*/servingConfigs/*}:search:\001*\032R\312A\036" + + "discoveryengine.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB\236\002\n" + + "(com.google.cloud.discoveryengine.v1alphaB\022SearchServiceProtoP\001ZRcloud.google" + + ".com/go/discoveryengine/apiv1alpha/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002$Google.Cloud.DiscoveryEngine." + + "V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V" + + "1alpha\352\002\'Google::Cloud::DiscoveryEngine::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto index 63137e36a073..0f110a8981a3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto @@ -694,6 +694,10 @@ message SearchRequest { // Enables Search As You Type. ENABLED = 2; + + // Automatic switching between search-as-you-type and standard search + // modes, ideal for single-API implementations (e.g., debouncing). + AUTO = 3; } // The condition under which search as you type should occur. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java index b76130ee93da..860fd14c7fdd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java @@ -27876,6 +27876,17 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * ENABLED = 2; */ ENABLED(2), + /** + * + * + *
+       * Automatic switching between search-as-you-type and standard search
+       * modes, ideal for single-API implementations (e.g., debouncing).
+       * 
+ * + * AUTO = 3; + */ + AUTO(3), UNRECOGNIZED(-1), ; @@ -27923,6 +27934,18 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLED_VALUE = 2; + /** + * + * + *
+       * Automatic switching between search-as-you-type and standard search
+       * modes, ideal for single-API implementations (e.g., debouncing).
+       * 
+ * + * AUTO = 3; + */ + public static final int AUTO_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -27953,6 +27976,8 @@ public static Condition forNumber(int value) { return DISABLED; case 2: return ENABLED; + case 3: + return AUTO; default: return null; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java index ecd0cd4d8735..e5f1f58b8fde 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java @@ -276,7 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032/google/cloud/discoveryengine/v1beta/chunk.proto\0320google/cloud/discov" + "eryengine/v1beta/common.proto\0322google/cl" - + "oud/discoveryengine/v1beta/document.proto\032\034google/protobuf/struct.proto\"\2207\n\r" + + "oud/discoveryengine/v1beta/document.proto\032\034google/protobuf/struct.proto\"\2327\n\r" + "SearchRequest\022L\n" + "\016serving_config\030\001 \001(\tB4\340A\002\372A.\n" + ",discoveryengine.googleapis.com/ServingConfig\022:\n" @@ -460,21 +460,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031FilterExtractionCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" - + "\007ENABLED\020\002\032\275\001\n" + + "\007ENABLED\020\002\032\307\001\n" + "\023SearchAsYouTypeSpec\022c\n" + "\tcondition\030\001 \001(\0162P.google.cloud" - + ".discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition\"A\n" + + ".discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition\"K\n" + "\tCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" - + "\007ENABLED\020\002\032q\n" + + "\007ENABLED\020\002\022\010\n" + + "\004AUTO\020\003\032q\n" + "\013SessionSpec\022\020\n" + "\010query_id\030\001 \001(\t\022,\n" + "\037search_result_persistence_count\030\002 \001(\005H\000\210\001\001B\"\n" + " _search_result_persistence_count\032\246\001\n" + "\023PersonalizationSpec\022Y\n" - + "\004mode\030\001 \001(\0162K.google.cloud.discoveryengine.v" - + "1beta.SearchRequest.PersonalizationSpec.Mode\"4\n" + + "\004mode\030\001 \001(\0162K.google.cloud.discove" + + "ryengine.v1beta.SearchRequest.PersonalizationSpec.Mode\"4\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\010\n" + "\004AUTO\020\001\022\014\n" @@ -496,40 +497,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021RANK_BY_EMBEDDING\020\003\022\023\n" + "\017RANK_BY_FORMULA\020\004\"\004\010\001\020\001\"\004\010\002\020\002\"\3715\n" + "\016SearchResponse\022Q\n" - + "\007results\030\001" - + " \003(\0132@.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\022I\n" + + "\007results\030\001 \003(\0132@.google.cloud.discover" + + "yengine.v1beta.SearchResponse.SearchResult\022I\n" + "\006facets\030\002" + " \003(\01329.google.cloud.discoveryengine.v1beta.SearchResponse.Facet\022d\n" - + "\024guided_search_result\030\010 \001(\0132F.google.cloud.discove" - + "ryengine.v1beta.SearchResponse.GuidedSearchResult\022\022\n\n" + + "\024guided_search_result\030\010 \001(\0132F.google.clo" + + "ud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult\022\022\n\n" + "total_size\030\003 \001(\005\022\031\n" + "\021attribution_token\030\004 \001(\t\022\024\n" + "\014redirect_uri\030\014 \001(\t\022\027\n" + "\017next_page_token\030\005 \001(\t\022\027\n" + "\017corrected_query\030\007 \001(\t\022L\n" - + "\007summary\030\t \001(\0132;.google.cloud" - + ".discoveryengine.v1beta.SearchResponse.Summary\022\030\n" + + "\007summary\030\t \001(\0132;.go" + + "ogle.cloud.discoveryengine.v1beta.SearchResponse.Summary\022\030\n" + "\020applied_controls\030\n" + " \003(\t\022e\n" - + "\025geo_search_debug_info\030\020 \003(\0132F.google.cloud.d" - + "iscoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo\022d\n" - + "\024query_expansion_info\030\016 \001(\0132F.google.cloud.discoveryengine.v1b" - + "eta.SearchResponse.QueryExpansionInfo\022\214\001\n" - + ")natural_language_query_understanding_info\030\017" - + " \001(\0132Y.google.cloud.discoveryengine" - + ".v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo\022U\n" - + "\014session_info\030\023 \001" - + "(\0132?.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo\022Y\n" - + "\017one_box_results\030\024 \003(\0132@.google.cloud.discoveryeng" - + "ine.v1beta.SearchResponse.OneBoxResult\032\302\010\n" + + "\025geo_search_debug_info\030\020 \003(\0132F.goog" + + "le.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo\022d\n" + + "\024query_expansion_info\030\016 \001(\0132F.google.cloud.discovery" + + "engine.v1beta.SearchResponse.QueryExpansionInfo\022\214\001\n" + + ")natural_language_query_understanding_info\030\017 \001(\0132Y.google.cloud.disco" + + "veryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo\022U\n" + + "\014session_info\030\023" + + " \001(\0132?.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo\022Y\n" + + "\017one_box_results\030\024 \003(\0132@.google.cloud.di" + + "scoveryengine.v1beta.SearchResponse.OneBoxResult\032\302\010\n" + "\014SearchResult\022\n\n" + "\002id\030\001 \001(\t\022?\n" + "\010document\030\002 \001(\0132-.google.cloud.discoveryengine.v1beta.Document\0229\n" + "\005chunk\030\022 \001(\0132*.google.cloud.discoveryengine.v1beta.Chunk\022g\n" - + "\014model_scores\030\004 \003(\0132Q.google.cloud.discoveryen" - + "gine.v1beta.SearchResponse.SearchResult.ModelScoresEntry\022g\n" - + "\014rank_signals\030\007 \001(\0132L.google.cloud.discoveryengine.v1beta.Sea" - + "rchResponse.SearchResult.RankSignalsB\003\340A\001\032c\n" + + "\014model_scores\030\004 \003(\0132Q.google.cloud.d" + + "iscoveryengine.v1beta.SearchResponse.SearchResult.ModelScoresEntry\022g\n" + + "\014rank_signals\030\007 \001(\0132L.google.cloud.discoveryengine." + + "v1beta.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032c\n" + "\020ModelScoresEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" + "\005value\030\002" @@ -544,9 +544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014document_age\030\007 \001(\002B\003\340A\001H\005\210\001\001\022!\n" + "\017boosting_factor\030\010 \001(\002B\003\340A\001H\006\210\001\001\022\031\n" + "\014default_rank\030 \001(\002B\003\340A\001\022v\n" - + "\016custom_signals\030! \003(\0132Y.google.cloud." - + "discoveryengine.v1beta.SearchResponse.Se" - + "archResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + + "\016custom_signals\030! \003(\0132Y.google.cloud.discoveryengine.v1beta.SearchR" + + "esponse.SearchResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + "\014CustomSignal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\002B\003\340A\001B\033\n" @@ -559,41 +558,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_boosting_factorJ\004\010\005\020\006\032\201\002\n" + "\005Facet\022\013\n" + "\003key\030\001 \001(\t\022T\n" - + "\006values\030\002 \003(\0132D.google.cloud.discoveryengin" - + "e.v1beta.SearchResponse.Facet.FacetValue\022\025\n\r" + + "\006values\030\002 \003(\0132D.google.cloud.disc" + + "overyengine.v1beta.SearchResponse.Facet.FacetValue\022\025\n\r" + "dynamic_facet\030\003 \001(\010\032~\n\n" + "FacetValue\022\017\n" + "\005value\030\001 \001(\tH\000\022A\n" - + "\010interval\030\002 \001(\0132-.googl" - + "e.cloud.discoveryengine.v1beta.IntervalH\000\022\r\n" + + "\010interval\030\002 \001" + + "(\0132-.google.cloud.discoveryengine.v1beta.IntervalH\000\022\r\n" + "\005count\030\003 \001(\003B\r\n" + "\013facet_value\032\363\001\n" + "\022GuidedSearchResult\022y\n" - + "\025refinement_attributes\030\001 \003(\0132Z.google.cloud.discoveryengine.v1b" - + "eta.SearchResponse.GuidedSearchResult.RefinementAttribute\022\033\n" + + "\025refinement_attributes\030\001 \003(\0132Z.google.cloud.discovery" + + "engine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute\022\033\n" + "\023follow_up_questions\030\002 \003(\t\032E\n" + "\023RefinementAttribute\022\025\n\r" + "attribute_key\030\001 \001(\t\022\027\n" + "\017attribute_value\030\002 \001(\t\032\263\014\n" + "\007Summary\022\024\n" + "\014summary_text\030\001 \001(\t\022q\n" - + "\027summary_skipped_reasons\030\002 \003(\0162P.google.cloud." - + "discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason\022g\n" - + "\021safety_attributes\030\003 \001(\0132L.google.cloud.discoveryen" - + "gine.v1beta.SearchResponse.Summary.SafetyAttributes\022n\n" - + "\025summary_with_metadata\030\004 \001(\0132O.google.cloud.discoveryengine.v1beta" - + ".SearchResponse.Summary.SummaryWithMetadata\0326\n" + + "\027summary_skipped_reasons\030\002 \003(\0162P.goo" + + "gle.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason\022g\n" + + "\021safety_attributes\030\003 \001(\0132L.google.cloud.d" + + "iscoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes\022n\n" + + "\025summary_with_metadata\030\004 \001(\0132O.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.Summary.SummaryWithMetadata\0326\n" + "\020SafetyAttributes\022\022\n\n" + "categories\030\001 \003(\t\022\016\n" + "\006scores\030\002 \003(\002\032k\n" + "\020CitationMetadata\022W\n" - + "\tcitations\030\001 \003(\0132D.google.cloud.discov" - + "eryengine.v1beta.SearchResponse.Summary.Citation\032\217\001\n" + + "\tcitations\030\001 \003(\0132D.google.cl" + + "oud.discoveryengine.v1beta.SearchResponse.Summary.Citation\032\217\001\n" + "\010Citation\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\022[\n" - + "\007sources\030\003 \003(\0132J" - + ".google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource\032)\n" + + "\007sources\030\003 \003(\0132J.google.cloud.discoveryengine." + + "v1beta.SearchResponse.Summary.CitationSource\032)\n" + "\016CitationSource\022\027\n" + "\017reference_index\030\004 \001(\003\032\220\002\n" + "\tReference\022\r\n" @@ -601,17 +600,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010document\030\002 \001(\tB/\340A\002\372A)\n" + "\'discoveryengine.googleapis.com/Document\022\013\n" + "\003uri\030\003 \001(\t\022j\n" - + "\016chunk_contents\030\004 \003(\0132R.google.cloud.discoveryengin" - + "e.v1beta.SearchResponse.Summary.Reference.ChunkContent\0328\n" + + "\016chunk_contents\030\004 \003(\0132R.google.cloud.disc" + + "overyengine.v1beta.SearchResponse.Summary.Reference.ChunkContent\0328\n" + "\014ChunkContent\022\017\n" + "\007content\030\001 \001(\t\022\027\n" + "\017page_identifier\030\002 \001(\t\032\352\001\n" + "\023SummaryWithMetadata\022\017\n" + "\007summary\030\001 \001(\t\022g\n" - + "\021citation_metadata\030\002 \001(\0132L.google.cloud.disc" - + "overyengine.v1beta.SearchResponse.Summary.CitationMetadata\022Y\n\n" - + "references\030\003 \003(\0132E" - + ".google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference\"\343\002\n" + + "\021citation_metadata\030\002 \001(\0132L.google." + + "cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata\022Y\n\n" + + "references\030\003 \003(\0132E.google.cloud.discoveryengine." + + "v1beta.SearchResponse.Summary.Reference\"\343\002\n" + "\024SummarySkippedReason\022&\n" + "\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020\000\022\035\n" + "\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n" @@ -632,22 +631,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%NaturalLanguageQueryUnderstandingInfo\022\031\n" + "\021extracted_filters\030\001 \001(\t\022\027\n" + "\017rewritten_query\030\002 \001(\t\022\230\001\n" - + "\033structured_extracted_filter\030\003 \001(\0132s.google" - + ".cloud.discoveryengine.v1beta.SearchResp" - + "onse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter\032\210\017\n" + + "\033structured_extracted_filter\030\003 \001(" + + "\0132s.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnder" + + "standingInfo.StructuredExtractedFilter\032\210\017\n" + "\031StructuredExtractedFilter\022\222\001\n\n" - + "expression\030\001 \001(\0132~.google.cloud.discoveryengine.v1beta.Se" - + "archResponse.NaturalLanguageQueryUnderst" - + "andingInfo.StructuredExtractedFilter.Expression\032M\n" - + "\020StringConstraint\022\022\n\n" + + "expression\030\001 \001(\0132~.google.cloud.discoveryengine" + + ".v1beta.SearchResponse.NaturalLanguageQu" + + "eryUnderstandingInfo.StructuredExtractedFilter.Expression\032M\n" + + "\020StringConstraint\022\022\n" + + "\n" + "field_name\030\001 \001(\t\022\016\n" + "\006values\030\002 \003(\t\022\025\n\r" + "query_segment\030\003 \001(\t\032\372\002\n" - + "\020NumberConstraint\022\022\n\n" + + "\020NumberConstraint\022\022\n" + + "\n" + "field_name\030\001 \001(\t\022\244\001\n\n" - + "comparison\030\002 \001(\0162\217\001.google.cloud.discoveryengine.v1beta.SearchRespon" - + "se.NaturalLanguageQueryUnderstandingInfo" - + ".StructuredExtractedFilter.NumberConstraint.Comparison\022\r\n" + + "comparison\030\002 \001(\0162\217\001.google.cloud.discoveryengine.v1beta.Se" + + "archResponse.NaturalLanguageQueryUnderst" + + "andingInfo.StructuredExtractedFilter.NumberConstraint.Comparison\022\r\n" + "\005value\030\003 \001(\001\022\025\n\r" + "query_segment\030\004 \001(\t\"\204\001\n\n" + "Comparison\022\032\n" @@ -664,38 +665,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tlongitude\030\005 \001(\001\022\030\n" + "\020radius_in_meters\030\003 \001(\002\032\245\001\n\r" + "AndExpression\022\223\001\n" - + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta.SearchRes" - + "ponse.NaturalLanguageQueryUnderstandingI" - + "nfo.StructuredExtractedFilter.Expression\032\244\001\n" + + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta" + + ".SearchResponse.NaturalLanguageQueryUnde" + + "rstandingInfo.StructuredExtractedFilter.Expression\032\244\001\n" + "\014OrExpression\022\223\001\n" - + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta.Se" - + "archResponse.NaturalLanguageQueryUnderst" - + "andingInfo.StructuredExtractedFilter.Expression\032\275\006\n\n" + + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine" + + ".v1beta.SearchResponse.NaturalLanguageQu" + + "eryUnderstandingInfo.StructuredExtractedFilter.Expression\032\275\006\n\n" + "Expression\022\242\001\n" - + "\021string_constraint\030\001 \001(\0132\204\001.google.cloud.discoveryengi" - + "ne.v1beta.SearchResponse.NaturalLanguage" - + "QueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintH\000\022\242\001\n" - + "\021number_constraint\030\002 \001(\0132\204\001.google.cloud.discover" - + "yengine.v1beta.SearchResponse.NaturalLan" - + "guageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintH\000\022\254\001\n" - + "\026geolocation_constraint\030\003 \001(\0132\211\001.google.clou" + + "\021string_constraint\030\001 \001(\0132\204\001.google.cloud.dis" + + "coveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Structu" + + "redExtractedFilter.StringConstraintH\000\022\242\001\n" + + "\021number_constraint\030\002 \001(\0132\204\001.google.clou" + "d.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.St" - + "ructuredExtractedFilter.GeolocationConstraintH\000\022\226\001\n" - + "\010and_expr\030\004 \001(\0132\201\001.google.clo" - + "ud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.S" - + "tructuredExtractedFilter.AndExpressionH\000\022\224\001\n" - + "\007or_expr\030\005 \001(\0132\200\001.google.cloud.disco" - + "veryengine.v1beta.SearchResponse.Natural" - + "LanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpressionH\000B\006\n" + + "ructuredExtractedFilter.NumberConstraintH\000\022\254\001\n" + + "\026geolocation_constraint\030\003 \001(\0132\211\001.g" + + "oogle.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstand" + + "ingInfo.StructuredExtractedFilter.GeolocationConstraintH\000\022\226\001\n" + + "\010and_expr\030\004 \001(\0132\201\001.google.cloud.discoveryengine.v1beta.Sear" + + "chResponse.NaturalLanguageQueryUnderstan" + + "dingInfo.StructuredExtractedFilter.AndExpressionH\000\022\224\001\n" + + "\007or_expr\030\005 \001(\0132\200\001.google.c" + + "loud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo" + + ".StructuredExtractedFilter.OrExpressionH\000B\006\n" + "\004expr\032-\n" + "\013SessionInfo\022\014\n" + "\004name\030\001 \001(\t\022\020\n" + "\010query_id\030\002 \001(\t\032\265\002\n" + "\014OneBoxResult\022a\n" - + "\014one_box_type\030\001 \001(\0162K.google.cloud.discoveryengine.v1b" - + "eta.SearchResponse.OneBoxResult.OneBoxType\022X\n" - + "\016search_results\030\002 \003(\0132@.google.clou" - + "d.discoveryengine.v1beta.SearchResponse.SearchResult\"h\n\n" + + "\014one_box_type\030\001 \001(\0162K.google.cloud.discovery" + + "engine.v1beta.SearchResponse.OneBoxResult.OneBoxType\022X\n" + + "\016search_results\030\002 \003(\0132@.g" + + "oogle.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\"h\n\n" + "OneBoxType\022\034\n" + "\030ONE_BOX_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006PEOPLE\020\001\022\020\n" @@ -703,28 +704,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005SLACK\020\003\022\023\n" + "\017KNOWLEDGE_GRAPH\020\0042\277\007\n\r" + "SearchService\022\243\003\n" - + "\006Search\0222.google.cloud.discoveryengine.v1beta.SearchRequest\032" - + "3.google.cloud.discoveryengine.v1beta.Se" - + "archResponse\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{serving" - + "_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zg\"b/v1be" + + "\006Search\0222.google.cloud.discoveryengine.v1beta.Sear" + + "chRequest\0323.google.cloud.discoveryengine" + + ".v1beta.SearchResponse\"\257\002\202\323\344\223\002\250\002\"T/v1bet" + + "a/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001" + + "*Zg\"b/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/s" + + "ervingConfigs/*}:search:\001*Zd\"_/v1beta/{serving_config=projects/*/locations/*/col" + + "lections/*/engines/*/servingConfigs/*}:search:\001*\022\263\003\n\n" + + "SearchLite\0222.google.cloud.discoveryengine.v1beta.SearchRequest\0323.go" + + "ogle.cloud.discoveryengine.v1beta.Search" + + "Response\"\273\002\202\323\344\223\002\264\002\"X/v1beta/{serving_con" + + "fig=projects/*/locations/*/dataStores/*/servingConfigs/*}:searchLite:\001*Zk\"f/v1be" + "ta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConf" - + "igs/*}:search:\001*Zd\"_/v1beta/{serving_config=projects/*/locations/*/collections/*" - + "/engines/*/servingConfigs/*}:search:\001*\022\263\003\n\n" - + "SearchLite\0222.google.cloud.discoveryengine.v1beta.SearchRequest\0323.google.cloud" - + ".discoveryengine.v1beta.SearchResponse\"\273" - + "\002\202\323\344\223\002\264\002\"X/v1beta/{serving_config=projec" - + "ts/*/locations/*/dataStores/*/servingConfigs/*}:searchLite:\001*Zk\"f/v1beta/{servin" - + "g_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:sea" - + "rchLite:\001*Zh\"c/v1beta/{serving_config=projects/*/locations/*/collections/*/engin" - + "es/*/servingConfigs/*}:searchLite:\001*\032R\312A" - + "\036discoveryengine.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platformB\231\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\022SearchServiceProtoP\001ZQcloud.google" - + ".com/go/discoveryengine/apiv1beta/discov" - + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" - + "YENGINE\252\002#Google.Cloud.DiscoveryEngine.V" - + "1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1b" - + "eta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "igs/*}:searchLite:\001*Zh\"c/v1beta/{serving_config=projects/*/locations/*/collectio" + + "ns/*/engines/*/servingConfigs/*}:searchL" + + "ite:\001*\032R\312A\036discoveryengine.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/cloud-platformB\231\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\022SearchServiceProtoP\001ZQcl" + + "oud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" + + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" + + "Engine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto index fcbd928d3c29..94c8f6bd18e6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto @@ -748,6 +748,10 @@ message SearchRequest { // Enables Search As You Type. ENABLED = 2; + + // Automatic switching between search-as-you-type and standard search + // modes, ideal for single-API implementations (e.g., debouncing). + AUTO = 3; } // The condition under which search as you type should occur. diff --git a/java-distributedcloudedge/.OwlBot-hermetic.yaml b/java-distributedcloudedge/.OwlBot-hermetic.yaml index 9448af24f929..9f1ab595cbea 100644 --- a/java-distributedcloudedge/.OwlBot-hermetic.yaml +++ b/java-distributedcloudedge/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-distributedcloudedge/samples/snippets/generated" deep-preserve-regex: -- "/java-distributedcloudedge/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/edgecontainer/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 17a203bcfc3a..72c17a300546 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.85.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.85.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.87.0" ``` ## Authentication @@ -175,7 +175,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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-dlp/.OwlBot-hermetic.yaml index cf08029e3799..bdf0a59ff171 100644 --- a/java-dlp/.OwlBot-hermetic.yaml +++ b/java-dlp/.OwlBot-hermetic.yaml @@ -20,21 +20,22 @@ deep-remove-regex: - "/java-dlp/samples/snippets/generated" deep-preserve-regex: -- "/java-dlp/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateNames.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectFindingName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateNames.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationDeidentifyTemplateName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationInspectTemplateName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationStoredInfoTypeName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDeidentifyTemplateName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectInspectTemplateName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectJobTriggerName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectStoredInfoTypeName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeNames.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedDeidentifyTemplateName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedInspectTemplateName.java" -- "/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedStoredInfoTypeName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateNames.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectFindingName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateNames.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationDeidentifyTemplateName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationInspectTemplateName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationStoredInfoTypeName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDeidentifyTemplateName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectInspectTemplateName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectJobTriggerName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectStoredInfoTypeName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeNames.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedDeidentifyTemplateName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedInspectTemplateName.java" +- "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedStoredInfoTypeName.java" deep-copy-regex: - source: "/google/privacy/dlp/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-dlp/README.md b/java-dlp/README.md index c9dffaff65ee..be6d92199284 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.92.0 + 3.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.92.0' +implementation 'com.google.cloud:google-cloud-dlp:3.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.94.0" ``` ## Authentication @@ -175,7 +175,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.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.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-dms/.OwlBot-hermetic.yaml b/java-dms/.OwlBot-hermetic.yaml index bf1c4ad4a755..ba833f573253 100644 --- a/java-dms/.OwlBot-hermetic.yaml +++ b/java-dms/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-dms/proto-google-.*/src" - "/java-dms/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/clouddms/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dms/$1/proto-google-cloud-dms-$1/src" diff --git a/java-dms/README.md b/java-dms/README.md index 0e9c901c5dfd..d46c8b15b84d 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.87.0 + 2.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.87.0' +implementation 'com.google.cloud:google-cloud-dms:2.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.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-dns/.OwlBot-hermetic.yaml b/java-dns/.OwlBot-hermetic.yaml index e754fe9bb393..fea1c35b9cc3 100644 --- a/java-dns/.OwlBot-hermetic.yaml +++ b/java-dns/.OwlBot-hermetic.yaml @@ -14,3 +14,6 @@ api-name: dns +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + diff --git a/java-document-ai/.OwlBot-hermetic.yaml b/java-document-ai/.OwlBot-hermetic.yaml index 91191ff8897b..8959e8b04037 100644 --- a/java-document-ai/.OwlBot-hermetic.yaml +++ b/java-document-ai/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-document-ai/proto-google-.*/src" - "/java-document-ai/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/documentai/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-document-ai/$1/proto-google-cloud-document-ai-$1/src" diff --git a/java-document-ai/README.md b/java-document-ai/README.md index a198d4216df9..4b6bd240edec 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.92.0 + 2.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.92.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.94.0" ``` ## Authentication @@ -175,7 +175,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.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.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-domains/.OwlBot-hermetic.yaml b/java-domains/.OwlBot-hermetic.yaml index eb7e836ad5ff..9a459f552625 100644 --- a/java-domains/.OwlBot-hermetic.yaml +++ b/java-domains/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-domains/proto-google-.*/src" - "/java-domains/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/domains/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-domains/$1/proto-google-cloud-domains-$1/src" diff --git a/java-domains/README.md b/java-domains/README.md index 35e806b62700..c236b973d203 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.85.0 + 1.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.85.0' +implementation 'com.google.cloud:google-cloud-domains:1.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.87.0" ``` ## Authentication @@ -175,7 +175,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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-edgenetwork/.OwlBot-hermetic.yaml index b7f47c1026d7..715992af0f10 100644 --- a/java-edgenetwork/.OwlBot-hermetic.yaml +++ b/java-edgenetwork/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-edgenetwork/samples/snippets/generated" deep-preserve-regex: -- "/java-edgenetwork/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/edgenetwork/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index d8b3f8166183..63336ec90058 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.56.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.56.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.58.0" ``` ## Authentication @@ -175,7 +175,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.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/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-enterpriseknowledgegraph/.OwlBot-hermetic.yaml b/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml index 7ed057bb97a1..6dee08352840 100644 --- a/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml +++ b/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-enterpriseknowledgegraph/samples/snippets/generated" deep-preserve-regex: -- "/java-enterpriseknowledgegraph/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 46ee3110b1f2..43d63f83faee 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.84.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.84.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.86.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-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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/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-errorreporting/.OwlBot-hermetic.yaml b/java-errorreporting/.OwlBot-hermetic.yaml index cbbbf0ed7680..a1e48c565f94 100644 --- a/java-errorreporting/.OwlBot-hermetic.yaml +++ b/java-errorreporting/.OwlBot-hermetic.yaml @@ -20,9 +20,10 @@ deep-remove-regex: - "/java-errorreporting/samples/snippets/generated" deep-preserve-regex: -- "/java-errorreporting/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-errorreporting/google-cloud-errorreporting/src/test/java/com/google/devtools/clouderrorreporting/v1beta1/ITSystemTest.java" -- "/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GroupName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-errorreporting/src/test/java/com/google/devtools/clouderrorreporting/v1beta1/ITSystemTest.java" +- "/.*proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GroupName.java" deep-copy-regex: - source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 78101e7303a7..35a613b1cd6c 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.209.0-beta + 0.211.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.209.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.211.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.209.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.211.0-beta" ``` ## 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-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.209.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.211.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/.OwlBot-hermetic.yaml b/java-essential-contacts/.OwlBot-hermetic.yaml index a3df17f44336..680559efcaa3 100644 --- a/java-essential-contacts/.OwlBot-hermetic.yaml +++ b/java-essential-contacts/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-essential-contacts/proto-google-.*/src" - "/java-essential-contacts/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/essentialcontacts/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-essential-contacts/$1/proto-google-cloud-essential-contacts-$1/src" diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index c6cfb3b19bec..65e00a77d6ab 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.88.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-eventarc-publishing/.OwlBot-hermetic.yaml index 6422000acdc1..3a4e887b35d8 100644 --- a/java-eventarc-publishing/.OwlBot-hermetic.yaml +++ b/java-eventarc-publishing/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-eventarc-publishing/samples/snippets/generated" deep-preserve-regex: -- "/java-eventarc-publishing/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 78b14ba7d1c1..5645bec3c71e 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.88.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.88.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.90.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-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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-eventarc/.OwlBot-hermetic.yaml index 9da183dae769..c8218dd34cad 100644 --- a/java-eventarc/.OwlBot-hermetic.yaml +++ b/java-eventarc/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-eventarc/google-.*/src" deep-preserve-regex: -- "/java-eventarc/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/eventarc/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 32faaa904f24..c8b95a158326 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.88.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-filestore/.OwlBot-hermetic.yaml index 7d3011160377..ce2daa3e6763 100644 --- a/java-filestore/.OwlBot-hermetic.yaml +++ b/java-filestore/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-filestore/google-.*/src" deep-preserve-regex: -- "/java-filestore/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/filestore/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-filestore/README.md b/java-filestore/README.md index 09bd9602d109..f46a85801a7d 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.89.0 + 1.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.89.0' +implementation 'com.google.cloud:google-cloud-filestore:1.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-financialservices/.OwlBot-hermetic.yaml index 12d991f366e4..bd926e264c52 100644 --- a/java-financialservices/.OwlBot-hermetic.yaml +++ b/java-financialservices/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-financialservices/samples/snippets/generated" deep-preserve-regex: -- "/java-financialservices/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/financialservices/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-financialservices/README.md b/java-financialservices/README.md index 04e7542fda5e..c879c39a20c8 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.29.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.29.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.31.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-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.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/.OwlBot-hermetic.yaml b/java-functions/.OwlBot-hermetic.yaml index 67c722b0ce6e..81a03b0007ca 100644 --- a/java-functions/.OwlBot-hermetic.yaml +++ b/java-functions/.OwlBot-hermetic.yaml @@ -20,6 +20,9 @@ deep-remove-regex: - "/java-functions/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/functions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-functions/$1/proto-google-cloud-functions-$1/src" diff --git a/java-functions/README.md b/java-functions/README.md index 5b4f5569b6ec..937022e7422b 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.90.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.90.0' +implementation 'com.google.cloud:google-cloud-functions:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.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-gdchardwaremanagement/.OwlBot-hermetic.yaml b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml index 792ebbba21b4..70c7f35214c2 100644 --- a/java-gdchardwaremanagement/.OwlBot-hermetic.yaml +++ b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-gdchardwaremanagement/samples/snippets/generated" deep-preserve-regex: -- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index 727114506b9f..f38916118760 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.43.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.43.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.45.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-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.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-geminidataanalytics/.OwlBot-hermetic.yaml b/java-geminidataanalytics/.OwlBot-hermetic.yaml index 11ff178488ac..b1949c92ae25 100644 --- a/java-geminidataanalytics/.OwlBot-hermetic.yaml +++ b/java-geminidataanalytics/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-geminidataanalytics/samples/snippets/generated" deep-preserve-regex: -- "/java-geminidataanalytics/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 973bb8edb9b2..573c9bea3218 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.16.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.16.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.18.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-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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/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-gke-backup/.OwlBot-hermetic.yaml b/java-gke-backup/.OwlBot-hermetic.yaml index 147181105e13..51cb1bf65bb7 100644 --- a/java-gke-backup/.OwlBot-hermetic.yaml +++ b/java-gke-backup/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-gke-backup/google-.*/src" deep-preserve-regex: -- "/java-gke-backup/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/gkebackup/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 1dfdb7dbfedf..959e09a5f18b 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.87.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.87.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.89.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-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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/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-gke-connect-gateway/.OwlBot-hermetic.yaml b/java-gke-connect-gateway/.OwlBot-hermetic.yaml index 0836e81c8682..16bd4a77ffbf 100644 --- a/java-gke-connect-gateway/.OwlBot-hermetic.yaml +++ b/java-gke-connect-gateway/.OwlBot-hermetic.yaml @@ -18,6 +18,9 @@ deep-remove-regex: - "/java-gke-connect-gateway/proto-google-.*/src" - "/java-gke-connect-gateway/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gke-connect-gateway/$1/proto-google-cloud-gke-connect-gateway-$1/src" diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 5110e6ffb43f..f1941ef99307 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.89.0 + 0.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.89.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-gke-multi-cloud/.OwlBot-hermetic.yaml index ae9a6e474eeb..d0362b60f2d0 100644 --- a/java-gke-multi-cloud/.OwlBot-hermetic.yaml +++ b/java-gke-multi-cloud/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-gke-multi-cloud/google-.*/src" deep-preserve-regex: -- "/java-gke-multi-cloud/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/gkemulticloud/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 03c12bf86418..d46db469470b 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.87.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.87.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.89.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-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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/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-gkehub/.OwlBot-hermetic.yaml b/java-gkehub/.OwlBot-hermetic.yaml index fc4270ef7886..9a55f24ec07e 100644 --- a/java-gkehub/.OwlBot-hermetic.yaml +++ b/java-gkehub/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-gkehub/proto-google-.*/src" - "/java-gkehub/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/gkehub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gkehub/$1/proto-google-cloud-gkehub-$1/src" diff --git a/java-gkehub/README.md b/java-gkehub/README.md index b63d6c10fd5f..ba559b0eaca6 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.88.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-gkerecommender/.OwlBot-hermetic.yaml index c382d5f47606..b4cf42e7300a 100644 --- a/java-gkerecommender/.OwlBot-hermetic.yaml +++ b/java-gkerecommender/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-gkerecommender/samples/snippets/generated" deep-preserve-regex: -- "/java-gkerecommender/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/gkerecommender/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-gkerecommender/README.md b/java-gkerecommender/README.md index 1701d993831c..6300ed6fe163 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkerecommender - 0.8.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkerecommender:0.8.0' +implementation 'com.google.cloud:google-cloud-gkerecommender:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.10.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-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.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/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-grafeas/.OwlBot-hermetic.yaml b/java-grafeas/.OwlBot-hermetic.yaml index 17dcf7028e3e..f57dd3985cba 100644 --- a/java-grafeas/.OwlBot-hermetic.yaml +++ b/java-grafeas/.OwlBot-hermetic.yaml @@ -17,8 +17,9 @@ deep-remove-regex: - "/src" deep-preserve-regex: -- "/java-grafeas/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-grafeas/samples/snippets/generated" +- "/.*src/main/java/.*/stub/Version.java" +- "/.*src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*samples/snippets/generated" deep-copy-regex: - source: "/grafeas/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-grafeas/README.md b/java-grafeas/README.md index c7d09e24c97b..bed34790782d 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: io.grafeas grafeas - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.89.0' +implementation 'io.grafeas:grafeas:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.89.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.91.0" ``` ## Authentication @@ -152,7 +152,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-gsuite-addons/.OwlBot-hermetic.yaml index bb03f15c89cf..ea7940af5140 100644 --- a/java-gsuite-addons/.OwlBot-hermetic.yaml +++ b/java-gsuite-addons/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-gsuite-addons/proto-google-.*/src" - "/java-gsuite-addons/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/gsuiteaddons/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gsuite-addons/$1/proto-google-cloud-gsuite-addons-$1/src" diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index b45740ea6bae..b66c4d1cd6fa 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.88.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-hypercomputecluster/.OwlBot-hermetic.yaml index b1b3bad02ca9..051c5d42a39f 100644 --- a/java-hypercomputecluster/.OwlBot-hermetic.yaml +++ b/java-hypercomputecluster/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-hypercomputecluster/samples/snippets/generated" deep-preserve-regex: -- "/java-hypercomputecluster/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index 23ec54745824..fa07c6e2560e 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-hypercomputecluster - 0.8.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.8.0' +implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.10.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-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.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/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-iam-admin/.OwlBot-hermetic.yaml b/java-iam-admin/.OwlBot-hermetic.yaml index 265804006a7b..e74f012edbc3 100644 --- a/java-iam-admin/.OwlBot-hermetic.yaml +++ b/java-iam-admin/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-iam-admin/samples/snippets/generated" deep-preserve-regex: -- "/java-iam-admin/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/iam/admin/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 48249dbd89d3..d4c7a05d1728 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.83.0 + 3.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.83.0' +implementation 'com.google.cloud:google-iam-admin:3.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.83.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.85.0" ``` ## Authentication @@ -175,7 +175,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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.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-iam/.OwlBot-hermetic.yaml b/java-iam/.OwlBot-hermetic.yaml index 9636741ac575..758aec6b3844 100644 --- a/java-iam/.OwlBot-hermetic.yaml +++ b/java-iam/.OwlBot-hermetic.yaml @@ -18,8 +18,9 @@ deep-remove-regex: - "/java-iam/proto-google-.*/src" deep-preserve-regex: - - "/java-iam/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - - "/java-iam/samples/snippets/generated" + - "/.*google-.*/src/main/java/.*/stub/Version.java" + - "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + - "/.*samples/snippets/generated" deep-copy-regex: - source: "/google/iam/v2beta/.*-java/gapic-google-.*/src" diff --git a/java-iam/README.md b/java-iam/README.md index 1dc34167f317..45a76e6ef951 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.62.0 + 1.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.62.0' +implementation 'com.google.cloud:google-iam-policy:1.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.62.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.87.0" ``` ## Authentication @@ -175,7 +175,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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-iamcredentials/.OwlBot-hermetic.yaml index c5633ecd4886..a46cb39bbbc4 100644 --- a/java-iamcredentials/.OwlBot-hermetic.yaml +++ b/java-iamcredentials/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-iamcredentials/samples/snippets/generated" deep-preserve-regex: -- "/java-iamcredentials/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/iam/credentials/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 79465c9c55b3..cb6af8de63d7 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.88.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-iap/.OwlBot-hermetic.yaml index 0b53a73a07b7..8fa64f8e08e1 100644 --- a/java-iap/.OwlBot-hermetic.yaml +++ b/java-iap/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-iap/samples/snippets/generated" deep-preserve-regex: -- "/java-iap/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/iap/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-iap/README.md b/java-iap/README.md index 3bd10be8fd21..a1355e9e875f 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.44.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.44.0' +implementation 'com.google.cloud:google-cloud-iap:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.46.0" ``` ## Authentication @@ -175,7 +175,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.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/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-ids/.OwlBot-hermetic.yaml b/java-ids/.OwlBot-hermetic.yaml index e3fefa44d314..6d6fc5e5c899 100644 --- a/java-ids/.OwlBot-hermetic.yaml +++ b/java-ids/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-ids/google-.*/src" deep-preserve-regex: -- "/java-ids/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/ids/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-ids/README.md b/java-ids/README.md index ff2d32a3a2db..386e3fffec65 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.87.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.87.0' +implementation 'com.google.cloud:google-cloud-ids:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.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-infra-manager/.OwlBot-hermetic.yaml b/java-infra-manager/.OwlBot-hermetic.yaml index d556d4228b2b..470affd734f0 100644 --- a/java-infra-manager/.OwlBot-hermetic.yaml +++ b/java-infra-manager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-infra-manager/samples/snippets/generated" deep-preserve-regex: -- "/java-infra-manager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/config/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index ad6cafbcfe81..266bc6d5f534 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.65.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.65.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.67.0" ``` ## Authentication @@ -175,7 +175,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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/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-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java index 50b3d7b7491d..9122e6122393 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java @@ -628,8 +628,196 @@ * * * + *

GetDeploymentGroup + *

Get a DeploymentGroup for a given project and location. + * + *

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

+ *
    + *
  • getDeploymentGroup(GetDeploymentGroupRequest request) + *

+ *

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

+ *
    + *
  • getDeploymentGroup(DeploymentGroupName name) + *

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

+ *
    + *
  • getDeploymentGroupCallable() + *

+ * + * + * + *

CreateDeploymentGroup + *

Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls. + * + *

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

+ *
    + *
  • createDeploymentGroupAsync(CreateDeploymentGroupRequest request) + *

+ *

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

+ *
    + *
  • createDeploymentGroupAsync(LocationName parent, DeploymentGroup deploymentGroup, String deploymentGroupId) + *

  • createDeploymentGroupAsync(String parent, DeploymentGroup deploymentGroup, String deploymentGroupId) + *

+ *

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

+ *
    + *
  • createDeploymentGroupOperationCallable() + *

  • createDeploymentGroupCallable() + *

+ * + * + * + *

UpdateDeploymentGroup + *

Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

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

+ *
    + *
  • updateDeploymentGroupAsync(UpdateDeploymentGroupRequest request) + *

+ *

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

+ *
    + *
  • updateDeploymentGroupAsync(DeploymentGroup deploymentGroup, 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.

+ *
    + *
  • updateDeploymentGroupOperationCallable() + *

  • updateDeploymentGroupCallable() + *

+ * + * + * + *

DeleteDeploymentGroup + *

Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

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

+ *
    + *
  • deleteDeploymentGroupAsync(DeleteDeploymentGroupRequest request) + *

+ *

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

+ *
    + *
  • deleteDeploymentGroupAsync(DeploymentGroupName name) + *

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

+ *
    + *
  • deleteDeploymentGroupOperationCallable() + *

  • deleteDeploymentGroupCallable() + *

+ * + * + * + *

ListDeploymentGroups + *

List DeploymentGroups for a given project and location. + * + *

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

+ *
    + *
  • listDeploymentGroups(ListDeploymentGroupsRequest request) + *

+ *

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

+ *
    + *
  • listDeploymentGroups(LocationName parent) + *

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

+ *
    + *
  • listDeploymentGroupsPagedCallable() + *

  • listDeploymentGroupsCallable() + *

+ * + * + * + *

ProvisionDeploymentGroup + *

Provisions a deployment group. + *

NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the + *

    + *
  • last successful* [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no longer* included in the *current* [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources. + *
+ * + *

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

+ *
    + *
  • provisionDeploymentGroupAsync(ProvisionDeploymentGroupRequest request) + *

+ *

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

+ *
    + *
  • provisionDeploymentGroupAsync(DeploymentGroupName name) + *

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

+ *
    + *
  • provisionDeploymentGroupOperationCallable() + *

  • provisionDeploymentGroupCallable() + *

+ * + * + * + *

DeprovisionDeploymentGroup + *

Deprovisions a deployment group. + *

NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the + *

    + *
  • last successful* [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no longer* included in the *current* [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources. + *
+ * + *

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

+ *
    + *
  • deprovisionDeploymentGroupAsync(DeprovisionDeploymentGroupRequest request) + *

+ *

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

+ *
    + *
  • deprovisionDeploymentGroupAsync(DeploymentGroupName name) + *

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

+ *
    + *
  • deprovisionDeploymentGroupOperationCallable() + *

  • deprovisionDeploymentGroupCallable() + *

+ * + * + * + *

GetDeploymentGroupRevision + *

Gets details about a [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]. + * + *

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

+ *
    + *
  • getDeploymentGroupRevision(GetDeploymentGroupRevisionRequest request) + *

+ *

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

+ *
    + *
  • getDeploymentGroupRevision(DeploymentGroupRevisionName name) + *

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

+ *
    + *
  • getDeploymentGroupRevisionCallable() + *

+ * + * + * + *

ListDeploymentGroupRevisions + *

Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + * + *

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

+ *
    + *
  • listDeploymentGroupRevisions(ListDeploymentGroupRevisionsRequest request) + *

+ *

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

+ *
    + *
  • listDeploymentGroupRevisions(DeploymentGroupName parent) + *

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

+ *
    + *
  • listDeploymentGroupRevisionsPagedCallable() + *

  • listDeploymentGroupRevisionsCallable() + *

+ * + * + * *

ListLocations - *

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

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

This method lists locations based on the resource scope provided inthe [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.

*
    @@ -4669,7 +4857,7 @@ public final AutoMigrationConfig getAutoMigrationConfig(GetAutoMigrationConfigRe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Get a DeploymentGroup for a given project and location. * *

    Sample code: * @@ -4680,29 +4868,27 @@ public final AutoMigrationConfig getAutoMigrationConfig(GetAutoMigrationConfigRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Location element : configClient.listLocations(request).iterateAll()) { - * // doThingsWith(element); - * } + * DeploymentGroupName name = + * DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]"); + * DeploymentGroup response = configClient.getDeploymentGroup(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the deployment group to retrieve. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final DeploymentGroup getDeploymentGroup(DeploymentGroupName name) { + GetDeploymentGroupRequest request = + GetDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDeploymentGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Get a DeploymentGroup for a given project and location. * *

    Sample code: * @@ -4713,29 +4899,25 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = configClient.listLocationsPagedCallable().futureCall(request); - * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString(); + * DeploymentGroup response = configClient.getDeploymentGroup(name); * } * } + * + * @param name Required. The name of the deployment group to retrieve. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final DeploymentGroup getDeploymentGroup(String name) { + GetDeploymentGroupRequest request = + GetDeploymentGroupRequest.newBuilder().setName(name).build(); + return getDeploymentGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Get a DeploymentGroup for a given project and location. * *

    Sample code: * @@ -4746,35 +4928,26 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetDeploymentGroupRequest request = + * GetDeploymentGroupRequest.newBuilder() + * .setName( + * DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + * .toString()) * .build(); - * while (true) { - * ListLocationsResponse response = configClient.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; - * } - * } + * DeploymentGroup response = configClient.getDeploymentGroup(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 UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final DeploymentGroup getDeploymentGroup(GetDeploymentGroupRequest request) { + return getDeploymentGroupCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Get a DeploymentGroup for a given project and location. * *

    Sample code: * @@ -4785,21 +4958,28 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = configClient.getLocation(request); + * GetDeploymentGroupRequest request = + * GetDeploymentGroupRequest.newBuilder() + * .setName( + * DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + * .toString()) + * .build(); + * ApiFuture future = + * configClient.getDeploymentGroupCallable().futureCall(request); + * // Do something. + * DeploymentGroup response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final UnaryCallable + getDeploymentGroupCallable() { + return stub.getDeploymentGroupCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created + * DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls. * *

    Sample code: * @@ -4810,22 +4990,35 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = configClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build(); + * String deploymentGroupId = "deploymentGroupId717062517"; + * DeploymentGroup response = + * configClient.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get(); * } * } + * + * @param parent Required. The parent in whose context the Deployment Group is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}' + * @param deploymentGroup Required. [Deployment Group][] resource to create + * @param deploymentGroupId Required. The deployment group ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final OperationFuture createDeploymentGroupAsync( + LocationName parent, DeploymentGroup deploymentGroup, String deploymentGroupId) { + CreateDeploymentGroupRequest request = + CreateDeploymentGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeploymentGroup(deploymentGroup) + .setDeploymentGroupId(deploymentGroupId) + .build(); + return createDeploymentGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created + * DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls. * *

    Sample code: * @@ -4836,28 +5029,35 @@ public final UnaryCallable getLocationCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Policy response = configClient.setIamPolicy(request); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build(); + * String deploymentGroupId = "deploymentGroupId717062517"; + * DeploymentGroup response = + * configClient.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent in whose context the Deployment Group is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}' + * @param deploymentGroup Required. [Deployment Group][] resource to create + * @param deploymentGroupId Required. The deployment group ID. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final OperationFuture createDeploymentGroupAsync( + String parent, DeploymentGroup deploymentGroup, String deploymentGroupId) { + CreateDeploymentGroupRequest request = + CreateDeploymentGroupRequest.newBuilder() + .setParent(parent) + .setDeploymentGroup(deploymentGroup) + .setDeploymentGroupId(deploymentGroupId) + .build(); + return createDeploymentGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created + * DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls. * *

    Sample code: * @@ -4868,26 +5068,29 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * CreateDeploymentGroupRequest request = + * CreateDeploymentGroupRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setDeploymentGroupId("deploymentGroupId717062517") + * .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = configClient.setIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * DeploymentGroup response = configClient.createDeploymentGroupAsync(request).get(); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final OperationFuture createDeploymentGroupAsync( + CreateDeploymentGroupRequest request) { + return createDeploymentGroupOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created + * DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls. * *

    Sample code: * @@ -4898,26 +5101,29 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * CreateDeploymentGroupRequest request = + * CreateDeploymentGroupRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setDeploymentGroupId("deploymentGroupId717062517") + * .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * Policy response = configClient.getIamPolicy(request); + * OperationFuture future = + * configClient.createDeploymentGroupOperationCallable().futureCall(request); + * // Do something. + * DeploymentGroup response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final OperationCallable + createDeploymentGroupOperationCallable() { + return stub.createDeploymentGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created + * DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls. * *

    Sample code: * @@ -4928,9 +5134,1541 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) + * CreateDeploymentGroupRequest request = + * CreateDeploymentGroupRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setDeploymentGroupId("deploymentGroupId717062517") + * .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture future = + * configClient.createDeploymentGroupCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * } + */ + public final UnaryCallable + createDeploymentGroupCallable() { + return stub.createDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   DeploymentGroup response =
    +   *       configClient.updateDeploymentGroupAsync(deploymentGroup, updateMask).get();
    +   * }
    +   * }
    + * + * @param deploymentGroup Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to + * update. + *

    The deployment group's `name` field is used to identify the resource to be updated. + * Format: `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}` + * @param updateMask Optional. Field mask used to specify the fields to be overwritten in the + * Deployment Group resource by the update. + *

    The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. If the user does not provide a + * mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateDeploymentGroupAsync( + DeploymentGroup deploymentGroup, FieldMask updateMask) { + UpdateDeploymentGroupRequest request = + UpdateDeploymentGroupRequest.newBuilder() + .setDeploymentGroup(deploymentGroup) + .setUpdateMask(updateMask) + .build(); + return updateDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

    Sample code: + * + *

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

    Sample code: + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   UpdateDeploymentGroupRequest request =
    +   *       UpdateDeploymentGroupRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setDeploymentGroup(DeploymentGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       configClient.updateDeploymentGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + updateDeploymentGroupCallable() { + return stub.updateDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeploymentGroupName name =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +   *   DeploymentGroup response = configClient.deleteDeploymentGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of DeploymentGroup in the format + * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDeploymentGroupAsync( + DeploymentGroupName name) { + DeleteDeploymentGroupRequest request = + DeleteDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   String name =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString();
    +   *   DeploymentGroup response = configClient.deleteDeploymentGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of DeploymentGroup in the format + * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDeploymentGroupAsync( + String name) { + DeleteDeploymentGroupRequest request = + DeleteDeploymentGroupRequest.newBuilder().setName(name).build(); + return deleteDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeleteDeploymentGroupRequest request =
    +   *       DeleteDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setForce(true)
    +   *           .build();
    +   *   DeploymentGroup response = configClient.deleteDeploymentGroupAsync(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 deleteDeploymentGroupAsync( + DeleteDeploymentGroupRequest request) { + return deleteDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeleteDeploymentGroupRequest request =
    +   *       DeleteDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setForce(true)
    +   *           .build();
    +   *   OperationFuture future =
    +   *       configClient.deleteDeploymentGroupOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   DeploymentGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + deleteDeploymentGroupOperationCallable() { + return stub.deleteDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeleteDeploymentGroupRequest request =
    +   *       DeleteDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setForce(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       configClient.deleteDeploymentGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + deleteDeploymentGroupCallable() { + return stub.deleteDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentGroups for 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (DeploymentGroup element : configClient.listDeploymentGroups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of deployment groups. Format: + * 'projects/{project_id}/locations/{location}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentGroupsPagedResponse listDeploymentGroups(LocationName parent) { + ListDeploymentGroupsRequest request = + ListDeploymentGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeploymentGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentGroups for 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (DeploymentGroup element : configClient.listDeploymentGroups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of deployment groups. Format: + * 'projects/{project_id}/locations/{location}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentGroupsPagedResponse listDeploymentGroups(String parent) { + ListDeploymentGroupsRequest request = + ListDeploymentGroupsRequest.newBuilder().setParent(parent).build(); + return listDeploymentGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentGroups for 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListDeploymentGroupsRequest request =
    +   *       ListDeploymentGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   for (DeploymentGroup element : configClient.listDeploymentGroups(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 ListDeploymentGroupsPagedResponse listDeploymentGroups( + ListDeploymentGroupsRequest request) { + return listDeploymentGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentGroups for 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListDeploymentGroupsRequest request =
    +   *       ListDeploymentGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       configClient.listDeploymentGroupsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (DeploymentGroup element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listDeploymentGroupsPagedCallable() { + return stub.listDeploymentGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentGroups for 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListDeploymentGroupsRequest request =
    +   *       ListDeploymentGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   while (true) {
    +   *     ListDeploymentGroupsResponse response =
    +   *         configClient.listDeploymentGroupsCallable().call(request);
    +   *     for (DeploymentGroup element : response.getDeploymentGroupsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listDeploymentGroupsCallable() { + return stub.listDeploymentGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeploymentGroupName name =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +   *   DeploymentGroup response = configClient.provisionDeploymentGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the deployment group to provision. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture provisionDeploymentGroupAsync( + DeploymentGroupName name) { + ProvisionDeploymentGroupRequest request = + ProvisionDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return provisionDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   String name =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString();
    +   *   DeploymentGroup response = configClient.provisionDeploymentGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the deployment group to provision. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture provisionDeploymentGroupAsync( + String name) { + ProvisionDeploymentGroupRequest request = + ProvisionDeploymentGroupRequest.newBuilder().setName(name).build(); + return provisionDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   ProvisionDeploymentGroupRequest request =
    +   *       ProvisionDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .putAllDeploymentSpecs(new HashMap())
    +   *           .build();
    +   *   DeploymentGroup response = configClient.provisionDeploymentGroupAsync(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 provisionDeploymentGroupAsync( + ProvisionDeploymentGroupRequest request) { + return provisionDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   ProvisionDeploymentGroupRequest request =
    +   *       ProvisionDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .putAllDeploymentSpecs(new HashMap())
    +   *           .build();
    +   *   OperationFuture future =
    +   *       configClient.provisionDeploymentGroupOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   DeploymentGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable< + ProvisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata> + provisionDeploymentGroupOperationCallable() { + return stub.provisionDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   ProvisionDeploymentGroupRequest request =
    +   *       ProvisionDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .putAllDeploymentSpecs(new HashMap())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       configClient.provisionDeploymentGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + provisionDeploymentGroupCallable() { + return stub.provisionDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprovisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeploymentGroupName name =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +   *   DeploymentGroup response = configClient.deprovisionDeploymentGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the deployment group to deprovision. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deprovisionDeploymentGroupAsync( + DeploymentGroupName name) { + DeprovisionDeploymentGroupRequest request = + DeprovisionDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deprovisionDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprovisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   String name =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString();
    +   *   DeploymentGroup response = configClient.deprovisionDeploymentGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the deployment group to deprovision. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deprovisionDeploymentGroupAsync( + String name) { + DeprovisionDeploymentGroupRequest request = + DeprovisionDeploymentGroupRequest.newBuilder().setName(name).build(); + return deprovisionDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprovisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeprovisionDeploymentGroupRequest request =
    +   *       DeprovisionDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setForce(true)
    +   *           .build();
    +   *   DeploymentGroup response = configClient.deprovisionDeploymentGroupAsync(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 deprovisionDeploymentGroupAsync( + DeprovisionDeploymentGroupRequest request) { + return deprovisionDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprovisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeprovisionDeploymentGroupRequest request =
    +   *       DeprovisionDeploymentGroupRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setForce(true)
    +   *           .build();
    +   *   OperationFuture future =
    +   *       configClient.deprovisionDeploymentGroupOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   DeploymentGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable< + DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata> + deprovisionDeploymentGroupOperationCallable() { + return stub.deprovisionDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprovisions a deployment group. + * + *

    NOTE: As a first step of this operation, Infra Manager will automatically delete any + * Deployments that were part of the + * + *

      + *
    • last successful* + * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no + * longer* included in the *current* + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an + * `UpdateDeploymentGroup` call), along with their actuated resources. + *
    + * + *

    Sample code: + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeploymentGroupRevisionName name =
    +   *       DeploymentGroupRevisionName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]");
    +   *   DeploymentGroupRevision response = configClient.getDeploymentGroupRevision(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the deployment group revision to retrieve. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeploymentGroupRevision getDeploymentGroupRevision( + DeploymentGroupRevisionName name) { + GetDeploymentGroupRevisionRequest request = + GetDeploymentGroupRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDeploymentGroupRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   String name =
    +   *       DeploymentGroupRevisionName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]")
    +   *           .toString();
    +   *   DeploymentGroupRevision response = configClient.getDeploymentGroupRevision(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the deployment group revision to retrieve. Format: + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeploymentGroupRevision getDeploymentGroupRevision(String name) { + GetDeploymentGroupRevisionRequest request = + GetDeploymentGroupRevisionRequest.newBuilder().setName(name).build(); + return getDeploymentGroupRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   GetDeploymentGroupRevisionRequest request =
    +   *       GetDeploymentGroupRevisionRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupRevisionName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]")
    +   *                   .toString())
    +   *           .build();
    +   *   DeploymentGroupRevision response = configClient.getDeploymentGroupRevision(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 DeploymentGroupRevision getDeploymentGroupRevision( + GetDeploymentGroupRevisionRequest request) { + return getDeploymentGroupRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   GetDeploymentGroupRevisionRequest request =
    +   *       GetDeploymentGroupRevisionRequest.newBuilder()
    +   *           .setName(
    +   *               DeploymentGroupRevisionName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       configClient.getDeploymentGroupRevisionCallable().futureCall(request);
    +   *   // Do something.
    +   *   DeploymentGroupRevision response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + getDeploymentGroupRevisionCallable() { + return stub.getDeploymentGroupRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   DeploymentGroupName parent =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +   *   for (DeploymentGroupRevision element :
    +   *       configClient.listDeploymentGroupRevisions(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of deployment group revisions. + * Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentGroupRevisionsPagedResponse listDeploymentGroupRevisions( + DeploymentGroupName parent) { + ListDeploymentGroupRevisionsRequest request = + ListDeploymentGroupRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeploymentGroupRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   String parent =
    +   *       DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString();
    +   *   for (DeploymentGroupRevision element :
    +   *       configClient.listDeploymentGroupRevisions(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of deployment group revisions. + * Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentGroupRevisionsPagedResponse listDeploymentGroupRevisions( + String parent) { + ListDeploymentGroupRevisionsRequest request = + ListDeploymentGroupRevisionsRequest.newBuilder().setParent(parent).build(); + return listDeploymentGroupRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListDeploymentGroupRevisionsRequest request =
    +   *       ListDeploymentGroupRevisionsRequest.newBuilder()
    +   *           .setParent(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (DeploymentGroupRevision element :
    +   *       configClient.listDeploymentGroupRevisions(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 ListDeploymentGroupRevisionsPagedResponse listDeploymentGroupRevisions( + ListDeploymentGroupRevisionsRequest request) { + return listDeploymentGroupRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListDeploymentGroupRevisionsRequest request =
    +   *       ListDeploymentGroupRevisionsRequest.newBuilder()
    +   *           .setParent(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       configClient.listDeploymentGroupRevisionsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (DeploymentGroupRevision element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsPagedResponse> + listDeploymentGroupRevisionsPagedCallable() { + return stub.listDeploymentGroupRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListDeploymentGroupRevisionsRequest request =
    +   *       ListDeploymentGroupRevisionsRequest.newBuilder()
    +   *           .setParent(
    +   *               DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListDeploymentGroupRevisionsResponse response =
    +   *         configClient.listDeploymentGroupRevisionsCallable().call(request);
    +   *     for (DeploymentGroupRevision element : response.getDeploymentGroupRevisionsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse> + listDeploymentGroupRevisionsCallable() { + return stub.listDeploymentGroupRevisionsCallable(); + } + + // 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] 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Location element : configClient.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] 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future = configClient.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] 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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListLocationsResponse response = configClient.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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   Location response = configClient.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 (ConfigClient configClient = ConfigClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   ApiFuture future = configClient.getLocationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Location response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   Policy response = configClient.setIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = configClient.setIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   Policy response = configClient.getIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfigClient configClient = ConfigClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
        *           .setOptions(GetPolicyOptions.newBuilder().build())
        *           .build();
        *   ApiFuture future = configClient.getIamPolicyCallable().futureCall(request);
    @@ -5594,6 +7332,187 @@ protected ListResourceDriftsFixedSizeCollection createCollection(
         }
       }
     
    +  public static class ListDeploymentGroupsPagedResponse
    +      extends AbstractPagedListResponse<
    +          ListDeploymentGroupsRequest,
    +          ListDeploymentGroupsResponse,
    +          DeploymentGroup,
    +          ListDeploymentGroupsPage,
    +          ListDeploymentGroupsFixedSizeCollection> {
    +
    +    public static ApiFuture createAsync(
    +        PageContext
    +            context,
    +        ApiFuture futureResponse) {
    +      ApiFuture futurePage =
    +          ListDeploymentGroupsPage.createEmptyPage().createPageAsync(context, futureResponse);
    +      return ApiFutures.transform(
    +          futurePage,
    +          input -> new ListDeploymentGroupsPagedResponse(input),
    +          MoreExecutors.directExecutor());
    +    }
    +
    +    private ListDeploymentGroupsPagedResponse(ListDeploymentGroupsPage page) {
    +      super(page, ListDeploymentGroupsFixedSizeCollection.createEmptyCollection());
    +    }
    +  }
    +
    +  public static class ListDeploymentGroupsPage
    +      extends AbstractPage<
    +          ListDeploymentGroupsRequest,
    +          ListDeploymentGroupsResponse,
    +          DeploymentGroup,
    +          ListDeploymentGroupsPage> {
    +
    +    private ListDeploymentGroupsPage(
    +        PageContext
    +            context,
    +        ListDeploymentGroupsResponse response) {
    +      super(context, response);
    +    }
    +
    +    private static ListDeploymentGroupsPage createEmptyPage() {
    +      return new ListDeploymentGroupsPage(null, null);
    +    }
    +
    +    @Override
    +    protected ListDeploymentGroupsPage createPage(
    +        PageContext
    +            context,
    +        ListDeploymentGroupsResponse response) {
    +      return new ListDeploymentGroupsPage(context, response);
    +    }
    +
    +    @Override
    +    public ApiFuture createPageAsync(
    +        PageContext
    +            context,
    +        ApiFuture futureResponse) {
    +      return super.createPageAsync(context, futureResponse);
    +    }
    +  }
    +
    +  public static class ListDeploymentGroupsFixedSizeCollection
    +      extends AbstractFixedSizeCollection<
    +          ListDeploymentGroupsRequest,
    +          ListDeploymentGroupsResponse,
    +          DeploymentGroup,
    +          ListDeploymentGroupsPage,
    +          ListDeploymentGroupsFixedSizeCollection> {
    +
    +    private ListDeploymentGroupsFixedSizeCollection(
    +        List pages, int collectionSize) {
    +      super(pages, collectionSize);
    +    }
    +
    +    private static ListDeploymentGroupsFixedSizeCollection createEmptyCollection() {
    +      return new ListDeploymentGroupsFixedSizeCollection(null, 0);
    +    }
    +
    +    @Override
    +    protected ListDeploymentGroupsFixedSizeCollection createCollection(
    +        List pages, int collectionSize) {
    +      return new ListDeploymentGroupsFixedSizeCollection(pages, collectionSize);
    +    }
    +  }
    +
    +  public static class ListDeploymentGroupRevisionsPagedResponse
    +      extends AbstractPagedListResponse<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          DeploymentGroupRevision,
    +          ListDeploymentGroupRevisionsPage,
    +          ListDeploymentGroupRevisionsFixedSizeCollection> {
    +
    +    public static ApiFuture createAsync(
    +        PageContext<
    +                ListDeploymentGroupRevisionsRequest,
    +                ListDeploymentGroupRevisionsResponse,
    +                DeploymentGroupRevision>
    +            context,
    +        ApiFuture futureResponse) {
    +      ApiFuture futurePage =
    +          ListDeploymentGroupRevisionsPage.createEmptyPage()
    +              .createPageAsync(context, futureResponse);
    +      return ApiFutures.transform(
    +          futurePage,
    +          input -> new ListDeploymentGroupRevisionsPagedResponse(input),
    +          MoreExecutors.directExecutor());
    +    }
    +
    +    private ListDeploymentGroupRevisionsPagedResponse(ListDeploymentGroupRevisionsPage page) {
    +      super(page, ListDeploymentGroupRevisionsFixedSizeCollection.createEmptyCollection());
    +    }
    +  }
    +
    +  public static class ListDeploymentGroupRevisionsPage
    +      extends AbstractPage<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          DeploymentGroupRevision,
    +          ListDeploymentGroupRevisionsPage> {
    +
    +    private ListDeploymentGroupRevisionsPage(
    +        PageContext<
    +                ListDeploymentGroupRevisionsRequest,
    +                ListDeploymentGroupRevisionsResponse,
    +                DeploymentGroupRevision>
    +            context,
    +        ListDeploymentGroupRevisionsResponse response) {
    +      super(context, response);
    +    }
    +
    +    private static ListDeploymentGroupRevisionsPage createEmptyPage() {
    +      return new ListDeploymentGroupRevisionsPage(null, null);
    +    }
    +
    +    @Override
    +    protected ListDeploymentGroupRevisionsPage createPage(
    +        PageContext<
    +                ListDeploymentGroupRevisionsRequest,
    +                ListDeploymentGroupRevisionsResponse,
    +                DeploymentGroupRevision>
    +            context,
    +        ListDeploymentGroupRevisionsResponse response) {
    +      return new ListDeploymentGroupRevisionsPage(context, response);
    +    }
    +
    +    @Override
    +    public ApiFuture createPageAsync(
    +        PageContext<
    +                ListDeploymentGroupRevisionsRequest,
    +                ListDeploymentGroupRevisionsResponse,
    +                DeploymentGroupRevision>
    +            context,
    +        ApiFuture futureResponse) {
    +      return super.createPageAsync(context, futureResponse);
    +    }
    +  }
    +
    +  public static class ListDeploymentGroupRevisionsFixedSizeCollection
    +      extends AbstractFixedSizeCollection<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          DeploymentGroupRevision,
    +          ListDeploymentGroupRevisionsPage,
    +          ListDeploymentGroupRevisionsFixedSizeCollection> {
    +
    +    private ListDeploymentGroupRevisionsFixedSizeCollection(
    +        List pages, int collectionSize) {
    +      super(pages, collectionSize);
    +    }
    +
    +    private static ListDeploymentGroupRevisionsFixedSizeCollection createEmptyCollection() {
    +      return new ListDeploymentGroupRevisionsFixedSizeCollection(null, 0);
    +    }
    +
    +    @Override
    +    protected ListDeploymentGroupRevisionsFixedSizeCollection createCollection(
    +        List pages, int collectionSize) {
    +      return new ListDeploymentGroupRevisionsFixedSizeCollection(pages, collectionSize);
    +    }
    +  }
    +
       public static class ListLocationsPagedResponse
           extends AbstractPagedListResponse<
               ListLocationsRequest,
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java
    index 6e42b716580f..d785aa9410b6 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.config.v1;
     
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupRevisionsPagedResponse;
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse;
    @@ -344,6 +346,97 @@ public UnaryCallSettings getResourceDrif
         return ((ConfigStubSettings) getStubSettings()).updateAutoMigrationConfigOperationSettings();
       }
     
    +  /** Returns the object with the settings used for calls to getDeploymentGroup. */
    +  public UnaryCallSettings
    +      getDeploymentGroupSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).getDeploymentGroupSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to createDeploymentGroup. */
    +  public UnaryCallSettings
    +      createDeploymentGroupSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).createDeploymentGroupSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to createDeploymentGroup. */
    +  public OperationCallSettings
    +      createDeploymentGroupOperationSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).createDeploymentGroupOperationSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to updateDeploymentGroup. */
    +  public UnaryCallSettings
    +      updateDeploymentGroupSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).updateDeploymentGroupSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to updateDeploymentGroup. */
    +  public OperationCallSettings
    +      updateDeploymentGroupOperationSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).updateDeploymentGroupOperationSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteDeploymentGroup. */
    +  public UnaryCallSettings
    +      deleteDeploymentGroupSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).deleteDeploymentGroupSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteDeploymentGroup. */
    +  public OperationCallSettings
    +      deleteDeploymentGroupOperationSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).deleteDeploymentGroupOperationSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to listDeploymentGroups. */
    +  public PagedCallSettings<
    +          ListDeploymentGroupsRequest,
    +          ListDeploymentGroupsResponse,
    +          ListDeploymentGroupsPagedResponse>
    +      listDeploymentGroupsSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).listDeploymentGroupsSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to provisionDeploymentGroup. */
    +  public UnaryCallSettings
    +      provisionDeploymentGroupSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).provisionDeploymentGroupSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to provisionDeploymentGroup. */
    +  public OperationCallSettings
    +      provisionDeploymentGroupOperationSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).provisionDeploymentGroupOperationSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to deprovisionDeploymentGroup. */
    +  public UnaryCallSettings
    +      deprovisionDeploymentGroupSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).deprovisionDeploymentGroupSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to deprovisionDeploymentGroup. */
    +  public OperationCallSettings<
    +          DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      deprovisionDeploymentGroupOperationSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).deprovisionDeploymentGroupOperationSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to getDeploymentGroupRevision. */
    +  public UnaryCallSettings
    +      getDeploymentGroupRevisionSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).getDeploymentGroupRevisionSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to listDeploymentGroupRevisions. */
    +  public PagedCallSettings<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsSettings() {
    +    return ((ConfigStubSettings) getStubSettings()).listDeploymentGroupRevisionsSettings();
    +  }
    +
       /** Returns the object with the settings used for calls to listLocations. */
       public PagedCallSettings
           listLocationsSettings() {
    @@ -706,6 +799,101 @@ public UnaryCallSettings.Builder deletePreviewS
           return getStubSettingsBuilder().updateAutoMigrationConfigOperationSettings();
         }
     
    +    /** Returns the builder for the settings used for calls to getDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        getDeploymentGroupSettings() {
    +      return getStubSettingsBuilder().getDeploymentGroupSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        createDeploymentGroupSettings() {
    +      return getStubSettingsBuilder().createDeploymentGroupSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            CreateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        createDeploymentGroupOperationSettings() {
    +      return getStubSettingsBuilder().createDeploymentGroupOperationSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to updateDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        updateDeploymentGroupSettings() {
    +      return getStubSettingsBuilder().updateDeploymentGroupSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to updateDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            UpdateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        updateDeploymentGroupOperationSettings() {
    +      return getStubSettingsBuilder().updateDeploymentGroupOperationSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        deleteDeploymentGroupSettings() {
    +      return getStubSettingsBuilder().deleteDeploymentGroupSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            DeleteDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        deleteDeploymentGroupOperationSettings() {
    +      return getStubSettingsBuilder().deleteDeploymentGroupOperationSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listDeploymentGroups. */
    +    public PagedCallSettings.Builder<
    +            ListDeploymentGroupsRequest,
    +            ListDeploymentGroupsResponse,
    +            ListDeploymentGroupsPagedResponse>
    +        listDeploymentGroupsSettings() {
    +      return getStubSettingsBuilder().listDeploymentGroupsSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to provisionDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        provisionDeploymentGroupSettings() {
    +      return getStubSettingsBuilder().provisionDeploymentGroupSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to provisionDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            ProvisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        provisionDeploymentGroupOperationSettings() {
    +      return getStubSettingsBuilder().provisionDeploymentGroupOperationSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deprovisionDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        deprovisionDeploymentGroupSettings() {
    +      return getStubSettingsBuilder().deprovisionDeploymentGroupSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deprovisionDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        deprovisionDeploymentGroupOperationSettings() {
    +      return getStubSettingsBuilder().deprovisionDeploymentGroupOperationSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getDeploymentGroupRevision. */
    +    public UnaryCallSettings.Builder
    +        getDeploymentGroupRevisionSettings() {
    +      return getStubSettingsBuilder().getDeploymentGroupRevisionSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listDeploymentGroupRevisions. */
    +    public PagedCallSettings.Builder<
    +            ListDeploymentGroupRevisionsRequest,
    +            ListDeploymentGroupRevisionsResponse,
    +            ListDeploymentGroupRevisionsPagedResponse>
    +        listDeploymentGroupRevisionsSettings() {
    +      return getStubSettingsBuilder().listDeploymentGroupRevisionsSettings();
    +    }
    +
         /** Returns the builder for the settings used for calls to listLocations. */
         public PagedCallSettings.Builder<
                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json
    index 6c546f81b5a1..21ba40ef7560 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json
    +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json
    @@ -13,18 +13,27 @@
                 "CreateDeployment": {
                   "methods": ["createDeploymentAsync", "createDeploymentAsync", "createDeploymentAsync", "createDeploymentOperationCallable", "createDeploymentCallable"]
                 },
    +            "CreateDeploymentGroup": {
    +              "methods": ["createDeploymentGroupAsync", "createDeploymentGroupAsync", "createDeploymentGroupAsync", "createDeploymentGroupOperationCallable", "createDeploymentGroupCallable"]
    +            },
                 "CreatePreview": {
                   "methods": ["createPreviewAsync", "createPreviewAsync", "createPreviewAsync", "createPreviewOperationCallable", "createPreviewCallable"]
                 },
                 "DeleteDeployment": {
                   "methods": ["deleteDeploymentAsync", "deleteDeploymentAsync", "deleteDeploymentAsync", "deleteDeploymentOperationCallable", "deleteDeploymentCallable"]
                 },
    +            "DeleteDeploymentGroup": {
    +              "methods": ["deleteDeploymentGroupAsync", "deleteDeploymentGroupAsync", "deleteDeploymentGroupAsync", "deleteDeploymentGroupOperationCallable", "deleteDeploymentGroupCallable"]
    +            },
                 "DeletePreview": {
                   "methods": ["deletePreviewAsync", "deletePreviewAsync", "deletePreviewAsync", "deletePreviewOperationCallable", "deletePreviewCallable"]
                 },
                 "DeleteStatefile": {
                   "methods": ["deleteStatefile", "deleteStatefile", "deleteStatefile", "deleteStatefileCallable"]
                 },
    +            "DeprovisionDeploymentGroup": {
    +              "methods": ["deprovisionDeploymentGroupAsync", "deprovisionDeploymentGroupAsync", "deprovisionDeploymentGroupAsync", "deprovisionDeploymentGroupOperationCallable", "deprovisionDeploymentGroupCallable"]
    +            },
                 "ExportDeploymentStatefile": {
                   "methods": ["exportDeploymentStatefile", "exportDeploymentStatefileCallable"]
                 },
    @@ -43,6 +52,12 @@
                 "GetDeployment": {
                   "methods": ["getDeployment", "getDeployment", "getDeployment", "getDeploymentCallable"]
                 },
    +            "GetDeploymentGroup": {
    +              "methods": ["getDeploymentGroup", "getDeploymentGroup", "getDeploymentGroup", "getDeploymentGroupCallable"]
    +            },
    +            "GetDeploymentGroupRevision": {
    +              "methods": ["getDeploymentGroupRevision", "getDeploymentGroupRevision", "getDeploymentGroupRevision", "getDeploymentGroupRevisionCallable"]
    +            },
                 "GetIamPolicy": {
                   "methods": ["getIamPolicy", "getIamPolicyCallable"]
                 },
    @@ -70,6 +85,12 @@
                 "ImportStatefile": {
                   "methods": ["importStatefile", "importStatefile", "importStatefile", "importStatefileCallable"]
                 },
    +            "ListDeploymentGroupRevisions": {
    +              "methods": ["listDeploymentGroupRevisions", "listDeploymentGroupRevisions", "listDeploymentGroupRevisions", "listDeploymentGroupRevisionsPagedCallable", "listDeploymentGroupRevisionsCallable"]
    +            },
    +            "ListDeploymentGroups": {
    +              "methods": ["listDeploymentGroups", "listDeploymentGroups", "listDeploymentGroups", "listDeploymentGroupsPagedCallable", "listDeploymentGroupsCallable"]
    +            },
                 "ListDeployments": {
                   "methods": ["listDeployments", "listDeployments", "listDeployments", "listDeploymentsPagedCallable", "listDeploymentsCallable"]
                 },
    @@ -97,6 +118,9 @@
                 "LockDeployment": {
                   "methods": ["lockDeploymentAsync", "lockDeploymentAsync", "lockDeploymentAsync", "lockDeploymentOperationCallable", "lockDeploymentCallable"]
                 },
    +            "ProvisionDeploymentGroup": {
    +              "methods": ["provisionDeploymentGroupAsync", "provisionDeploymentGroupAsync", "provisionDeploymentGroupAsync", "provisionDeploymentGroupOperationCallable", "provisionDeploymentGroupCallable"]
    +            },
                 "SetIamPolicy": {
                   "methods": ["setIamPolicy", "setIamPolicyCallable"]
                 },
    @@ -111,6 +135,9 @@
                 },
                 "UpdateDeployment": {
                   "methods": ["updateDeploymentAsync", "updateDeploymentAsync", "updateDeploymentOperationCallable", "updateDeploymentCallable"]
    +            },
    +            "UpdateDeploymentGroup": {
    +              "methods": ["updateDeploymentGroupAsync", "updateDeploymentGroupAsync", "updateDeploymentGroupOperationCallable", "updateDeploymentGroupCallable"]
                 }
               }
             }
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java
    index 1dac8c7b2e3c..ebb3b208f579 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.config.v1.stub;
     
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupRevisionsPagedResponse;
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse;
    @@ -29,18 +31,25 @@
     import com.google.api.gax.rpc.OperationCallable;
     import com.google.api.gax.rpc.UnaryCallable;
     import com.google.cloud.config.v1.AutoMigrationConfig;
    +import com.google.cloud.config.v1.CreateDeploymentGroupRequest;
     import com.google.cloud.config.v1.CreateDeploymentRequest;
     import com.google.cloud.config.v1.CreatePreviewRequest;
    +import com.google.cloud.config.v1.DeleteDeploymentGroupRequest;
     import com.google.cloud.config.v1.DeleteDeploymentRequest;
     import com.google.cloud.config.v1.DeletePreviewRequest;
     import com.google.cloud.config.v1.DeleteStatefileRequest;
     import com.google.cloud.config.v1.Deployment;
    +import com.google.cloud.config.v1.DeploymentGroup;
    +import com.google.cloud.config.v1.DeploymentGroupRevision;
    +import com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.ExportDeploymentStatefileRequest;
     import com.google.cloud.config.v1.ExportLockInfoRequest;
     import com.google.cloud.config.v1.ExportPreviewResultRequest;
     import com.google.cloud.config.v1.ExportPreviewResultResponse;
     import com.google.cloud.config.v1.ExportRevisionStatefileRequest;
     import com.google.cloud.config.v1.GetAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest;
     import com.google.cloud.config.v1.GetDeploymentRequest;
     import com.google.cloud.config.v1.GetPreviewRequest;
     import com.google.cloud.config.v1.GetResourceChangeRequest;
    @@ -49,6 +58,10 @@
     import com.google.cloud.config.v1.GetRevisionRequest;
     import com.google.cloud.config.v1.GetTerraformVersionRequest;
     import com.google.cloud.config.v1.ImportStatefileRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse;
    +import com.google.cloud.config.v1.ListDeploymentGroupsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupsResponse;
     import com.google.cloud.config.v1.ListDeploymentsRequest;
     import com.google.cloud.config.v1.ListDeploymentsResponse;
     import com.google.cloud.config.v1.ListPreviewsRequest;
    @@ -67,6 +80,7 @@
     import com.google.cloud.config.v1.LockInfo;
     import com.google.cloud.config.v1.OperationMetadata;
     import com.google.cloud.config.v1.Preview;
    +import com.google.cloud.config.v1.ProvisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.Resource;
     import com.google.cloud.config.v1.ResourceChange;
     import com.google.cloud.config.v1.ResourceDrift;
    @@ -75,6 +89,7 @@
     import com.google.cloud.config.v1.TerraformVersion;
     import com.google.cloud.config.v1.UnlockDeploymentRequest;
     import com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.UpdateDeploymentGroupRequest;
     import com.google.cloud.config.v1.UpdateDeploymentRequest;
     import com.google.cloud.location.GetLocationRequest;
     import com.google.cloud.location.ListLocationsRequest;
    @@ -307,6 +322,92 @@ public UnaryCallable getResourceDriftCal
         throw new UnsupportedOperationException("Not implemented: updateAutoMigrationConfigCallable()");
       }
     
    +  public UnaryCallable getDeploymentGroupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: getDeploymentGroupCallable()");
    +  }
    +
    +  public OperationCallable
    +      createDeploymentGroupOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: createDeploymentGroupOperationCallable()");
    +  }
    +
    +  public UnaryCallable createDeploymentGroupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: createDeploymentGroupCallable()");
    +  }
    +
    +  public OperationCallable
    +      updateDeploymentGroupOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: updateDeploymentGroupOperationCallable()");
    +  }
    +
    +  public UnaryCallable updateDeploymentGroupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: updateDeploymentGroupCallable()");
    +  }
    +
    +  public OperationCallable
    +      deleteDeploymentGroupOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: deleteDeploymentGroupOperationCallable()");
    +  }
    +
    +  public UnaryCallable deleteDeploymentGroupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: deleteDeploymentGroupCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listDeploymentGroupsPagedCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listDeploymentGroupsPagedCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listDeploymentGroupsCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listDeploymentGroupsCallable()");
    +  }
    +
    +  public OperationCallable
    +      provisionDeploymentGroupOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: provisionDeploymentGroupOperationCallable()");
    +  }
    +
    +  public UnaryCallable
    +      provisionDeploymentGroupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: provisionDeploymentGroupCallable()");
    +  }
    +
    +  public OperationCallable
    +      deprovisionDeploymentGroupOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: deprovisionDeploymentGroupOperationCallable()");
    +  }
    +
    +  public UnaryCallable
    +      deprovisionDeploymentGroupCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: deprovisionDeploymentGroupCallable()");
    +  }
    +
    +  public UnaryCallable
    +      getDeploymentGroupRevisionCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: getDeploymentGroupRevisionCallable()");
    +  }
    +
    +  public UnaryCallable<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsPagedCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: listDeploymentGroupRevisionsPagedCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listDeploymentGroupRevisionsCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: listDeploymentGroupRevisionsCallable()");
    +  }
    +
       public UnaryCallable
           listLocationsPagedCallable() {
         throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java
    index d588246bc158..d567935ab772 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.config.v1.stub;
     
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupRevisionsPagedResponse;
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse;
    @@ -57,18 +59,25 @@
     import com.google.api.gax.rpc.UnaryCallSettings;
     import com.google.api.gax.rpc.UnaryCallable;
     import com.google.cloud.config.v1.AutoMigrationConfig;
    +import com.google.cloud.config.v1.CreateDeploymentGroupRequest;
     import com.google.cloud.config.v1.CreateDeploymentRequest;
     import com.google.cloud.config.v1.CreatePreviewRequest;
    +import com.google.cloud.config.v1.DeleteDeploymentGroupRequest;
     import com.google.cloud.config.v1.DeleteDeploymentRequest;
     import com.google.cloud.config.v1.DeletePreviewRequest;
     import com.google.cloud.config.v1.DeleteStatefileRequest;
     import com.google.cloud.config.v1.Deployment;
    +import com.google.cloud.config.v1.DeploymentGroup;
    +import com.google.cloud.config.v1.DeploymentGroupRevision;
    +import com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.ExportDeploymentStatefileRequest;
     import com.google.cloud.config.v1.ExportLockInfoRequest;
     import com.google.cloud.config.v1.ExportPreviewResultRequest;
     import com.google.cloud.config.v1.ExportPreviewResultResponse;
     import com.google.cloud.config.v1.ExportRevisionStatefileRequest;
     import com.google.cloud.config.v1.GetAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest;
     import com.google.cloud.config.v1.GetDeploymentRequest;
     import com.google.cloud.config.v1.GetPreviewRequest;
     import com.google.cloud.config.v1.GetResourceChangeRequest;
    @@ -77,6 +86,10 @@
     import com.google.cloud.config.v1.GetRevisionRequest;
     import com.google.cloud.config.v1.GetTerraformVersionRequest;
     import com.google.cloud.config.v1.ImportStatefileRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse;
    +import com.google.cloud.config.v1.ListDeploymentGroupsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupsResponse;
     import com.google.cloud.config.v1.ListDeploymentsRequest;
     import com.google.cloud.config.v1.ListDeploymentsResponse;
     import com.google.cloud.config.v1.ListPreviewsRequest;
    @@ -95,6 +108,7 @@
     import com.google.cloud.config.v1.LockInfo;
     import com.google.cloud.config.v1.OperationMetadata;
     import com.google.cloud.config.v1.Preview;
    +import com.google.cloud.config.v1.ProvisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.Resource;
     import com.google.cloud.config.v1.ResourceChange;
     import com.google.cloud.config.v1.ResourceDrift;
    @@ -103,6 +117,7 @@
     import com.google.cloud.config.v1.TerraformVersion;
     import com.google.cloud.config.v1.UnlockDeploymentRequest;
     import com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.UpdateDeploymentGroupRequest;
     import com.google.cloud.config.v1.UpdateDeploymentRequest;
     import com.google.cloud.location.GetLocationRequest;
     import com.google.cloud.location.ListLocationsRequest;
    @@ -274,6 +289,45 @@ public class ConfigStubSettings extends StubSettings {
       private final OperationCallSettings<
               UpdateAutoMigrationConfigRequest, AutoMigrationConfig, OperationMetadata>
           updateAutoMigrationConfigOperationSettings;
    +  private final UnaryCallSettings
    +      getDeploymentGroupSettings;
    +  private final UnaryCallSettings
    +      createDeploymentGroupSettings;
    +  private final OperationCallSettings<
    +          CreateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      createDeploymentGroupOperationSettings;
    +  private final UnaryCallSettings
    +      updateDeploymentGroupSettings;
    +  private final OperationCallSettings<
    +          UpdateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      updateDeploymentGroupOperationSettings;
    +  private final UnaryCallSettings
    +      deleteDeploymentGroupSettings;
    +  private final OperationCallSettings<
    +          DeleteDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      deleteDeploymentGroupOperationSettings;
    +  private final PagedCallSettings<
    +          ListDeploymentGroupsRequest,
    +          ListDeploymentGroupsResponse,
    +          ListDeploymentGroupsPagedResponse>
    +      listDeploymentGroupsSettings;
    +  private final UnaryCallSettings
    +      provisionDeploymentGroupSettings;
    +  private final OperationCallSettings<
    +          ProvisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      provisionDeploymentGroupOperationSettings;
    +  private final UnaryCallSettings
    +      deprovisionDeploymentGroupSettings;
    +  private final OperationCallSettings<
    +          DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      deprovisionDeploymentGroupOperationSettings;
    +  private final UnaryCallSettings
    +      getDeploymentGroupRevisionSettings;
    +  private final PagedCallSettings<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsSettings;
       private final PagedCallSettings<
               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
           listLocationsSettings;
    @@ -537,6 +591,92 @@ public Iterable extractResources(ListResourceDriftsResponse paylo
                 }
               };
     
    +  private static final PagedListDescriptor<
    +          ListDeploymentGroupsRequest, ListDeploymentGroupsResponse, DeploymentGroup>
    +      LIST_DEPLOYMENT_GROUPS_PAGE_STR_DESC =
    +          new PagedListDescriptor<
    +              ListDeploymentGroupsRequest, ListDeploymentGroupsResponse, DeploymentGroup>() {
    +            @Override
    +            public String emptyToken() {
    +              return "";
    +            }
    +
    +            @Override
    +            public ListDeploymentGroupsRequest injectToken(
    +                ListDeploymentGroupsRequest payload, String token) {
    +              return ListDeploymentGroupsRequest.newBuilder(payload).setPageToken(token).build();
    +            }
    +
    +            @Override
    +            public ListDeploymentGroupsRequest injectPageSize(
    +                ListDeploymentGroupsRequest payload, int pageSize) {
    +              return ListDeploymentGroupsRequest.newBuilder(payload).setPageSize(pageSize).build();
    +            }
    +
    +            @Override
    +            public Integer extractPageSize(ListDeploymentGroupsRequest payload) {
    +              return payload.getPageSize();
    +            }
    +
    +            @Override
    +            public String extractNextToken(ListDeploymentGroupsResponse payload) {
    +              return payload.getNextPageToken();
    +            }
    +
    +            @Override
    +            public Iterable extractResources(
    +                ListDeploymentGroupsResponse payload) {
    +              return payload.getDeploymentGroupsList();
    +            }
    +          };
    +
    +  private static final PagedListDescriptor<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          DeploymentGroupRevision>
    +      LIST_DEPLOYMENT_GROUP_REVISIONS_PAGE_STR_DESC =
    +          new PagedListDescriptor<
    +              ListDeploymentGroupRevisionsRequest,
    +              ListDeploymentGroupRevisionsResponse,
    +              DeploymentGroupRevision>() {
    +            @Override
    +            public String emptyToken() {
    +              return "";
    +            }
    +
    +            @Override
    +            public ListDeploymentGroupRevisionsRequest injectToken(
    +                ListDeploymentGroupRevisionsRequest payload, String token) {
    +              return ListDeploymentGroupRevisionsRequest.newBuilder(payload)
    +                  .setPageToken(token)
    +                  .build();
    +            }
    +
    +            @Override
    +            public ListDeploymentGroupRevisionsRequest injectPageSize(
    +                ListDeploymentGroupRevisionsRequest payload, int pageSize) {
    +              return ListDeploymentGroupRevisionsRequest.newBuilder(payload)
    +                  .setPageSize(pageSize)
    +                  .build();
    +            }
    +
    +            @Override
    +            public Integer extractPageSize(ListDeploymentGroupRevisionsRequest payload) {
    +              return payload.getPageSize();
    +            }
    +
    +            @Override
    +            public String extractNextToken(ListDeploymentGroupRevisionsResponse payload) {
    +              return payload.getNextPageToken();
    +            }
    +
    +            @Override
    +            public Iterable extractResources(
    +                ListDeploymentGroupRevisionsResponse payload) {
    +              return payload.getDeploymentGroupRevisionsList();
    +            }
    +          };
    +
       private static final PagedListDescriptor
           LIST_LOCATIONS_PAGE_STR_DESC =
               new PagedListDescriptor() {
    @@ -705,6 +845,62 @@ public ApiFuture getFuturePagedResponse(
                 }
               };
     
    +  private static final PagedListResponseFactory<
    +          ListDeploymentGroupsRequest,
    +          ListDeploymentGroupsResponse,
    +          ListDeploymentGroupsPagedResponse>
    +      LIST_DEPLOYMENT_GROUPS_PAGE_STR_FACT =
    +          new PagedListResponseFactory<
    +              ListDeploymentGroupsRequest,
    +              ListDeploymentGroupsResponse,
    +              ListDeploymentGroupsPagedResponse>() {
    +            @Override
    +            public ApiFuture getFuturePagedResponse(
    +                UnaryCallable callable,
    +                ListDeploymentGroupsRequest request,
    +                ApiCallContext context,
    +                ApiFuture futureResponse) {
    +              PageContext<
    +                      ListDeploymentGroupsRequest, ListDeploymentGroupsResponse, DeploymentGroup>
    +                  pageContext =
    +                      PageContext.create(
    +                          callable, LIST_DEPLOYMENT_GROUPS_PAGE_STR_DESC, request, context);
    +              return ListDeploymentGroupsPagedResponse.createAsync(pageContext, futureResponse);
    +            }
    +          };
    +
    +  private static final PagedListResponseFactory<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          ListDeploymentGroupRevisionsPagedResponse>
    +      LIST_DEPLOYMENT_GROUP_REVISIONS_PAGE_STR_FACT =
    +          new PagedListResponseFactory<
    +              ListDeploymentGroupRevisionsRequest,
    +              ListDeploymentGroupRevisionsResponse,
    +              ListDeploymentGroupRevisionsPagedResponse>() {
    +            @Override
    +            public ApiFuture getFuturePagedResponse(
    +                UnaryCallable<
    +                        ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse>
    +                    callable,
    +                ListDeploymentGroupRevisionsRequest request,
    +                ApiCallContext context,
    +                ApiFuture futureResponse) {
    +              PageContext<
    +                      ListDeploymentGroupRevisionsRequest,
    +                      ListDeploymentGroupRevisionsResponse,
    +                      DeploymentGroupRevision>
    +                  pageContext =
    +                      PageContext.create(
    +                          callable,
    +                          LIST_DEPLOYMENT_GROUP_REVISIONS_PAGE_STR_DESC,
    +                          request,
    +                          context);
    +              return ListDeploymentGroupRevisionsPagedResponse.createAsync(
    +                  pageContext, futureResponse);
    +            }
    +          };
    +
       private static final PagedListResponseFactory<
               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
           LIST_LOCATIONS_PAGE_STR_FACT =
    @@ -935,6 +1131,97 @@ public UnaryCallSettings getResourceDrif
         return updateAutoMigrationConfigOperationSettings;
       }
     
    +  /** Returns the object with the settings used for calls to getDeploymentGroup. */
    +  public UnaryCallSettings
    +      getDeploymentGroupSettings() {
    +    return getDeploymentGroupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to createDeploymentGroup. */
    +  public UnaryCallSettings
    +      createDeploymentGroupSettings() {
    +    return createDeploymentGroupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to createDeploymentGroup. */
    +  public OperationCallSettings
    +      createDeploymentGroupOperationSettings() {
    +    return createDeploymentGroupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to updateDeploymentGroup. */
    +  public UnaryCallSettings
    +      updateDeploymentGroupSettings() {
    +    return updateDeploymentGroupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to updateDeploymentGroup. */
    +  public OperationCallSettings
    +      updateDeploymentGroupOperationSettings() {
    +    return updateDeploymentGroupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteDeploymentGroup. */
    +  public UnaryCallSettings
    +      deleteDeploymentGroupSettings() {
    +    return deleteDeploymentGroupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteDeploymentGroup. */
    +  public OperationCallSettings
    +      deleteDeploymentGroupOperationSettings() {
    +    return deleteDeploymentGroupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to listDeploymentGroups. */
    +  public PagedCallSettings<
    +          ListDeploymentGroupsRequest,
    +          ListDeploymentGroupsResponse,
    +          ListDeploymentGroupsPagedResponse>
    +      listDeploymentGroupsSettings() {
    +    return listDeploymentGroupsSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to provisionDeploymentGroup. */
    +  public UnaryCallSettings
    +      provisionDeploymentGroupSettings() {
    +    return provisionDeploymentGroupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to provisionDeploymentGroup. */
    +  public OperationCallSettings
    +      provisionDeploymentGroupOperationSettings() {
    +    return provisionDeploymentGroupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deprovisionDeploymentGroup. */
    +  public UnaryCallSettings
    +      deprovisionDeploymentGroupSettings() {
    +    return deprovisionDeploymentGroupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deprovisionDeploymentGroup. */
    +  public OperationCallSettings<
    +          DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      deprovisionDeploymentGroupOperationSettings() {
    +    return deprovisionDeploymentGroupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to getDeploymentGroupRevision. */
    +  public UnaryCallSettings
    +      getDeploymentGroupRevisionSettings() {
    +    return getDeploymentGroupRevisionSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to listDeploymentGroupRevisions. */
    +  public PagedCallSettings<
    +          ListDeploymentGroupRevisionsRequest,
    +          ListDeploymentGroupRevisionsResponse,
    +          ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsSettings() {
    +    return listDeploymentGroupRevisionsSettings;
    +  }
    +
       /** Returns the object with the settings used for calls to listLocations. */
       public PagedCallSettings
           listLocationsSettings() {
    @@ -1109,6 +1396,28 @@ protected ConfigStubSettings(Builder settingsBuilder) throws IOException {
         updateAutoMigrationConfigSettings = settingsBuilder.updateAutoMigrationConfigSettings().build();
         updateAutoMigrationConfigOperationSettings =
             settingsBuilder.updateAutoMigrationConfigOperationSettings().build();
    +    getDeploymentGroupSettings = settingsBuilder.getDeploymentGroupSettings().build();
    +    createDeploymentGroupSettings = settingsBuilder.createDeploymentGroupSettings().build();
    +    createDeploymentGroupOperationSettings =
    +        settingsBuilder.createDeploymentGroupOperationSettings().build();
    +    updateDeploymentGroupSettings = settingsBuilder.updateDeploymentGroupSettings().build();
    +    updateDeploymentGroupOperationSettings =
    +        settingsBuilder.updateDeploymentGroupOperationSettings().build();
    +    deleteDeploymentGroupSettings = settingsBuilder.deleteDeploymentGroupSettings().build();
    +    deleteDeploymentGroupOperationSettings =
    +        settingsBuilder.deleteDeploymentGroupOperationSettings().build();
    +    listDeploymentGroupsSettings = settingsBuilder.listDeploymentGroupsSettings().build();
    +    provisionDeploymentGroupSettings = settingsBuilder.provisionDeploymentGroupSettings().build();
    +    provisionDeploymentGroupOperationSettings =
    +        settingsBuilder.provisionDeploymentGroupOperationSettings().build();
    +    deprovisionDeploymentGroupSettings =
    +        settingsBuilder.deprovisionDeploymentGroupSettings().build();
    +    deprovisionDeploymentGroupOperationSettings =
    +        settingsBuilder.deprovisionDeploymentGroupOperationSettings().build();
    +    getDeploymentGroupRevisionSettings =
    +        settingsBuilder.getDeploymentGroupRevisionSettings().build();
    +    listDeploymentGroupRevisionsSettings =
    +        settingsBuilder.listDeploymentGroupRevisionsSettings().build();
         listLocationsSettings = settingsBuilder.listLocationsSettings().build();
         getLocationSettings = settingsBuilder.getLocationSettings().build();
         setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
    @@ -1211,6 +1520,46 @@ public static class Builder extends StubSettings.Builder
             updateAutoMigrationConfigOperationSettings;
    +    private final UnaryCallSettings.Builder
    +        getDeploymentGroupSettings;
    +    private final UnaryCallSettings.Builder
    +        createDeploymentGroupSettings;
    +    private final OperationCallSettings.Builder<
    +            CreateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        createDeploymentGroupOperationSettings;
    +    private final UnaryCallSettings.Builder
    +        updateDeploymentGroupSettings;
    +    private final OperationCallSettings.Builder<
    +            UpdateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        updateDeploymentGroupOperationSettings;
    +    private final UnaryCallSettings.Builder
    +        deleteDeploymentGroupSettings;
    +    private final OperationCallSettings.Builder<
    +            DeleteDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        deleteDeploymentGroupOperationSettings;
    +    private final PagedCallSettings.Builder<
    +            ListDeploymentGroupsRequest,
    +            ListDeploymentGroupsResponse,
    +            ListDeploymentGroupsPagedResponse>
    +        listDeploymentGroupsSettings;
    +    private final UnaryCallSettings.Builder
    +        provisionDeploymentGroupSettings;
    +    private final OperationCallSettings.Builder<
    +            ProvisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        provisionDeploymentGroupOperationSettings;
    +    private final UnaryCallSettings.Builder
    +        deprovisionDeploymentGroupSettings;
    +    private final OperationCallSettings.Builder<
    +            DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        deprovisionDeploymentGroupOperationSettings;
    +    private final UnaryCallSettings.Builder<
    +            GetDeploymentGroupRevisionRequest, DeploymentGroupRevision>
    +        getDeploymentGroupRevisionSettings;
    +    private final PagedCallSettings.Builder<
    +            ListDeploymentGroupRevisionsRequest,
    +            ListDeploymentGroupRevisionsResponse,
    +            ListDeploymentGroupRevisionsPagedResponse>
    +        listDeploymentGroupRevisionsSettings;
         private final PagedCallSettings.Builder<
                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
             listLocationsSettings;
    @@ -1296,6 +1645,22 @@ protected Builder(ClientContext clientContext) {
           getAutoMigrationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           updateAutoMigrationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           updateAutoMigrationConfigOperationSettings = OperationCallSettings.newBuilder();
    +      getDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      createDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      createDeploymentGroupOperationSettings = OperationCallSettings.newBuilder();
    +      updateDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      updateDeploymentGroupOperationSettings = OperationCallSettings.newBuilder();
    +      deleteDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      deleteDeploymentGroupOperationSettings = OperationCallSettings.newBuilder();
    +      listDeploymentGroupsSettings =
    +          PagedCallSettings.newBuilder(LIST_DEPLOYMENT_GROUPS_PAGE_STR_FACT);
    +      provisionDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      provisionDeploymentGroupOperationSettings = OperationCallSettings.newBuilder();
    +      deprovisionDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      deprovisionDeploymentGroupOperationSettings = OperationCallSettings.newBuilder();
    +      getDeploymentGroupRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      listDeploymentGroupRevisionsSettings =
    +          PagedCallSettings.newBuilder(LIST_DEPLOYMENT_GROUP_REVISIONS_PAGE_STR_FACT);
           listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
           getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    @@ -1333,6 +1698,15 @@ protected Builder(ClientContext clientContext) {
                   getResourceDriftSettings,
                   getAutoMigrationConfigSettings,
                   updateAutoMigrationConfigSettings,
    +              getDeploymentGroupSettings,
    +              createDeploymentGroupSettings,
    +              updateDeploymentGroupSettings,
    +              deleteDeploymentGroupSettings,
    +              listDeploymentGroupsSettings,
    +              provisionDeploymentGroupSettings,
    +              deprovisionDeploymentGroupSettings,
    +              getDeploymentGroupRevisionSettings,
    +              listDeploymentGroupRevisionsSettings,
                   listLocationsSettings,
                   getLocationSettings,
                   setIamPolicySettings,
    @@ -1382,6 +1756,26 @@ protected Builder(ConfigStubSettings settings) {
           updateAutoMigrationConfigSettings = settings.updateAutoMigrationConfigSettings.toBuilder();
           updateAutoMigrationConfigOperationSettings =
               settings.updateAutoMigrationConfigOperationSettings.toBuilder();
    +      getDeploymentGroupSettings = settings.getDeploymentGroupSettings.toBuilder();
    +      createDeploymentGroupSettings = settings.createDeploymentGroupSettings.toBuilder();
    +      createDeploymentGroupOperationSettings =
    +          settings.createDeploymentGroupOperationSettings.toBuilder();
    +      updateDeploymentGroupSettings = settings.updateDeploymentGroupSettings.toBuilder();
    +      updateDeploymentGroupOperationSettings =
    +          settings.updateDeploymentGroupOperationSettings.toBuilder();
    +      deleteDeploymentGroupSettings = settings.deleteDeploymentGroupSettings.toBuilder();
    +      deleteDeploymentGroupOperationSettings =
    +          settings.deleteDeploymentGroupOperationSettings.toBuilder();
    +      listDeploymentGroupsSettings = settings.listDeploymentGroupsSettings.toBuilder();
    +      provisionDeploymentGroupSettings = settings.provisionDeploymentGroupSettings.toBuilder();
    +      provisionDeploymentGroupOperationSettings =
    +          settings.provisionDeploymentGroupOperationSettings.toBuilder();
    +      deprovisionDeploymentGroupSettings = settings.deprovisionDeploymentGroupSettings.toBuilder();
    +      deprovisionDeploymentGroupOperationSettings =
    +          settings.deprovisionDeploymentGroupOperationSettings.toBuilder();
    +      getDeploymentGroupRevisionSettings = settings.getDeploymentGroupRevisionSettings.toBuilder();
    +      listDeploymentGroupRevisionsSettings =
    +          settings.listDeploymentGroupRevisionsSettings.toBuilder();
           listLocationsSettings = settings.listLocationsSettings.toBuilder();
           getLocationSettings = settings.getLocationSettings.toBuilder();
           setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
    @@ -1419,6 +1813,15 @@ protected Builder(ConfigStubSettings settings) {
                   getResourceDriftSettings,
                   getAutoMigrationConfigSettings,
                   updateAutoMigrationConfigSettings,
    +              getDeploymentGroupSettings,
    +              createDeploymentGroupSettings,
    +              updateDeploymentGroupSettings,
    +              deleteDeploymentGroupSettings,
    +              listDeploymentGroupsSettings,
    +              provisionDeploymentGroupSettings,
    +              deprovisionDeploymentGroupSettings,
    +              getDeploymentGroupRevisionSettings,
    +              listDeploymentGroupRevisionsSettings,
                   listLocationsSettings,
                   getLocationSettings,
                   setIamPolicySettings,
    @@ -1596,6 +1999,51 @@ 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
    +          .getDeploymentGroupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .createDeploymentGroupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .updateDeploymentGroupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .deleteDeploymentGroupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .listDeploymentGroupsSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .provisionDeploymentGroupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .deprovisionDeploymentGroupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .getDeploymentGroupRevisionSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
    +
    +      builder
    +          .listDeploymentGroupRevisionsSettings()
    +          .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"))
    @@ -1814,6 +2262,127 @@ private static Builder initDefaults(Builder builder) {
                           .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                           .build()));
     
    +      builder
    +          .createDeploymentGroupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(DeploymentGroup.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
    +          .updateDeploymentGroupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(DeploymentGroup.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
    +          .deleteDeploymentGroupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(DeploymentGroup.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
    +          .provisionDeploymentGroupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(DeploymentGroup.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
    +          .deprovisionDeploymentGroupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .
    +                      newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(DeploymentGroup.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()));
    +
           return builder;
         }
     
    @@ -2056,6 +2625,101 @@ public UnaryCallSettings.Builder deletePreviewS
           return updateAutoMigrationConfigOperationSettings;
         }
     
    +    /** Returns the builder for the settings used for calls to getDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        getDeploymentGroupSettings() {
    +      return getDeploymentGroupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        createDeploymentGroupSettings() {
    +      return createDeploymentGroupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            CreateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        createDeploymentGroupOperationSettings() {
    +      return createDeploymentGroupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to updateDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        updateDeploymentGroupSettings() {
    +      return updateDeploymentGroupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to updateDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            UpdateDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        updateDeploymentGroupOperationSettings() {
    +      return updateDeploymentGroupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        deleteDeploymentGroupSettings() {
    +      return deleteDeploymentGroupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            DeleteDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        deleteDeploymentGroupOperationSettings() {
    +      return deleteDeploymentGroupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listDeploymentGroups. */
    +    public PagedCallSettings.Builder<
    +            ListDeploymentGroupsRequest,
    +            ListDeploymentGroupsResponse,
    +            ListDeploymentGroupsPagedResponse>
    +        listDeploymentGroupsSettings() {
    +      return listDeploymentGroupsSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to provisionDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        provisionDeploymentGroupSettings() {
    +      return provisionDeploymentGroupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to provisionDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            ProvisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        provisionDeploymentGroupOperationSettings() {
    +      return provisionDeploymentGroupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deprovisionDeploymentGroup. */
    +    public UnaryCallSettings.Builder
    +        deprovisionDeploymentGroupSettings() {
    +      return deprovisionDeploymentGroupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deprovisionDeploymentGroup. */
    +    public OperationCallSettings.Builder<
    +            DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +        deprovisionDeploymentGroupOperationSettings() {
    +      return deprovisionDeploymentGroupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getDeploymentGroupRevision. */
    +    public UnaryCallSettings.Builder
    +        getDeploymentGroupRevisionSettings() {
    +      return getDeploymentGroupRevisionSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listDeploymentGroupRevisions. */
    +    public PagedCallSettings.Builder<
    +            ListDeploymentGroupRevisionsRequest,
    +            ListDeploymentGroupRevisionsResponse,
    +            ListDeploymentGroupRevisionsPagedResponse>
    +        listDeploymentGroupRevisionsSettings() {
    +      return listDeploymentGroupRevisionsSettings;
    +    }
    +
         /** Returns the builder for the settings used for calls to listLocations. */
         public PagedCallSettings.Builder<
                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java
    index 4dafd793dd0c..8b6bc79d7407 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.config.v1.stub;
     
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupRevisionsPagedResponse;
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse;
    @@ -34,18 +36,25 @@
     import com.google.api.gax.rpc.RequestParamsBuilder;
     import com.google.api.gax.rpc.UnaryCallable;
     import com.google.cloud.config.v1.AutoMigrationConfig;
    +import com.google.cloud.config.v1.CreateDeploymentGroupRequest;
     import com.google.cloud.config.v1.CreateDeploymentRequest;
     import com.google.cloud.config.v1.CreatePreviewRequest;
    +import com.google.cloud.config.v1.DeleteDeploymentGroupRequest;
     import com.google.cloud.config.v1.DeleteDeploymentRequest;
     import com.google.cloud.config.v1.DeletePreviewRequest;
     import com.google.cloud.config.v1.DeleteStatefileRequest;
     import com.google.cloud.config.v1.Deployment;
    +import com.google.cloud.config.v1.DeploymentGroup;
    +import com.google.cloud.config.v1.DeploymentGroupRevision;
    +import com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.ExportDeploymentStatefileRequest;
     import com.google.cloud.config.v1.ExportLockInfoRequest;
     import com.google.cloud.config.v1.ExportPreviewResultRequest;
     import com.google.cloud.config.v1.ExportPreviewResultResponse;
     import com.google.cloud.config.v1.ExportRevisionStatefileRequest;
     import com.google.cloud.config.v1.GetAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest;
     import com.google.cloud.config.v1.GetDeploymentRequest;
     import com.google.cloud.config.v1.GetPreviewRequest;
     import com.google.cloud.config.v1.GetResourceChangeRequest;
    @@ -54,6 +63,10 @@
     import com.google.cloud.config.v1.GetRevisionRequest;
     import com.google.cloud.config.v1.GetTerraformVersionRequest;
     import com.google.cloud.config.v1.ImportStatefileRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse;
    +import com.google.cloud.config.v1.ListDeploymentGroupsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupsResponse;
     import com.google.cloud.config.v1.ListDeploymentsRequest;
     import com.google.cloud.config.v1.ListDeploymentsResponse;
     import com.google.cloud.config.v1.ListPreviewsRequest;
    @@ -72,6 +85,7 @@
     import com.google.cloud.config.v1.LockInfo;
     import com.google.cloud.config.v1.OperationMetadata;
     import com.google.cloud.config.v1.Preview;
    +import com.google.cloud.config.v1.ProvisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.Resource;
     import com.google.cloud.config.v1.ResourceChange;
     import com.google.cloud.config.v1.ResourceDrift;
    @@ -80,6 +94,7 @@
     import com.google.cloud.config.v1.TerraformVersion;
     import com.google.cloud.config.v1.UnlockDeploymentRequest;
     import com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.UpdateDeploymentGroupRequest;
     import com.google.cloud.config.v1.UpdateDeploymentRequest;
     import com.google.cloud.location.GetLocationRequest;
     import com.google.cloud.location.ListLocationsRequest;
    @@ -428,6 +443,111 @@ public class GrpcConfigStub extends ConfigStub {
                   .setSampledToLocalTracing(true)
                   .build();
     
    +  private static final MethodDescriptor
    +      getDeploymentGroupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/GetDeploymentGroup")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(GetDeploymentGroupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(DeploymentGroup.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor
    +      createDeploymentGroupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/CreateDeploymentGroup")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(CreateDeploymentGroupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor
    +      updateDeploymentGroupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/UpdateDeploymentGroup")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(UpdateDeploymentGroupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor
    +      deleteDeploymentGroupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/DeleteDeploymentGroup")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(DeleteDeploymentGroupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor
    +      listDeploymentGroupsMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/ListDeploymentGroups")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(ListDeploymentGroupsRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(ListDeploymentGroupsResponse.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor
    +      provisionDeploymentGroupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/ProvisionDeploymentGroup")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(ProvisionDeploymentGroupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor
    +      deprovisionDeploymentGroupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/DeprovisionDeploymentGroup")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(DeprovisionDeploymentGroupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor
    +      getDeploymentGroupRevisionMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/GetDeploymentGroupRevision")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(GetDeploymentGroupRevisionRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(DeploymentGroupRevision.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
    +  private static final MethodDescriptor<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse>
    +      listDeploymentGroupRevisionsMethodDescriptor =
    +          MethodDescriptor
    +              .
    +                  newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.config.v1.Config/ListDeploymentGroupRevisions")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(ListDeploymentGroupRevisionsRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(ListDeploymentGroupRevisionsResponse.getDefaultInstance()))
    +              .setSampledToLocalTracing(true)
    +              .build();
    +
       private static final MethodDescriptor
           listLocationsMethodDescriptor =
               MethodDescriptor.newBuilder()
    @@ -549,6 +669,42 @@ public class GrpcConfigStub extends ConfigStub {
       private final OperationCallable<
               UpdateAutoMigrationConfigRequest, AutoMigrationConfig, OperationMetadata>
           updateAutoMigrationConfigOperationCallable;
    +  private final UnaryCallable
    +      getDeploymentGroupCallable;
    +  private final UnaryCallable
    +      createDeploymentGroupCallable;
    +  private final OperationCallable
    +      createDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      updateDeploymentGroupCallable;
    +  private final OperationCallable
    +      updateDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      deleteDeploymentGroupCallable;
    +  private final OperationCallable
    +      deleteDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      listDeploymentGroupsCallable;
    +  private final UnaryCallable
    +      listDeploymentGroupsPagedCallable;
    +  private final UnaryCallable
    +      provisionDeploymentGroupCallable;
    +  private final OperationCallable<
    +          ProvisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      provisionDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      deprovisionDeploymentGroupCallable;
    +  private final OperationCallable<
    +          DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      deprovisionDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      getDeploymentGroupRevisionCallable;
    +  private final UnaryCallable<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse>
    +      listDeploymentGroupRevisionsCallable;
    +  private final UnaryCallable<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsPagedCallable;
       private final UnaryCallable listLocationsCallable;
       private final UnaryCallable
           listLocationsPagedCallable;
    @@ -927,6 +1083,118 @@ protected GrpcConfigStub(
                           return builder.build();
                         })
                     .build();
    +    GrpcCallSettings
    +        getDeploymentGroupTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(getDeploymentGroupMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    GrpcCallSettings
    +        createDeploymentGroupTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(createDeploymentGroupMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getParent())
    +                .build();
    +    GrpcCallSettings
    +        updateDeploymentGroupTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(updateDeploymentGroupMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add(
    +                          "deployment_group.name",
    +                          String.valueOf(request.getDeploymentGroup().getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings
    +        deleteDeploymentGroupTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(deleteDeploymentGroupMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    GrpcCallSettings
    +        listDeploymentGroupsTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(listDeploymentGroupsMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getParent())
    +                .build();
    +    GrpcCallSettings
    +        provisionDeploymentGroupTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(provisionDeploymentGroupMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    GrpcCallSettings
    +        deprovisionDeploymentGroupTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(deprovisionDeploymentGroupMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    GrpcCallSettings
    +        getDeploymentGroupRevisionTransportSettings =
    +            GrpcCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(getDeploymentGroupRevisionMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    GrpcCallSettings
    +        listDeploymentGroupRevisionsTransportSettings =
    +            GrpcCallSettings
    +                .
    +                    newBuilder()
    +                .setMethodDescriptor(listDeploymentGroupRevisionsMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getParent())
    +                .build();
         GrpcCallSettings listLocationsTransportSettings =
             GrpcCallSettings.newBuilder()
                 .setMethodDescriptor(listLocationsMethodDescriptor)
    @@ -1164,6 +1432,91 @@ protected GrpcConfigStub(
                 settings.updateAutoMigrationConfigOperationSettings(),
                 clientContext,
                 operationsStub);
    +    this.getDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            getDeploymentGroupTransportSettings,
    +            settings.getDeploymentGroupSettings(),
    +            clientContext);
    +    this.createDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            createDeploymentGroupTransportSettings,
    +            settings.createDeploymentGroupSettings(),
    +            clientContext);
    +    this.createDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            createDeploymentGroupTransportSettings,
    +            settings.createDeploymentGroupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.updateDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            updateDeploymentGroupTransportSettings,
    +            settings.updateDeploymentGroupSettings(),
    +            clientContext);
    +    this.updateDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            updateDeploymentGroupTransportSettings,
    +            settings.updateDeploymentGroupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.deleteDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteDeploymentGroupTransportSettings,
    +            settings.deleteDeploymentGroupSettings(),
    +            clientContext);
    +    this.deleteDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteDeploymentGroupTransportSettings,
    +            settings.deleteDeploymentGroupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.listDeploymentGroupsCallable =
    +        callableFactory.createUnaryCallable(
    +            listDeploymentGroupsTransportSettings,
    +            settings.listDeploymentGroupsSettings(),
    +            clientContext);
    +    this.listDeploymentGroupsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listDeploymentGroupsTransportSettings,
    +            settings.listDeploymentGroupsSettings(),
    +            clientContext);
    +    this.provisionDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            provisionDeploymentGroupTransportSettings,
    +            settings.provisionDeploymentGroupSettings(),
    +            clientContext);
    +    this.provisionDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            provisionDeploymentGroupTransportSettings,
    +            settings.provisionDeploymentGroupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.deprovisionDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            deprovisionDeploymentGroupTransportSettings,
    +            settings.deprovisionDeploymentGroupSettings(),
    +            clientContext);
    +    this.deprovisionDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deprovisionDeploymentGroupTransportSettings,
    +            settings.deprovisionDeploymentGroupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.getDeploymentGroupRevisionCallable =
    +        callableFactory.createUnaryCallable(
    +            getDeploymentGroupRevisionTransportSettings,
    +            settings.getDeploymentGroupRevisionSettings(),
    +            clientContext);
    +    this.listDeploymentGroupRevisionsCallable =
    +        callableFactory.createUnaryCallable(
    +            listDeploymentGroupRevisionsTransportSettings,
    +            settings.listDeploymentGroupRevisionsSettings(),
    +            clientContext);
    +    this.listDeploymentGroupRevisionsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listDeploymentGroupRevisionsTransportSettings,
    +            settings.listDeploymentGroupRevisionsSettings(),
    +            clientContext);
         this.listLocationsCallable =
             callableFactory.createUnaryCallable(
                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
    @@ -1435,6 +1788,99 @@ public UnaryCallable getResourceDriftCal
         return updateAutoMigrationConfigOperationCallable;
       }
     
    +  @Override
    +  public UnaryCallable getDeploymentGroupCallable() {
    +    return getDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable createDeploymentGroupCallable() {
    +    return createDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      createDeploymentGroupOperationCallable() {
    +    return createDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable updateDeploymentGroupCallable() {
    +    return updateDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      updateDeploymentGroupOperationCallable() {
    +    return updateDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteDeploymentGroupCallable() {
    +    return deleteDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      deleteDeploymentGroupOperationCallable() {
    +    return deleteDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listDeploymentGroupsCallable() {
    +    return listDeploymentGroupsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listDeploymentGroupsPagedCallable() {
    +    return listDeploymentGroupsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      provisionDeploymentGroupCallable() {
    +    return provisionDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      provisionDeploymentGroupOperationCallable() {
    +    return provisionDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      deprovisionDeploymentGroupCallable() {
    +    return deprovisionDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      deprovisionDeploymentGroupOperationCallable() {
    +    return deprovisionDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      getDeploymentGroupRevisionCallable() {
    +    return getDeploymentGroupRevisionCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listDeploymentGroupRevisionsCallable() {
    +    return listDeploymentGroupRevisionsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsPagedCallable() {
    +    return listDeploymentGroupRevisionsPagedCallable;
    +  }
    +
       @Override
       public UnaryCallable listLocationsCallable() {
         return listLocationsCallable;
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java
    index 2e25a55118bc..c6976153534d 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.config.v1.stub;
     
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupRevisionsPagedResponse;
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse;
    @@ -42,18 +44,25 @@
     import com.google.api.gax.rpc.RequestParamsBuilder;
     import com.google.api.gax.rpc.UnaryCallable;
     import com.google.cloud.config.v1.AutoMigrationConfig;
    +import com.google.cloud.config.v1.CreateDeploymentGroupRequest;
     import com.google.cloud.config.v1.CreateDeploymentRequest;
     import com.google.cloud.config.v1.CreatePreviewRequest;
    +import com.google.cloud.config.v1.DeleteDeploymentGroupRequest;
     import com.google.cloud.config.v1.DeleteDeploymentRequest;
     import com.google.cloud.config.v1.DeletePreviewRequest;
     import com.google.cloud.config.v1.DeleteStatefileRequest;
     import com.google.cloud.config.v1.Deployment;
    +import com.google.cloud.config.v1.DeploymentGroup;
    +import com.google.cloud.config.v1.DeploymentGroupRevision;
    +import com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.ExportDeploymentStatefileRequest;
     import com.google.cloud.config.v1.ExportLockInfoRequest;
     import com.google.cloud.config.v1.ExportPreviewResultRequest;
     import com.google.cloud.config.v1.ExportPreviewResultResponse;
     import com.google.cloud.config.v1.ExportRevisionStatefileRequest;
     import com.google.cloud.config.v1.GetAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRequest;
    +import com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest;
     import com.google.cloud.config.v1.GetDeploymentRequest;
     import com.google.cloud.config.v1.GetPreviewRequest;
     import com.google.cloud.config.v1.GetResourceChangeRequest;
    @@ -62,6 +71,10 @@
     import com.google.cloud.config.v1.GetRevisionRequest;
     import com.google.cloud.config.v1.GetTerraformVersionRequest;
     import com.google.cloud.config.v1.ImportStatefileRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse;
    +import com.google.cloud.config.v1.ListDeploymentGroupsRequest;
    +import com.google.cloud.config.v1.ListDeploymentGroupsResponse;
     import com.google.cloud.config.v1.ListDeploymentsRequest;
     import com.google.cloud.config.v1.ListDeploymentsResponse;
     import com.google.cloud.config.v1.ListPreviewsRequest;
    @@ -80,6 +93,7 @@
     import com.google.cloud.config.v1.LockInfo;
     import com.google.cloud.config.v1.OperationMetadata;
     import com.google.cloud.config.v1.Preview;
    +import com.google.cloud.config.v1.ProvisionDeploymentGroupRequest;
     import com.google.cloud.config.v1.Resource;
     import com.google.cloud.config.v1.ResourceChange;
     import com.google.cloud.config.v1.ResourceDrift;
    @@ -88,6 +102,7 @@
     import com.google.cloud.config.v1.TerraformVersion;
     import com.google.cloud.config.v1.UnlockDeploymentRequest;
     import com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest;
    +import com.google.cloud.config.v1.UpdateDeploymentGroupRequest;
     import com.google.cloud.config.v1.UpdateDeploymentRequest;
     import com.google.cloud.location.GetLocationRequest;
     import com.google.cloud.location.ListLocationsRequest;
    @@ -122,6 +137,7 @@ public class HttpJsonConfigStub extends ConfigStub {
           TypeRegistry.newBuilder()
               .add(Deployment.getDescriptor())
               .add(AutoMigrationConfig.getDescriptor())
    +          .add(DeploymentGroup.getDescriptor())
               .add(OperationMetadata.getDescriptor())
               .add(Preview.getDescriptor())
               .build();
    @@ -1218,6 +1234,366 @@ public class HttpJsonConfigStub extends ConfigStub {
                           HttpJsonOperationSnapshot.create(response))
                   .build();
     
    +  private static final ApiMethodDescriptor
    +      getDeploymentGroupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/GetDeploymentGroup")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/deploymentGroups/*}",
    +                          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(DeploymentGroup.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      createDeploymentGroupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/CreateDeploymentGroup")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{parent=projects/*/locations/*}/deploymentGroups",
    +                          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, "deploymentGroupId", request.getDeploymentGroupId());
    +                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(
    +                          request ->
    +                              ProtoRestSerializer.create()
    +                                  .toBody("deploymentGroup", request.getDeploymentGroup(), true))
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (CreateDeploymentGroupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      updateDeploymentGroupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/UpdateDeploymentGroup")
    +              .setHttpMethod("PATCH")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{deploymentGroup.name=projects/*/locations/*/deploymentGroups/*}",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(
    +                                fields,
    +                                "deploymentGroup.name",
    +                                request.getDeploymentGroup().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("deploymentGroup", request.getDeploymentGroup(), true))
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (UpdateDeploymentGroupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      deleteDeploymentGroupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/DeleteDeploymentGroup")
    +              .setHttpMethod("DELETE")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/deploymentGroups/*}",
    +                          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,
    +                                "deploymentReferencePolicy",
    +                                request.getDeploymentReferencePolicyValue());
    +                            serializer.putQueryParam(fields, "force", request.getForce());
    +                            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(
    +                  (DeleteDeploymentGroupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor<
    +          ListDeploymentGroupsRequest, ListDeploymentGroupsResponse>
    +      listDeploymentGroupsMethodDescriptor =
    +          ApiMethodDescriptor
    +              .newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/ListDeploymentGroups")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{parent=projects/*/locations/*}/deploymentGroups",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "parent", request.getParent());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "filter", request.getFilter());
    +                            serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
    +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
    +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(ListDeploymentGroupsResponse.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      provisionDeploymentGroupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/ProvisionDeploymentGroup")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/deploymentGroups/*}:provision",
    +                          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(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (ProvisionDeploymentGroupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      deprovisionDeploymentGroupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/DeprovisionDeploymentGroup")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/deploymentGroups/*}:deprovision",
    +                          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(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (DeprovisionDeploymentGroupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor<
    +          GetDeploymentGroupRevisionRequest, DeploymentGroupRevision>
    +      getDeploymentGroupRevisionMethodDescriptor =
    +          ApiMethodDescriptor
    +              .newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/GetDeploymentGroupRevision")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/deploymentGroups/*/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(DeploymentGroupRevision.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse>
    +      listDeploymentGroupRevisionsMethodDescriptor =
    +          ApiMethodDescriptor
    +              .
    +                  newBuilder()
    +              .setFullMethodName("google.cloud.config.v1.Config/ListDeploymentGroupRevisions")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{parent=projects/*/locations/*/deploymentGroups/*}/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(ListDeploymentGroupRevisionsResponse.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
       private static final ApiMethodDescriptor
           listLocationsMethodDescriptor =
               ApiMethodDescriptor.newBuilder()
    @@ -1464,6 +1840,42 @@ public class HttpJsonConfigStub extends ConfigStub {
       private final OperationCallable<
               UpdateAutoMigrationConfigRequest, AutoMigrationConfig, OperationMetadata>
           updateAutoMigrationConfigOperationCallable;
    +  private final UnaryCallable
    +      getDeploymentGroupCallable;
    +  private final UnaryCallable
    +      createDeploymentGroupCallable;
    +  private final OperationCallable
    +      createDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      updateDeploymentGroupCallable;
    +  private final OperationCallable
    +      updateDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      deleteDeploymentGroupCallable;
    +  private final OperationCallable
    +      deleteDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      listDeploymentGroupsCallable;
    +  private final UnaryCallable
    +      listDeploymentGroupsPagedCallable;
    +  private final UnaryCallable
    +      provisionDeploymentGroupCallable;
    +  private final OperationCallable<
    +          ProvisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      provisionDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      deprovisionDeploymentGroupCallable;
    +  private final OperationCallable<
    +          DeprovisionDeploymentGroupRequest, DeploymentGroup, OperationMetadata>
    +      deprovisionDeploymentGroupOperationCallable;
    +  private final UnaryCallable
    +      getDeploymentGroupRevisionCallable;
    +  private final UnaryCallable<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse>
    +      listDeploymentGroupRevisionsCallable;
    +  private final UnaryCallable<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsPagedCallable;
       private final UnaryCallable listLocationsCallable;
       private final UnaryCallable
           listLocationsPagedCallable;
    @@ -1904,6 +2316,128 @@ protected HttpJsonConfigStub(
                           return builder.build();
                         })
                     .build();
    +    HttpJsonCallSettings
    +        getDeploymentGroupTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(getDeploymentGroupMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    HttpJsonCallSettings
    +        createDeploymentGroupTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(createDeploymentGroupMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getParent())
    +                .build();
    +    HttpJsonCallSettings
    +        updateDeploymentGroupTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(updateDeploymentGroupMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add(
    +                          "deployment_group.name",
    +                          String.valueOf(request.getDeploymentGroup().getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        deleteDeploymentGroupTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(deleteDeploymentGroupMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    HttpJsonCallSettings
    +        listDeploymentGroupsTransportSettings =
    +            HttpJsonCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(listDeploymentGroupsMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getParent())
    +                .build();
    +    HttpJsonCallSettings
    +        provisionDeploymentGroupTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(provisionDeploymentGroupMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    HttpJsonCallSettings
    +        deprovisionDeploymentGroupTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(deprovisionDeploymentGroupMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    HttpJsonCallSettings
    +        getDeploymentGroupRevisionTransportSettings =
    +            HttpJsonCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(getDeploymentGroupRevisionMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getName())
    +                .build();
    +    HttpJsonCallSettings
    +        listDeploymentGroupRevisionsTransportSettings =
    +            HttpJsonCallSettings
    +                .
    +                    newBuilder()
    +                .setMethodDescriptor(listDeploymentGroupRevisionsMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .setResourceNameExtractor(request -> request.getParent())
    +                .build();
         HttpJsonCallSettings
             listLocationsTransportSettings =
                 HttpJsonCallSettings.newBuilder()
    @@ -2147,6 +2681,91 @@ protected HttpJsonConfigStub(
                 settings.updateAutoMigrationConfigOperationSettings(),
                 clientContext,
                 httpJsonOperationsStub);
    +    this.getDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            getDeploymentGroupTransportSettings,
    +            settings.getDeploymentGroupSettings(),
    +            clientContext);
    +    this.createDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            createDeploymentGroupTransportSettings,
    +            settings.createDeploymentGroupSettings(),
    +            clientContext);
    +    this.createDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            createDeploymentGroupTransportSettings,
    +            settings.createDeploymentGroupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.updateDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            updateDeploymentGroupTransportSettings,
    +            settings.updateDeploymentGroupSettings(),
    +            clientContext);
    +    this.updateDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            updateDeploymentGroupTransportSettings,
    +            settings.updateDeploymentGroupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.deleteDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteDeploymentGroupTransportSettings,
    +            settings.deleteDeploymentGroupSettings(),
    +            clientContext);
    +    this.deleteDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteDeploymentGroupTransportSettings,
    +            settings.deleteDeploymentGroupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.listDeploymentGroupsCallable =
    +        callableFactory.createUnaryCallable(
    +            listDeploymentGroupsTransportSettings,
    +            settings.listDeploymentGroupsSettings(),
    +            clientContext);
    +    this.listDeploymentGroupsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listDeploymentGroupsTransportSettings,
    +            settings.listDeploymentGroupsSettings(),
    +            clientContext);
    +    this.provisionDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            provisionDeploymentGroupTransportSettings,
    +            settings.provisionDeploymentGroupSettings(),
    +            clientContext);
    +    this.provisionDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            provisionDeploymentGroupTransportSettings,
    +            settings.provisionDeploymentGroupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.deprovisionDeploymentGroupCallable =
    +        callableFactory.createUnaryCallable(
    +            deprovisionDeploymentGroupTransportSettings,
    +            settings.deprovisionDeploymentGroupSettings(),
    +            clientContext);
    +    this.deprovisionDeploymentGroupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deprovisionDeploymentGroupTransportSettings,
    +            settings.deprovisionDeploymentGroupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.getDeploymentGroupRevisionCallable =
    +        callableFactory.createUnaryCallable(
    +            getDeploymentGroupRevisionTransportSettings,
    +            settings.getDeploymentGroupRevisionSettings(),
    +            clientContext);
    +    this.listDeploymentGroupRevisionsCallable =
    +        callableFactory.createUnaryCallable(
    +            listDeploymentGroupRevisionsTransportSettings,
    +            settings.listDeploymentGroupRevisionsSettings(),
    +            clientContext);
    +    this.listDeploymentGroupRevisionsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listDeploymentGroupRevisionsTransportSettings,
    +            settings.listDeploymentGroupRevisionsSettings(),
    +            clientContext);
         this.listLocationsCallable =
             callableFactory.createUnaryCallable(
                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
    @@ -2204,6 +2823,15 @@ public static List getMethodDescriptors() {
         methodDescriptors.add(getResourceDriftMethodDescriptor);
         methodDescriptors.add(getAutoMigrationConfigMethodDescriptor);
         methodDescriptors.add(updateAutoMigrationConfigMethodDescriptor);
    +    methodDescriptors.add(getDeploymentGroupMethodDescriptor);
    +    methodDescriptors.add(createDeploymentGroupMethodDescriptor);
    +    methodDescriptors.add(updateDeploymentGroupMethodDescriptor);
    +    methodDescriptors.add(deleteDeploymentGroupMethodDescriptor);
    +    methodDescriptors.add(listDeploymentGroupsMethodDescriptor);
    +    methodDescriptors.add(provisionDeploymentGroupMethodDescriptor);
    +    methodDescriptors.add(deprovisionDeploymentGroupMethodDescriptor);
    +    methodDescriptors.add(getDeploymentGroupRevisionMethodDescriptor);
    +    methodDescriptors.add(listDeploymentGroupRevisionsMethodDescriptor);
         methodDescriptors.add(listLocationsMethodDescriptor);
         methodDescriptors.add(getLocationMethodDescriptor);
         methodDescriptors.add(setIamPolicyMethodDescriptor);
    @@ -2458,6 +3086,99 @@ public UnaryCallable getResourceDriftCal
         return updateAutoMigrationConfigOperationCallable;
       }
     
    +  @Override
    +  public UnaryCallable getDeploymentGroupCallable() {
    +    return getDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable createDeploymentGroupCallable() {
    +    return createDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      createDeploymentGroupOperationCallable() {
    +    return createDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable updateDeploymentGroupCallable() {
    +    return updateDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      updateDeploymentGroupOperationCallable() {
    +    return updateDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteDeploymentGroupCallable() {
    +    return deleteDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      deleteDeploymentGroupOperationCallable() {
    +    return deleteDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listDeploymentGroupsCallable() {
    +    return listDeploymentGroupsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listDeploymentGroupsPagedCallable() {
    +    return listDeploymentGroupsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      provisionDeploymentGroupCallable() {
    +    return provisionDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      provisionDeploymentGroupOperationCallable() {
    +    return provisionDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      deprovisionDeploymentGroupCallable() {
    +    return deprovisionDeploymentGroupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      deprovisionDeploymentGroupOperationCallable() {
    +    return deprovisionDeploymentGroupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      getDeploymentGroupRevisionCallable() {
    +    return getDeploymentGroupRevisionCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listDeploymentGroupRevisionsCallable() {
    +    return listDeploymentGroupRevisionsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable<
    +          ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsPagedResponse>
    +      listDeploymentGroupRevisionsPagedCallable() {
    +    return listDeploymentGroupRevisionsPagedCallable;
    +  }
    +
       @Override
       public UnaryCallable listLocationsCallable() {
         return listLocationsCallable;
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json
    index 86695408dfd3..7a03364e1f31 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json
    +++ b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json
    @@ -557,6 +557,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.CreateDeploymentGroupRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.CreateDeploymentGroupRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.CreateDeploymentRequest",
         "queryAllDeclaredConstructors": true,
    @@ -593,6 +611,33 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.DeleteDeploymentGroupRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeleteDeploymentGroupRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeleteDeploymentGroupRequest$DeploymentReferencePolicy",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.DeleteDeploymentRequest",
         "queryAllDeclaredConstructors": true,
    @@ -701,6 +746,60 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentGroup",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentGroup$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentGroup$ProvisioningState",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentGroup$State",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentGroupRevision",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentGroupRevision$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.DeploymentOperationMetadata",
         "queryAllDeclaredConstructors": true,
    @@ -728,6 +827,132 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentOperationSummary",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentOperationSummary$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentSource",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentSource$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentSpec",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentSpec$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentUnit",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentUnit$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentUnitProgress",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentUnitProgress$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentUnitProgress$Intent",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeploymentUnitProgress$State",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.ExportDeploymentStatefileRequest",
         "queryAllDeclaredConstructors": true,
    @@ -818,6 +1043,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.ExternalValueSource",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ExternalValueSource$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.GetAutoMigrationConfigRequest",
         "queryAllDeclaredConstructors": true,
    @@ -836,6 +1079,42 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.GetDeploymentGroupRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.GetDeploymentGroupRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.GetDeploymentRequest",
         "queryAllDeclaredConstructors": true,
    @@ -998,6 +1277,78 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ListDeploymentGroupsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.ListDeploymentsRequest",
         "queryAllDeclaredConstructors": true,
    @@ -1475,6 +1826,51 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata$ProvisionDeploymentGroupStep",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.QuotaValidation",
         "queryAllDeclaredConstructors": true,
    @@ -1835,6 +2231,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.config.v1.UpdateDeploymentGroupRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.config.v1.UpdateDeploymentGroupRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.config.v1.UpdateDeploymentRequest",
         "queryAllDeclaredConstructors": true,
    diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java
    index 854d7c0f60eb..6d0d68bf7c72 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.config.v1;
     
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupRevisionsPagedResponse;
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse;
    @@ -3085,6 +3087,1002 @@ public void updateAutoMigrationConfigExceptionTest() throws Exception {
         }
       }
     
    +  @Test
    +  public void getDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.getDeploymentGroup(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 getDeploymentGroupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.getDeploymentGroup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String name =
    +        "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +
    +    DeploymentGroup actualResponse = client.getDeploymentGroup(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 getDeploymentGroupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +      client.getDeploymentGroup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void createDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("createDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +    DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +    String deploymentGroupId = "deploymentGroupId717062517";
    +
    +    DeploymentGroup actualResponse =
    +        client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).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 createDeploymentGroupExceptionTest() 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]");
    +      DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +      String deploymentGroupId = "deploymentGroupId717062517";
    +      client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void createDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("createDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String parent = "projects/project-5833/locations/location-5833";
    +    DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +    String deploymentGroupId = "deploymentGroupId717062517";
    +
    +    DeploymentGroup actualResponse =
    +        client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).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 createDeploymentGroupExceptionTest2() 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";
    +      DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +      String deploymentGroupId = "deploymentGroupId717062517";
    +      client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void updateDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("updateDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    DeploymentGroup deploymentGroup =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    FieldMask updateMask = FieldMask.newBuilder().build();
    +
    +    DeploymentGroup actualResponse =
    +        client.updateDeploymentGroupAsync(deploymentGroup, 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 updateDeploymentGroupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      DeploymentGroup deploymentGroup =
    +          DeploymentGroup.newBuilder()
    +              .setName(
    +                  DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]")
    +                      .toString())
    +              .setCreateTime(Timestamp.newBuilder().build())
    +              .setUpdateTime(Timestamp.newBuilder().build())
    +              .putAllLabels(new HashMap())
    +              .putAllAnnotations(new HashMap())
    +              .setStateDescription("stateDescription-1173318997")
    +              .addAllDeploymentUnits(new ArrayList())
    +              .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +              .setProvisioningError(Status.newBuilder().build())
    +              .build();
    +      FieldMask updateMask = FieldMask.newBuilder().build();
    +      client.updateDeploymentGroupAsync(deploymentGroup, updateMask).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void deleteDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.deleteDeploymentGroupAsync(name).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 deleteDeploymentGroupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.deleteDeploymentGroupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void deleteDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name =
    +        "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +
    +    DeploymentGroup actualResponse = client.deleteDeploymentGroupAsync(name).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 deleteDeploymentGroupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +      client.deleteDeploymentGroupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupsTest() throws Exception {
    +    DeploymentGroup responsesElement = DeploymentGroup.newBuilder().build();
    +    ListDeploymentGroupsResponse expectedResponse =
    +        ListDeploymentGroupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroups(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +
    +    ListDeploymentGroupsPagedResponse pagedListResponse = client.listDeploymentGroups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getDeploymentGroupsList().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 listDeploymentGroupsExceptionTest() 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.listDeploymentGroups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupsTest2() throws Exception {
    +    DeploymentGroup responsesElement = DeploymentGroup.newBuilder().build();
    +    ListDeploymentGroupsResponse expectedResponse =
    +        ListDeploymentGroupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroups(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String parent = "projects/project-5833/locations/location-5833";
    +
    +    ListDeploymentGroupsPagedResponse pagedListResponse = client.listDeploymentGroups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getDeploymentGroupsList().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 listDeploymentGroupsExceptionTest2() 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.listDeploymentGroups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void provisionDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("provisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.provisionDeploymentGroupAsync(name).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 provisionDeploymentGroupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.provisionDeploymentGroupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void provisionDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("provisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name =
    +        "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +
    +    DeploymentGroup actualResponse = client.provisionDeploymentGroupAsync(name).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 provisionDeploymentGroupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +      client.provisionDeploymentGroupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void deprovisionDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deprovisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.deprovisionDeploymentGroupAsync(name).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 deprovisionDeploymentGroupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.deprovisionDeploymentGroupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void deprovisionDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deprovisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name =
    +        "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +
    +    DeploymentGroup actualResponse = client.deprovisionDeploymentGroupAsync(name).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 deprovisionDeploymentGroupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-9255/locations/location-9255/deploymentGroups/deploymentGroup-9255";
    +      client.deprovisionDeploymentGroupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupRevisionTest() throws Exception {
    +    DeploymentGroupRevision expectedResponse =
    +        DeploymentGroupRevision.newBuilder()
    +            .setName(
    +                DeploymentGroupRevisionName.of(
    +                        "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]")
    +                    .toString())
    +            .setSnapshot(DeploymentGroup.newBuilder().build())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .addAllAlternativeIds(new ArrayList())
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    DeploymentGroupRevisionName name =
    +        DeploymentGroupRevisionName.of(
    +            "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]");
    +
    +    DeploymentGroupRevision actualResponse = client.getDeploymentGroupRevision(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 getDeploymentGroupRevisionExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      DeploymentGroupRevisionName name =
    +          DeploymentGroupRevisionName.of(
    +              "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]");
    +      client.getDeploymentGroupRevision(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupRevisionTest2() throws Exception {
    +    DeploymentGroupRevision expectedResponse =
    +        DeploymentGroupRevision.newBuilder()
    +            .setName(
    +                DeploymentGroupRevisionName.of(
    +                        "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]")
    +                    .toString())
    +            .setSnapshot(DeploymentGroup.newBuilder().build())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .addAllAlternativeIds(new ArrayList())
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String name =
    +        "projects/project-4461/locations/location-4461/deploymentGroups/deploymentGroup-4461/revisions/revision-4461";
    +
    +    DeploymentGroupRevision actualResponse = client.getDeploymentGroupRevision(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 getDeploymentGroupRevisionExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-4461/locations/location-4461/deploymentGroups/deploymentGroup-4461/revisions/revision-4461";
    +      client.getDeploymentGroupRevision(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupRevisionsTest() throws Exception {
    +    DeploymentGroupRevision responsesElement = DeploymentGroupRevision.newBuilder().build();
    +    ListDeploymentGroupRevisionsResponse expectedResponse =
    +        ListDeploymentGroupRevisionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroupRevisions(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    DeploymentGroupName parent =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    ListDeploymentGroupRevisionsPagedResponse pagedListResponse =
    +        client.listDeploymentGroupRevisions(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(
    +        expectedResponse.getDeploymentGroupRevisionsList().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 listDeploymentGroupRevisionsExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      DeploymentGroupName parent =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.listDeploymentGroupRevisions(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupRevisionsTest2() throws Exception {
    +    DeploymentGroupRevision responsesElement = DeploymentGroupRevision.newBuilder().build();
    +    ListDeploymentGroupRevisionsResponse expectedResponse =
    +        ListDeploymentGroupRevisionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroupRevisions(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String parent =
    +        "projects/project-6074/locations/location-6074/deploymentGroups/deploymentGroup-6074";
    +
    +    ListDeploymentGroupRevisionsPagedResponse pagedListResponse =
    +        client.listDeploymentGroupRevisions(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(
    +        expectedResponse.getDeploymentGroupRevisionsList().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 listDeploymentGroupRevisionsExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String parent =
    +          "projects/project-6074/locations/location-6074/deploymentGroups/deploymentGroup-6074";
    +      client.listDeploymentGroupRevisions(parent);
    +      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-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java
    index 397b50d1d59c..b9de1000853f 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.config.v1;
     
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupRevisionsPagedResponse;
    +import static com.google.cloud.config.v1.ConfigClient.ListDeploymentGroupsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse;
     import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse;
    @@ -2773,6 +2775,910 @@ public void updateAutoMigrationConfigExceptionTest() throws Exception {
         }
       }
     
    +  @Test
    +  public void getDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.getDeploymentGroup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetDeploymentGroupRequest actualRequest = ((GetDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.getDeploymentGroup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    DeploymentGroup actualResponse = client.getDeploymentGroup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetDeploymentGroupRequest actualRequest = ((GetDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.getDeploymentGroup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void createDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("createDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +    DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +    String deploymentGroupId = "deploymentGroupId717062517";
    +
    +    DeploymentGroup actualResponse =
    +        client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    CreateDeploymentGroupRequest actualRequest =
    +        ((CreateDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
    +    Assert.assertEquals(deploymentGroup, actualRequest.getDeploymentGroup());
    +    Assert.assertEquals(deploymentGroupId, actualRequest.getDeploymentGroupId());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void createDeploymentGroupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +      DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +      String deploymentGroupId = "deploymentGroupId717062517";
    +      client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).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 createDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("createDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    String parent = "parent-995424086";
    +    DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +    String deploymentGroupId = "deploymentGroupId717062517";
    +
    +    DeploymentGroup actualResponse =
    +        client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    CreateDeploymentGroupRequest actualRequest =
    +        ((CreateDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent, actualRequest.getParent());
    +    Assert.assertEquals(deploymentGroup, actualRequest.getDeploymentGroup());
    +    Assert.assertEquals(deploymentGroupId, actualRequest.getDeploymentGroupId());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void createDeploymentGroupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String parent = "parent-995424086";
    +      DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +      String deploymentGroupId = "deploymentGroupId717062517";
    +      client.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).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 updateDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("updateDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +    FieldMask updateMask = FieldMask.newBuilder().build();
    +
    +    DeploymentGroup actualResponse =
    +        client.updateDeploymentGroupAsync(deploymentGroup, updateMask).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    UpdateDeploymentGroupRequest actualRequest =
    +        ((UpdateDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(deploymentGroup, actualRequest.getDeploymentGroup());
    +    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void updateDeploymentGroupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build();
    +      FieldMask updateMask = FieldMask.newBuilder().build();
    +      client.updateDeploymentGroupAsync(deploymentGroup, 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 deleteDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.deleteDeploymentGroupAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeleteDeploymentGroupRequest actualRequest =
    +        ((DeleteDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deleteDeploymentGroupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.deleteDeploymentGroupAsync(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 deleteDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +
    +    DeploymentGroup actualResponse = client.deleteDeploymentGroupAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeleteDeploymentGroupRequest actualRequest =
    +        ((DeleteDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deleteDeploymentGroupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.deleteDeploymentGroupAsync(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 listDeploymentGroupsTest() throws Exception {
    +    DeploymentGroup responsesElement = DeploymentGroup.newBuilder().build();
    +    ListDeploymentGroupsResponse expectedResponse =
    +        ListDeploymentGroupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroups(Arrays.asList(responsesElement))
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +
    +    ListDeploymentGroupsPagedResponse pagedListResponse = client.listDeploymentGroups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getDeploymentGroupsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListDeploymentGroupsRequest actualRequest =
    +        ((ListDeploymentGroupsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupsExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +      client.listDeploymentGroups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupsTest2() throws Exception {
    +    DeploymentGroup responsesElement = DeploymentGroup.newBuilder().build();
    +    ListDeploymentGroupsResponse expectedResponse =
    +        ListDeploymentGroupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroups(Arrays.asList(responsesElement))
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    String parent = "parent-995424086";
    +
    +    ListDeploymentGroupsPagedResponse pagedListResponse = client.listDeploymentGroups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getDeploymentGroupsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListDeploymentGroupsRequest actualRequest =
    +        ((ListDeploymentGroupsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent, actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupsExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String parent = "parent-995424086";
    +      client.listDeploymentGroups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void provisionDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("provisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.provisionDeploymentGroupAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ProvisionDeploymentGroupRequest actualRequest =
    +        ((ProvisionDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void provisionDeploymentGroupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.provisionDeploymentGroupAsync(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 provisionDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("provisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +
    +    DeploymentGroup actualResponse = client.provisionDeploymentGroupAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ProvisionDeploymentGroupRequest actualRequest =
    +        ((ProvisionDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void provisionDeploymentGroupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.provisionDeploymentGroupAsync(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 deprovisionDeploymentGroupTest() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deprovisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    DeploymentGroupName name =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    DeploymentGroup actualResponse = client.deprovisionDeploymentGroupAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeprovisionDeploymentGroupRequest actualRequest =
    +        ((DeprovisionDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deprovisionDeploymentGroupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      DeploymentGroupName name =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.deprovisionDeploymentGroupAsync(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 deprovisionDeploymentGroupTest2() throws Exception {
    +    DeploymentGroup expectedResponse =
    +        DeploymentGroup.newBuilder()
    +            .setName(
    +                DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUpdateTime(Timestamp.newBuilder().build())
    +            .putAllLabels(new HashMap())
    +            .putAllAnnotations(new HashMap())
    +            .setStateDescription("stateDescription-1173318997")
    +            .addAllDeploymentUnits(new ArrayList())
    +            .setProvisioningStateDescription("provisioningStateDescription1181429688")
    +            .setProvisioningError(Status.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deprovisionDeploymentGroupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockConfig.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +
    +    DeploymentGroup actualResponse = client.deprovisionDeploymentGroupAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeprovisionDeploymentGroupRequest actualRequest =
    +        ((DeprovisionDeploymentGroupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deprovisionDeploymentGroupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.deprovisionDeploymentGroupAsync(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 getDeploymentGroupRevisionTest() throws Exception {
    +    DeploymentGroupRevision expectedResponse =
    +        DeploymentGroupRevision.newBuilder()
    +            .setName(
    +                DeploymentGroupRevisionName.of(
    +                        "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]")
    +                    .toString())
    +            .setSnapshot(DeploymentGroup.newBuilder().build())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .addAllAlternativeIds(new ArrayList())
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    DeploymentGroupRevisionName name =
    +        DeploymentGroupRevisionName.of(
    +            "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]");
    +
    +    DeploymentGroupRevision actualResponse = client.getDeploymentGroupRevision(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetDeploymentGroupRevisionRequest actualRequest =
    +        ((GetDeploymentGroupRevisionRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupRevisionExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      DeploymentGroupRevisionName name =
    +          DeploymentGroupRevisionName.of(
    +              "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]");
    +      client.getDeploymentGroupRevision(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupRevisionTest2() throws Exception {
    +    DeploymentGroupRevision expectedResponse =
    +        DeploymentGroupRevision.newBuilder()
    +            .setName(
    +                DeploymentGroupRevisionName.of(
    +                        "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]")
    +                    .toString())
    +            .setSnapshot(DeploymentGroup.newBuilder().build())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .addAllAlternativeIds(new ArrayList())
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    DeploymentGroupRevision actualResponse = client.getDeploymentGroupRevision(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetDeploymentGroupRevisionRequest actualRequest =
    +        ((GetDeploymentGroupRevisionRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getDeploymentGroupRevisionExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.getDeploymentGroupRevision(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupRevisionsTest() throws Exception {
    +    DeploymentGroupRevision responsesElement = DeploymentGroupRevision.newBuilder().build();
    +    ListDeploymentGroupRevisionsResponse expectedResponse =
    +        ListDeploymentGroupRevisionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroupRevisions(Arrays.asList(responsesElement))
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    DeploymentGroupName parent =
    +        DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +
    +    ListDeploymentGroupRevisionsPagedResponse pagedListResponse =
    +        client.listDeploymentGroupRevisions(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(
    +        expectedResponse.getDeploymentGroupRevisionsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListDeploymentGroupRevisionsRequest actualRequest =
    +        ((ListDeploymentGroupRevisionsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupRevisionsExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      DeploymentGroupName parent =
    +          DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]");
    +      client.listDeploymentGroupRevisions(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupRevisionsTest2() throws Exception {
    +    DeploymentGroupRevision responsesElement = DeploymentGroupRevision.newBuilder().build();
    +    ListDeploymentGroupRevisionsResponse expectedResponse =
    +        ListDeploymentGroupRevisionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllDeploymentGroupRevisions(Arrays.asList(responsesElement))
    +            .build();
    +    mockConfig.addResponse(expectedResponse);
    +
    +    String parent = "parent-995424086";
    +
    +    ListDeploymentGroupRevisionsPagedResponse pagedListResponse =
    +        client.listDeploymentGroupRevisions(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(
    +        expectedResponse.getDeploymentGroupRevisionsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockConfig.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListDeploymentGroupRevisionsRequest actualRequest =
    +        ((ListDeploymentGroupRevisionsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent, actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listDeploymentGroupRevisionsExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockConfig.addException(exception);
    +
    +    try {
    +      String parent = "parent-995424086";
    +      client.listDeploymentGroupRevisions(parent);
    +      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-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java
    index 67021d715ca6..4ba924e7aea3 100644
    --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java
    +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java
    @@ -674,4 +674,204 @@ public void updateAutoMigrationConfig(
                       Exception.class.getName())));
         }
       }
    +
    +  @Override
    +  public void getDeploymentGroup(
    +      GetDeploymentGroupRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof DeploymentGroup) {
    +      requests.add(request);
    +      responseObserver.onNext(((DeploymentGroup) 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 GetDeploymentGroup, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  DeploymentGroup.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void createDeploymentGroup(
    +      CreateDeploymentGroupRequest 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 CreateDeploymentGroup, expected %s or"
    +                      + " %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void updateDeploymentGroup(
    +      UpdateDeploymentGroupRequest 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 UpdateDeploymentGroup, expected %s or"
    +                      + " %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void deleteDeploymentGroup(
    +      DeleteDeploymentGroupRequest 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 DeleteDeploymentGroup, expected %s or"
    +                      + " %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void listDeploymentGroups(
    +      ListDeploymentGroupsRequest request,
    +      StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof ListDeploymentGroupsResponse) {
    +      requests.add(request);
    +      responseObserver.onNext(((ListDeploymentGroupsResponse) 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 ListDeploymentGroups, expected %s or"
    +                      + " %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  ListDeploymentGroupsResponse.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void provisionDeploymentGroup(
    +      ProvisionDeploymentGroupRequest 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 ProvisionDeploymentGroup, expected %s"
    +                      + " or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void deprovisionDeploymentGroup(
    +      DeprovisionDeploymentGroupRequest 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 DeprovisionDeploymentGroup, expected %s"
    +                      + " or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void getDeploymentGroupRevision(
    +      GetDeploymentGroupRevisionRequest request,
    +      StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof DeploymentGroupRevision) {
    +      requests.add(request);
    +      responseObserver.onNext(((DeploymentGroupRevision) 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 GetDeploymentGroupRevision, expected %s"
    +                      + " or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  DeploymentGroupRevision.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void listDeploymentGroupRevisions(
    +      ListDeploymentGroupRevisionsRequest request,
    +      StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof ListDeploymentGroupRevisionsResponse) {
    +      requests.add(request);
    +      responseObserver.onNext(((ListDeploymentGroupRevisionsResponse) 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 ListDeploymentGroupRevisions, expected"
    +                      + " %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  ListDeploymentGroupRevisionsResponse.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
     }
    diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java
    index 1350c08b793c..ba1dda7b6d04 100644
    --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java
    +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java
    @@ -1316,6 +1316,433 @@ private ConfigGrpc() {}
         return getUpdateAutoMigrationConfigMethod;
       }
     
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.GetDeploymentGroupRequest,
    +          com.google.cloud.config.v1.DeploymentGroup>
    +      getGetDeploymentGroupMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "GetDeploymentGroup",
    +      requestType = com.google.cloud.config.v1.GetDeploymentGroupRequest.class,
    +      responseType = com.google.cloud.config.v1.DeploymentGroup.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.GetDeploymentGroupRequest,
    +          com.google.cloud.config.v1.DeploymentGroup>
    +      getGetDeploymentGroupMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.GetDeploymentGroupRequest,
    +            com.google.cloud.config.v1.DeploymentGroup>
    +        getGetDeploymentGroupMethod;
    +    if ((getGetDeploymentGroupMethod = ConfigGrpc.getGetDeploymentGroupMethod) == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getGetDeploymentGroupMethod = ConfigGrpc.getGetDeploymentGroupMethod) == null) {
    +          ConfigGrpc.getGetDeploymentGroupMethod =
    +              getGetDeploymentGroupMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeploymentGroup"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.GetDeploymentGroupRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()))
    +                      .setSchemaDescriptor(new ConfigMethodDescriptorSupplier("GetDeploymentGroup"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getGetDeploymentGroupMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.CreateDeploymentGroupRequest, com.google.longrunning.Operation>
    +      getCreateDeploymentGroupMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "CreateDeploymentGroup",
    +      requestType = com.google.cloud.config.v1.CreateDeploymentGroupRequest.class,
    +      responseType = com.google.longrunning.Operation.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.CreateDeploymentGroupRequest, com.google.longrunning.Operation>
    +      getCreateDeploymentGroupMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.CreateDeploymentGroupRequest,
    +            com.google.longrunning.Operation>
    +        getCreateDeploymentGroupMethod;
    +    if ((getCreateDeploymentGroupMethod = ConfigGrpc.getCreateDeploymentGroupMethod) == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getCreateDeploymentGroupMethod = ConfigGrpc.getCreateDeploymentGroupMethod) == null) {
    +          ConfigGrpc.getCreateDeploymentGroupMethod =
    +              getCreateDeploymentGroupMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "CreateDeploymentGroup"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.CreateDeploymentGroupRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.longrunning.Operation.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("CreateDeploymentGroup"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getCreateDeploymentGroupMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.UpdateDeploymentGroupRequest, com.google.longrunning.Operation>
    +      getUpdateDeploymentGroupMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "UpdateDeploymentGroup",
    +      requestType = com.google.cloud.config.v1.UpdateDeploymentGroupRequest.class,
    +      responseType = com.google.longrunning.Operation.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.UpdateDeploymentGroupRequest, com.google.longrunning.Operation>
    +      getUpdateDeploymentGroupMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.UpdateDeploymentGroupRequest,
    +            com.google.longrunning.Operation>
    +        getUpdateDeploymentGroupMethod;
    +    if ((getUpdateDeploymentGroupMethod = ConfigGrpc.getUpdateDeploymentGroupMethod) == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getUpdateDeploymentGroupMethod = ConfigGrpc.getUpdateDeploymentGroupMethod) == null) {
    +          ConfigGrpc.getUpdateDeploymentGroupMethod =
    +              getUpdateDeploymentGroupMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "UpdateDeploymentGroup"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.UpdateDeploymentGroupRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.longrunning.Operation.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("UpdateDeploymentGroup"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getUpdateDeploymentGroupMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.DeleteDeploymentGroupRequest, com.google.longrunning.Operation>
    +      getDeleteDeploymentGroupMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "DeleteDeploymentGroup",
    +      requestType = com.google.cloud.config.v1.DeleteDeploymentGroupRequest.class,
    +      responseType = com.google.longrunning.Operation.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.DeleteDeploymentGroupRequest, com.google.longrunning.Operation>
    +      getDeleteDeploymentGroupMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.DeleteDeploymentGroupRequest,
    +            com.google.longrunning.Operation>
    +        getDeleteDeploymentGroupMethod;
    +    if ((getDeleteDeploymentGroupMethod = ConfigGrpc.getDeleteDeploymentGroupMethod) == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getDeleteDeploymentGroupMethod = ConfigGrpc.getDeleteDeploymentGroupMethod) == null) {
    +          ConfigGrpc.getDeleteDeploymentGroupMethod =
    +              getDeleteDeploymentGroupMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "DeleteDeploymentGroup"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.DeleteDeploymentGroupRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.longrunning.Operation.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("DeleteDeploymentGroup"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getDeleteDeploymentGroupMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.ListDeploymentGroupsRequest,
    +          com.google.cloud.config.v1.ListDeploymentGroupsResponse>
    +      getListDeploymentGroupsMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "ListDeploymentGroups",
    +      requestType = com.google.cloud.config.v1.ListDeploymentGroupsRequest.class,
    +      responseType = com.google.cloud.config.v1.ListDeploymentGroupsResponse.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.ListDeploymentGroupsRequest,
    +          com.google.cloud.config.v1.ListDeploymentGroupsResponse>
    +      getListDeploymentGroupsMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.ListDeploymentGroupsRequest,
    +            com.google.cloud.config.v1.ListDeploymentGroupsResponse>
    +        getListDeploymentGroupsMethod;
    +    if ((getListDeploymentGroupsMethod = ConfigGrpc.getListDeploymentGroupsMethod) == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getListDeploymentGroupsMethod = ConfigGrpc.getListDeploymentGroupsMethod) == null) {
    +          ConfigGrpc.getListDeploymentGroupsMethod =
    +              getListDeploymentGroupsMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "ListDeploymentGroups"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.ListDeploymentGroupsRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.ListDeploymentGroupsResponse
    +                                  .getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("ListDeploymentGroups"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getListDeploymentGroupsMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.ProvisionDeploymentGroupRequest,
    +          com.google.longrunning.Operation>
    +      getProvisionDeploymentGroupMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "ProvisionDeploymentGroup",
    +      requestType = com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.class,
    +      responseType = com.google.longrunning.Operation.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.ProvisionDeploymentGroupRequest,
    +          com.google.longrunning.Operation>
    +      getProvisionDeploymentGroupMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.ProvisionDeploymentGroupRequest,
    +            com.google.longrunning.Operation>
    +        getProvisionDeploymentGroupMethod;
    +    if ((getProvisionDeploymentGroupMethod = ConfigGrpc.getProvisionDeploymentGroupMethod)
    +        == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getProvisionDeploymentGroupMethod = ConfigGrpc.getProvisionDeploymentGroupMethod)
    +            == null) {
    +          ConfigGrpc.getProvisionDeploymentGroupMethod =
    +              getProvisionDeploymentGroupMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "ProvisionDeploymentGroup"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.ProvisionDeploymentGroupRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.longrunning.Operation.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("ProvisionDeploymentGroup"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getProvisionDeploymentGroupMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest,
    +          com.google.longrunning.Operation>
    +      getDeprovisionDeploymentGroupMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "DeprovisionDeploymentGroup",
    +      requestType = com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.class,
    +      responseType = com.google.longrunning.Operation.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest,
    +          com.google.longrunning.Operation>
    +      getDeprovisionDeploymentGroupMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest,
    +            com.google.longrunning.Operation>
    +        getDeprovisionDeploymentGroupMethod;
    +    if ((getDeprovisionDeploymentGroupMethod = ConfigGrpc.getDeprovisionDeploymentGroupMethod)
    +        == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getDeprovisionDeploymentGroupMethod = ConfigGrpc.getDeprovisionDeploymentGroupMethod)
    +            == null) {
    +          ConfigGrpc.getDeprovisionDeploymentGroupMethod =
    +              getDeprovisionDeploymentGroupMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "DeprovisionDeploymentGroup"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.longrunning.Operation.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("DeprovisionDeploymentGroup"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getDeprovisionDeploymentGroupMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest,
    +          com.google.cloud.config.v1.DeploymentGroupRevision>
    +      getGetDeploymentGroupRevisionMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "GetDeploymentGroupRevision",
    +      requestType = com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.class,
    +      responseType = com.google.cloud.config.v1.DeploymentGroupRevision.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest,
    +          com.google.cloud.config.v1.DeploymentGroupRevision>
    +      getGetDeploymentGroupRevisionMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest,
    +            com.google.cloud.config.v1.DeploymentGroupRevision>
    +        getGetDeploymentGroupRevisionMethod;
    +    if ((getGetDeploymentGroupRevisionMethod = ConfigGrpc.getGetDeploymentGroupRevisionMethod)
    +        == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getGetDeploymentGroupRevisionMethod = ConfigGrpc.getGetDeploymentGroupRevisionMethod)
    +            == null) {
    +          ConfigGrpc.getGetDeploymentGroupRevisionMethod =
    +              getGetDeploymentGroupRevisionMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "GetDeploymentGroupRevision"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.DeploymentGroupRevision
    +                                  .getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("GetDeploymentGroupRevision"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getGetDeploymentGroupRevisionMethod;
    +  }
    +
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest,
    +          com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse>
    +      getListDeploymentGroupRevisionsMethod;
    +
    +  @io.grpc.stub.annotations.RpcMethod(
    +      fullMethodName = SERVICE_NAME + '/' + "ListDeploymentGroupRevisions",
    +      requestType = com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.class,
    +      responseType = com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.class,
    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
    +  public static io.grpc.MethodDescriptor<
    +          com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest,
    +          com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse>
    +      getListDeploymentGroupRevisionsMethod() {
    +    io.grpc.MethodDescriptor<
    +            com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest,
    +            com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse>
    +        getListDeploymentGroupRevisionsMethod;
    +    if ((getListDeploymentGroupRevisionsMethod = ConfigGrpc.getListDeploymentGroupRevisionsMethod)
    +        == null) {
    +      synchronized (ConfigGrpc.class) {
    +        if ((getListDeploymentGroupRevisionsMethod =
    +                ConfigGrpc.getListDeploymentGroupRevisionsMethod)
    +            == null) {
    +          ConfigGrpc.getListDeploymentGroupRevisionsMethod =
    +              getListDeploymentGroupRevisionsMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(SERVICE_NAME, "ListDeploymentGroupRevisions"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse
    +                                  .getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new ConfigMethodDescriptorSupplier("ListDeploymentGroupRevisions"))
    +                      .build();
    +        }
    +      }
    +    }
    +    return getListDeploymentGroupRevisionsMethod;
    +  }
    +
       /** Creates a new async stub that supports all call types for the service */
       public static ConfigStub newStub(io.grpc.Channel channel) {
         io.grpc.stub.AbstractStub.StubFactory factory =
    @@ -1738,65 +2165,215 @@ default void getResourceChange(
             com.google.cloud.config.v1.GetResourceChangeRequest request,
             io.grpc.stub.StreamObserver responseObserver) {
           io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
    -          getGetResourceChangeMethod(), responseObserver);
    +          getGetResourceChangeMethod(), responseObserver);
    +    }
    +
    +    /**
    +     *
    +     *
    +     * 
    +     * List ResourceDrifts for a given preview.
    +     * 
    + */ + default void listResourceDrifts( + com.google.cloud.config.v1.ListResourceDriftsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListResourceDriftsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Get a ResourceDrift for a given preview.
    +     * 
    + */ + default void getResourceDrift( + com.google.cloud.config.v1.GetResourceDriftRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetResourceDriftMethod(), responseObserver); + } + + /** + * + * + *
    +     * Get the AutoMigrationConfig for a given project and location.
    +     * 
    + */ + default void getAutoMigrationConfig( + com.google.cloud.config.v1.GetAutoMigrationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAutoMigrationConfigMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates the AutoMigrationConfig for a given project and location.
    +     * 
    + */ + default void updateAutoMigrationConfig( + com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAutoMigrationConfigMethod(), responseObserver); + } + + /** + * + * + *
    +     * Get a DeploymentGroup for a given project and location.
    +     * 
    + */ + default void getDeploymentGroup( + com.google.cloud.config.v1.GetDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * The newly created DeploymentGroup will be in the `CREATING` state
    +     * and can be retrieved via Get and List calls.
    +     * 
    + */ + default void createDeploymentGroup( + com.google.cloud.config.v1.CreateDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + default void updateDeploymentGroup( + com.google.cloud.config.v1.UpdateDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + default void deleteDeploymentGroup( + com.google.cloud.config.v1.DeleteDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * List DeploymentGroups for a given project and location.
    +     * 
    + */ + default void listDeploymentGroups( + com.google.cloud.config.v1.ListDeploymentGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentGroupsMethod(), responseObserver); } /** * * *
    -     * List ResourceDrifts for a given preview.
    +     * Provisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
          * 
    */ - default void listResourceDrifts( - com.google.cloud.config.v1.ListResourceDriftsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void provisionDeploymentGroup( + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListResourceDriftsMethod(), responseObserver); + getProvisionDeploymentGroupMethod(), responseObserver); } /** * * *
    -     * Get a ResourceDrift for a given preview.
    +     * Deprovisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
          * 
    */ - default void getResourceDrift( - com.google.cloud.config.v1.GetResourceDriftRequest request, - io.grpc.stub.StreamObserver responseObserver) { + default void deprovisionDeploymentGroup( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetResourceDriftMethod(), responseObserver); + getDeprovisionDeploymentGroupMethod(), responseObserver); } /** * * *
    -     * Get the AutoMigrationConfig for a given project and location.
    +     * Gets details about a
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].
          * 
    */ - default void getAutoMigrationConfig( - com.google.cloud.config.v1.GetAutoMigrationConfigRequest request, - io.grpc.stub.StreamObserver + default void getDeploymentGroupRevision( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAutoMigrationConfigMethod(), responseObserver); + getGetDeploymentGroupRevisionMethod(), responseObserver); } /** * * *
    -     * Updates the AutoMigrationConfig for a given project and location.
    +     * Lists
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s
    +     * in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].
          * 
    */ - default void updateAutoMigrationConfig( - com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { + default void listDeploymentGroupRevisions( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAutoMigrationConfigMethod(), responseObserver); + getListDeploymentGroupRevisionsMethod(), responseObserver); } } @@ -2310,6 +2887,174 @@ public void updateAutoMigrationConfig( request, responseObserver); } + + /** + * + * + *
    +     * Get a DeploymentGroup for a given project and location.
    +     * 
    + */ + public void getDeploymentGroup( + com.google.cloud.config.v1.GetDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * The newly created DeploymentGroup will be in the `CREATING` state
    +     * and can be retrieved via Get and List calls.
    +     * 
    + */ + public void createDeploymentGroup( + com.google.cloud.config.v1.CreateDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + public void updateDeploymentGroup( + com.google.cloud.config.v1.UpdateDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + public void deleteDeploymentGroup( + com.google.cloud.config.v1.DeleteDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * List DeploymentGroups for a given project and location.
    +     * 
    + */ + public void listDeploymentGroups( + com.google.cloud.config.v1.ListDeploymentGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Provisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
    +     * 
    + */ + public void provisionDeploymentGroup( + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProvisionDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deprovisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
    +     * 
    + */ + public void deprovisionDeploymentGroup( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeprovisionDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details about a
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].
    +     * 
    + */ + public void getDeploymentGroupRevision( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentGroupRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s
    +     * in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].
    +     * 
    + */ + public void listDeploymentGroupRevisions( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentGroupRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2619,109 +3364,257 @@ public com.google.cloud.config.v1.ExportPreviewResultResponse exportPreviewResul * given project and location. *
    */ - public com.google.cloud.config.v1.ListTerraformVersionsResponse listTerraformVersions( - com.google.cloud.config.v1.ListTerraformVersionsRequest request) + public com.google.cloud.config.v1.ListTerraformVersionsResponse listTerraformVersions( + com.google.cloud.config.v1.ListTerraformVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListTerraformVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details about a
    +     * [TerraformVersion][google.cloud.config.v1.TerraformVersion].
    +     * 
    + */ + public com.google.cloud.config.v1.TerraformVersion getTerraformVersion( + com.google.cloud.config.v1.GetTerraformVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetTerraformVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists ResourceChanges for a given preview.
    +     * 
    + */ + public com.google.cloud.config.v1.ListResourceChangesResponse listResourceChanges( + com.google.cloud.config.v1.ListResourceChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListResourceChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Get a ResourceChange for a given preview.
    +     * 
    + */ + public com.google.cloud.config.v1.ResourceChange getResourceChange( + com.google.cloud.config.v1.GetResourceChangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetResourceChangeMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * List ResourceDrifts for a given preview.
    +     * 
    + */ + public com.google.cloud.config.v1.ListResourceDriftsResponse listResourceDrifts( + com.google.cloud.config.v1.ListResourceDriftsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListResourceDriftsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Get a ResourceDrift for a given preview.
    +     * 
    + */ + public com.google.cloud.config.v1.ResourceDrift getResourceDrift( + com.google.cloud.config.v1.GetResourceDriftRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetResourceDriftMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Get the AutoMigrationConfig for a given project and location.
    +     * 
    + */ + public com.google.cloud.config.v1.AutoMigrationConfig getAutoMigrationConfig( + com.google.cloud.config.v1.GetAutoMigrationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAutoMigrationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates the AutoMigrationConfig for a given project and location.
    +     * 
    + */ + public com.google.longrunning.Operation updateAutoMigrationConfig( + com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAutoMigrationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Get a DeploymentGroup for a given project and location.
    +     * 
    + */ + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup( + com.google.cloud.config.v1.GetDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * The newly created DeploymentGroup will be in the `CREATING` state
    +     * and can be retrieved via Get and List calls.
    +     * 
    + */ + public com.google.longrunning.Operation createDeploymentGroup( + com.google.cloud.config.v1.CreateDeploymentGroupRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListTerraformVersionsMethod(), getCallOptions(), request); + getChannel(), getCreateDeploymentGroupMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details about a
    -     * [TerraformVersion][google.cloud.config.v1.TerraformVersion].
    +     * Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
          * 
    */ - public com.google.cloud.config.v1.TerraformVersion getTerraformVersion( - com.google.cloud.config.v1.GetTerraformVersionRequest request) + public com.google.longrunning.Operation updateDeploymentGroup( + com.google.cloud.config.v1.UpdateDeploymentGroupRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetTerraformVersionMethod(), getCallOptions(), request); + getChannel(), getUpdateDeploymentGroupMethod(), getCallOptions(), request); } /** * * *
    -     * Lists ResourceChanges for a given preview.
    +     * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
          * 
    */ - public com.google.cloud.config.v1.ListResourceChangesResponse listResourceChanges( - com.google.cloud.config.v1.ListResourceChangesRequest request) + public com.google.longrunning.Operation deleteDeploymentGroup( + com.google.cloud.config.v1.DeleteDeploymentGroupRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListResourceChangesMethod(), getCallOptions(), request); + getChannel(), getDeleteDeploymentGroupMethod(), getCallOptions(), request); } /** * * *
    -     * Get a ResourceChange for a given preview.
    +     * List DeploymentGroups for a given project and location.
          * 
    */ - public com.google.cloud.config.v1.ResourceChange getResourceChange( - com.google.cloud.config.v1.GetResourceChangeRequest request) + public com.google.cloud.config.v1.ListDeploymentGroupsResponse listDeploymentGroups( + com.google.cloud.config.v1.ListDeploymentGroupsRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetResourceChangeMethod(), getCallOptions(), request); + getChannel(), getListDeploymentGroupsMethod(), getCallOptions(), request); } /** * * *
    -     * List ResourceDrifts for a given preview.
    +     * Provisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
          * 
    */ - public com.google.cloud.config.v1.ListResourceDriftsResponse listResourceDrifts( - com.google.cloud.config.v1.ListResourceDriftsRequest request) + public com.google.longrunning.Operation provisionDeploymentGroup( + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListResourceDriftsMethod(), getCallOptions(), request); + getChannel(), getProvisionDeploymentGroupMethod(), getCallOptions(), request); } /** * * *
    -     * Get a ResourceDrift for a given preview.
    +     * Deprovisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
          * 
    */ - public com.google.cloud.config.v1.ResourceDrift getResourceDrift( - com.google.cloud.config.v1.GetResourceDriftRequest request) throws io.grpc.StatusException { + public com.google.longrunning.Operation deprovisionDeploymentGroup( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetResourceDriftMethod(), getCallOptions(), request); + getChannel(), getDeprovisionDeploymentGroupMethod(), getCallOptions(), request); } /** * * *
    -     * Get the AutoMigrationConfig for a given project and location.
    +     * Gets details about a
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].
          * 
    */ - public com.google.cloud.config.v1.AutoMigrationConfig getAutoMigrationConfig( - com.google.cloud.config.v1.GetAutoMigrationConfigRequest request) + public com.google.cloud.config.v1.DeploymentGroupRevision getDeploymentGroupRevision( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetAutoMigrationConfigMethod(), getCallOptions(), request); + getChannel(), getGetDeploymentGroupRevisionMethod(), getCallOptions(), request); } /** * * *
    -     * Updates the AutoMigrationConfig for a given project and location.
    +     * Lists
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s
    +     * in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].
          * 
    */ - public com.google.longrunning.Operation updateAutoMigrationConfig( - com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest request) - throws io.grpc.StatusException { + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse + listDeploymentGroupRevisions( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateAutoMigrationConfigMethod(), getCallOptions(), request); + getChannel(), getListDeploymentGroupRevisionsMethod(), getCallOptions(), request); } } @@ -3126,6 +4019,145 @@ public com.google.longrunning.Operation updateAutoMigrationConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAutoMigrationConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Get a DeploymentGroup for a given project and location.
    +     * 
    + */ + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup( + com.google.cloud.config.v1.GetDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * The newly created DeploymentGroup will be in the `CREATING` state
    +     * and can be retrieved via Get and List calls.
    +     * 
    + */ + public com.google.longrunning.Operation createDeploymentGroup( + com.google.cloud.config.v1.CreateDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + public com.google.longrunning.Operation updateDeploymentGroup( + com.google.cloud.config.v1.UpdateDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + public com.google.longrunning.Operation deleteDeploymentGroup( + com.google.cloud.config.v1.DeleteDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * List DeploymentGroups for a given project and location.
    +     * 
    + */ + public com.google.cloud.config.v1.ListDeploymentGroupsResponse listDeploymentGroups( + com.google.cloud.config.v1.ListDeploymentGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Provisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
    +     * 
    + */ + public com.google.longrunning.Operation provisionDeploymentGroup( + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProvisionDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deprovisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
    +     * 
    + */ + public com.google.longrunning.Operation deprovisionDeploymentGroup( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeprovisionDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details about a
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].
    +     * 
    + */ + public com.google.cloud.config.v1.DeploymentGroupRevision getDeploymentGroupRevision( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentGroupRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s
    +     * in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].
    +     * 
    + */ + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse + listDeploymentGroupRevisions( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentGroupRevisionsMethod(), getCallOptions(), request); + } } /** @@ -3543,6 +4575,152 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAutoMigrationConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Get a DeploymentGroup for a given project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.DeploymentGroup> + getDeploymentGroup(com.google.cloud.config.v1.GetDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * The newly created DeploymentGroup will be in the `CREATING` state
    +     * and can be retrieved via Get and List calls.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createDeploymentGroup(com.google.cloud.config.v1.CreateDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateDeploymentGroup(com.google.cloud.config.v1.UpdateDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteDeploymentGroup(com.google.cloud.config.v1.DeleteDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * List DeploymentGroups for a given project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.ListDeploymentGroupsResponse> + listDeploymentGroups(com.google.cloud.config.v1.ListDeploymentGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Provisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + provisionDeploymentGroup( + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProvisionDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deprovisions a deployment group.
    +     * NOTE: As a first step of this operation, Infra Manager will
    +     * automatically delete any Deployments that were part of the
    +     * *last successful*
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]
    +     * but are *no longer* included in the *current*
    +     * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g.,
    +     * following an `UpdateDeploymentGroup` call), along with their actuated
    +     * resources.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deprovisionDeploymentGroup( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeprovisionDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets details about a
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.DeploymentGroupRevision> + getDeploymentGroupRevision( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentGroupRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists
    +     * [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s
    +     * in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse> + listDeploymentGroupRevisions( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentGroupRevisionsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_DEPLOYMENTS = 0; @@ -3574,6 +4752,15 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_GET_RESOURCE_DRIFT = 26; private static final int METHODID_GET_AUTO_MIGRATION_CONFIG = 27; private static final int METHODID_UPDATE_AUTO_MIGRATION_CONFIG = 28; + private static final int METHODID_GET_DEPLOYMENT_GROUP = 29; + private static final int METHODID_CREATE_DEPLOYMENT_GROUP = 30; + private static final int METHODID_UPDATE_DEPLOYMENT_GROUP = 31; + private static final int METHODID_DELETE_DEPLOYMENT_GROUP = 32; + private static final int METHODID_LIST_DEPLOYMENT_GROUPS = 33; + private static final int METHODID_PROVISION_DEPLOYMENT_GROUP = 34; + private static final int METHODID_DEPROVISION_DEPLOYMENT_GROUP = 35; + private static final int METHODID_GET_DEPLOYMENT_GROUP_REVISION = 36; + private static final int METHODID_LIST_DEPLOYMENT_GROUP_REVISIONS = 37; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3751,6 +4938,56 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_DEPLOYMENT_GROUP: + serviceImpl.getDeploymentGroup( + (com.google.cloud.config.v1.GetDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_DEPLOYMENT_GROUP: + serviceImpl.createDeploymentGroup( + (com.google.cloud.config.v1.CreateDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DEPLOYMENT_GROUP: + serviceImpl.updateDeploymentGroup( + (com.google.cloud.config.v1.UpdateDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DEPLOYMENT_GROUP: + serviceImpl.deleteDeploymentGroup( + (com.google.cloud.config.v1.DeleteDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEPLOYMENT_GROUPS: + serviceImpl.listDeploymentGroups( + (com.google.cloud.config.v1.ListDeploymentGroupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_PROVISION_DEPLOYMENT_GROUP: + serviceImpl.provisionDeploymentGroup( + (com.google.cloud.config.v1.ProvisionDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEPROVISION_DEPLOYMENT_GROUP: + serviceImpl.deprovisionDeploymentGroup( + (com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DEPLOYMENT_GROUP_REVISION: + serviceImpl.getDeploymentGroupRevision( + (com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DEPLOYMENT_GROUP_REVISIONS: + serviceImpl.listDeploymentGroupRevisions( + (com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -3958,6 +5195,66 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest, com.google.longrunning.Operation>( service, METHODID_UPDATE_AUTO_MIGRATION_CONFIG))) + .addMethod( + getGetDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.GetDeploymentGroupRequest, + com.google.cloud.config.v1.DeploymentGroup>( + service, METHODID_GET_DEPLOYMENT_GROUP))) + .addMethod( + getCreateDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.CreateDeploymentGroupRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_DEPLOYMENT_GROUP))) + .addMethod( + getUpdateDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.UpdateDeploymentGroupRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_DEPLOYMENT_GROUP))) + .addMethod( + getDeleteDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.DeleteDeploymentGroupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_DEPLOYMENT_GROUP))) + .addMethod( + getListDeploymentGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.ListDeploymentGroupsRequest, + com.google.cloud.config.v1.ListDeploymentGroupsResponse>( + service, METHODID_LIST_DEPLOYMENT_GROUPS))) + .addMethod( + getProvisionDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_PROVISION_DEPLOYMENT_GROUP))) + .addMethod( + getDeprovisionDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_DEPROVISION_DEPLOYMENT_GROUP))) + .addMethod( + getGetDeploymentGroupRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest, + com.google.cloud.config.v1.DeploymentGroupRevision>( + service, METHODID_GET_DEPLOYMENT_GROUP_REVISION))) + .addMethod( + getListDeploymentGroupRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest, + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse>( + service, METHODID_LIST_DEPLOYMENT_GROUP_REVISIONS))) .build(); } @@ -4036,6 +5333,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetResourceDriftMethod()) .addMethod(getGetAutoMigrationConfigMethod()) .addMethod(getUpdateAutoMigrationConfigMethod()) + .addMethod(getGetDeploymentGroupMethod()) + .addMethod(getCreateDeploymentGroupMethod()) + .addMethod(getUpdateDeploymentGroupMethod()) + .addMethod(getDeleteDeploymentGroupMethod()) + .addMethod(getListDeploymentGroupsMethod()) + .addMethod(getProvisionDeploymentGroupMethod()) + .addMethod(getDeprovisionDeploymentGroupMethod()) + .addMethod(getGetDeploymentGroupRevisionMethod()) + .addMethod(getListDeploymentGroupRevisionsMethod()) .build(); } } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java index 904658864c73..aa86263854cb 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java @@ -60,10 +60,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_config_v1_TerraformBlueprint_InputValuesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_config_v1_TerraformBlueprint_InputValuesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_TerraformBlueprint_ExternalValuesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_TerraformBlueprint_ExternalValuesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_config_v1_TerraformVariable_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_config_v1_TerraformVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ExternalValueSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ExternalValueSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_config_v1_ApplyResults_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +116,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_config_v1_CreateDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_config_v1_CreateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_config_v1_UpdateDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -328,6 +352,78 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_config_v1_UpdateAutoMigrationConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_config_v1_UpdateAutoMigrationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentGroup_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentGroup_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentUnit_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentUnit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_DeploymentSpecsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_DeploymentSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentOperationSummary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentOperationSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentUnitProgress_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentUnitProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_DeploymentGroupRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_DeploymentGroupRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -423,24 +519,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_service_accountB\034\n" + "\032_import_existing_resourcesB\016\n" + "\014_worker_poolB\030\n" - + "\026_tf_version_constraint\"\244\002\n" + + "\026_tf_version_constraint\"\346\003\n" + "\022TerraformBlueprint\022\024\n\n" + "gcs_source\030\001 \001(\tH\000\0227\n\n" + "git_source\030\002 \001(\0132!.google.cloud.config.v1.GitSourceH\000\022V\n" + "\014input_values\030\004 \003(" - + "\0132;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntryB\003\340A\001\032]\n" + + "\0132;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntryB\003\340A\001\022\\\n" + + "\017external_values\030\005 \003(\0132>.google.cloud.config.v1.Te" + + "rraformBlueprint.ExternalValuesEntryB\003\340A\001\032]\n" + "\020InputValuesEntry\022\013\n" + "\003key\030\001 \001(\t\0228\n" - + "\005value\030\002 \001(\0132).go" - + "ogle.cloud.config.v1.TerraformVariable:\0028\001B\010\n" + + "\005value\030\002" + + " \001(\0132).google.cloud.config.v1.TerraformVariable:\0028\001\032b\n" + + "\023ExternalValuesEntry\022\013\n" + + "\003key\030\001 \001(\t\022:\n" + + "\005value\030\002" + + " \001(\0132+.google.cloud.config.v1.ExternalValueSource:\0028\001B\010\n" + "\006source\"E\n" + "\021TerraformVariable\0220\n" - + "\013input_value\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\001\"\317\001\n" + + "\013input_value\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\001\"f\n" + + "\023ExternalValueSource\022E\n" + + "\021deployment_source\030\001" + + " \001(\0132(.google.cloud.config.v1.DeploymentSourceH\000B\010\n" + + "\006source\"j\n" + + "\020DeploymentSource\022<\n\n" + + "deployment\030\001 \001(\tB(\340A\002\372A\"\n" + + " config.googleapis.com/Deployment\022\030\n" + + "\013output_name\030\002 \001(\tB\003\340A\002\"\317\001\n" + "\014ApplyResults\022\017\n" + "\007content\030\001 \001(\t\022\021\n" + "\tartifacts\030\002 \001(\t\022B\n" - + "\007outputs\030\003 \003(\01321.goog" - + "le.cloud.config.v1.ApplyResults.OutputsEntry\032W\n" + + "\007outputs\030\003 \003(\0132" + + "1.google.cloud.config.v1.ApplyResults.OutputsEntry\032W\n" + "\014OutputsEntry\022\013\n" + "\003key\030\001 \001(\t\0226\n" + "\005value\030\002 \001(\0132\'.google.cloud.config.v1.TerraformOutput:\0028\001\"K\n" @@ -479,9 +589,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\032\n\r" + "deployment_id\030\002 \001(\tB\003\340A\002\022;\n\n" - + "deployment\030\003" - + " \001(\0132\".google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\"\245\001\n" + + "deployment\030\003 \001(\0132\"." + + "google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"\344\001\n" + + "\034CreateDeploymentGroupRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022 \n" + + "\023deployment_group_id\030\002 \001(\tB\003\340A\002\022F\n" + + "\020deployment_group\030\003" + + " \001(\0132\'.google.cloud.config.v1.DeploymentGroupB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\275\001\n" + + "\034UpdateDeploymentGroupRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022F\n" + + "\020deployment_group\030\002" + + " \001(\0132\'.google.cloud.config.v1.DeploymentGroupB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\300\003\n" + + "\034DeleteDeploymentGroupRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%config.googleapis.com/DeploymentGroup\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + + "\005force\030\003 \001(\010B\003\340A\001\022x\n" + + "\033deployment_reference_policy\030\004 \001(\0162N.google." + + "cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicyB\003\340A\001\"\263\001\n" + + "\031DeploymentReferencePolicy\022+\n" + + "\'DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED\020\000\022 \n" + + "\034FAIL_IF_ANY_REFERENCES_EXIST\020\001\022%\n" + + "!FAIL_IF_METADATA_REFERENCES_EXIST\020\002\022 \n" + + "\034IGNORE_DEPLOYMENT_REFERENCES\020\003\"\245\001\n" + "\027UpdateDeploymentRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022;\n\n" @@ -498,12 +632,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014DeletePolicy\022\035\n" + "\031DELETE_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006DELETE\020\001\022\013\n" - + "\007ABANDON\020\002\"\301\003\n" + + "\007ABANDON\020\002\"\270\004\n" + "\021OperationMetadata\022W\n" + "\023deployment_metadata\030\010" + " \001(\01323.google.cloud.config.v1.DeploymentOperationMetadataB\003\340A\003H\000\022Q\n" + "\020preview_metadata\030\t" - + " \001(\01320.google.cloud.config.v1.PreviewOperationMetadataB\003\340A\003H\000\0224\n" + + " \001(\01320.google.cloud.config.v1.PreviewOperationMetadataB\003\340A\003H\000\022u\n" + + "#provision_deployment_group_metadata\030\n" + + " \001(\0132A.go" + + "ogle.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataB\003\340A\003H\000\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006target\030\003 \001(\tB\003\340A\003\022\021\n" @@ -518,13 +655,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" - + "\006action\030\004 \001(\0162" - + "\'.google.cloud.config.v1.Revision.ActionB\003\340A\003\022:\n" + + "\006action\030\004 \001(\0162\'" + + ".google.cloud.config.v1.Revision.ActionB\003\340A\003\022:\n" + "\005state\030\005" + " \001(\0162&.google.cloud.config.v1.Revision.StateB\003\340A\003\022@\n\r" + "apply_results\030\007" + " \001(\0132$.google.cloud.config.v1.ApplyResultsB\003\340A\003\022\031\n" - + "\014state_detail\030\010 \001(\tB\003\340A\003\022C\n\n" + + "\014state_detail\030\010 \001(\tB\003\340A\003\022C\n" + + "\n" + "error_code\030\t" + " \001(\0162*.google.cloud.config.v1.Revision.ErrorCodeB\003\340A\003\022\022\n" + "\005build\030\n" @@ -563,8 +701,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026APPLY_BUILD_RUN_FAILED\020\005\022\033\n" + "\027QUOTA_VALIDATION_FAILED\020\007\022\'\n" + "#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\020\010:z\352Aw\n" - + "\036config.googleapis.com/Revision\022Uprojects/{project}/locations/{location}/deplo" - + "yments/{deployment}/revisions/{revision}B\013\n" + + "\036config.googleapis.com/Revision\022Uprojects/{project}/locations/{location}/deploy" + + "ments/{deployment}/revisions/{revision}B\013\n" + "\tblueprint\"\211\001\n" + "\016TerraformError\022\030\n" + "\020resource_address\030\001 \001(\t\022\032\n" @@ -579,8 +717,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_directoryB\006\n" + "\004_ref\"\237\004\n" + "\033DeploymentOperationMetadata\022P\n" - + "\004step\030\001 \001(\0162" - + "B.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep\022;\n\r" + + "\004step\030\001 \001(\0162B" + + ".google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep\022;\n\r" + "apply_results\030\002 \001(\0132$.google.cloud.config.v1.ApplyResults\022\022\n" + "\005build\030\003 \001(\tB\003\340A\003\022\021\n" + "\004logs\030\004 \001(\tB\003\340A\003\"\311\002\n" @@ -601,14 +739,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030RUNNING_QUOTA_VALIDATION\020\014\"\330\005\n" + "\010Resource\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022J\n" - + "\016terraform_info\030\002 \001(\0132-.go" - + "ogle.cloud.config.v1.ResourceTerraformInfoB\003\340A\003\022H\n\n" - + "cai_assets\030\003 \003(\0132/.google.clo" - + "ud.config.v1.Resource.CaiAssetsEntryB\003\340A\003\022<\n" + + "\016terraform_info\030\002 \001(\0132-.goo" + + "gle.cloud.config.v1.ResourceTerraformInfoB\003\340A\003\022H\n\n" + + "cai_assets\030\003 \003(\0132/.google.clou" + + "d.config.v1.Resource.CaiAssetsEntryB\003\340A\003\022<\n" + "\006intent\030\004" + " \001(\0162\'.google.cloud.config.v1.Resource.IntentB\003\340A\003\022:\n" - + "\005state\030\005 \001(\0162&" - + ".google.cloud.config.v1.Resource.StateB\003\340A\003\032Y\n" + + "\005state\030\005 \001(\0162&." + + "google.cloud.config.v1.Resource.StateB\003\340A\003\032Y\n" + "\016CaiAssetsEntry\022\013\n" + "\003key\030\001 \001(\t\0226\n" + "\005value\030\002 \001(\0132\'.google.cloud.config.v1.ResourceCAIInfo:\0028\001\"a\n" @@ -625,8 +763,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013IN_PROGRESS\020\002\022\016\n\n" + "RECONCILED\020\003\022\n\n" + "\006FAILED\020\004:\220\001\352A\214\001\n" - + "\036config.googleapis.com/Resource\022jprojects/{project}/locations/{locati" - + "on}/deployments/{deployment}/revisions/{revision}/resources/{resource}\"B\n" + + "\036config.googleapis.com/Resource\022jprojects/{project}/locations/{locatio" + + "n}/deployments/{deployment}/revisions/{revision}/resources/{resource}\"B\n" + "\025ResourceTerraformInfo\022\017\n" + "\007address\030\001 \001(\t\022\014\n" + "\004type\030\002 \001(\t\022\n\n" @@ -687,14 +825,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.config.v1.TerraformBlueprintH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n" - + "\006labels\030\003 \003" - + "(\0132+.google.cloud.config.v1.Preview.LabelsEntryB\003\340A\001\0229\n" + + "\006labels\030\003 \003(" + + "\0132+.google.cloud.config.v1.Preview.LabelsEntryB\003\340A\001\0229\n" + "\005state\030\004" + " \001(\0162%.google.cloud.config.v1.Preview.StateB\003\340A\003\022<\n\n" + "deployment\030\005 \001(\tB(\340A\001\372A\"\n" + " config.googleapis.com/Deployment\022F\n" - + "\014preview_mode\030\017 \001(\0162+.go" - + "ogle.cloud.config.v1.Preview.PreviewModeB\003\340A\001\022B\n" + + "\014preview_mode\030\017 \001(\0162+.goo" + + "gle.cloud.config.v1.Preview.PreviewModeB\003\340A\001\022B\n" + "\017service_account\030\007 \001(\tB)\340A\002\372A#\n" + "!iam.googleapis.com/ServiceAccount\022&\n" + "\024artifacts_gcs_bucket\030\010 \001(\tB\003\340A\001H\001\210\001\001\022F\n" @@ -707,13 +845,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\ttf_errors\030\r" + " \003(\0132&.google.cloud.config.v1.TerraformErrorB\003\340A\003\022\027\n\n" + "error_logs\030\016 \001(\tB\003\340A\003\022H\n" - + "\021preview_artifacts\030\020 \001(\0132(.g" - + "oogle.cloud.config.v1.PreviewArtifactsB\003\340A\003\022\021\n" + + "\021preview_artifacts\030\020 \001(\0132(.go" + + "ogle.cloud.config.v1.PreviewArtifactsB\003\340A\003\022\021\n" + "\004logs\030\021 \001(\tB\003\340A\003\022\027\n\n" + "tf_version\030\022 \001(\tB\003\340A\003\022\'\n" + "\025tf_version_constraint\030\023 \001(\tB\003\340A\001H\003\210\001\001\022J\n" - + "\013annotations\030\024 \003(\01320.google.c" - + "loud.config.v1.Preview.AnnotationsEntryB\003\340A\001\022D\n" + + "\013annotations\030\024 \003(\01320.google.cl" + + "oud.config.v1.Preview.AnnotationsEntryB\003\340A\001\022D\n" + "\017provider_config\030\025" + " \001(\0132&.google.cloud.config.v1.ProviderConfigB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -744,8 +882,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030PREVIEW_BUILD_API_FAILED\020\005\022\034\n" + "\030PREVIEW_BUILD_RUN_FAILED\020\006\022\'\n" + "#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\020\007:q\352An\n" - + "\035config.googleapis.com/Preview\022:projects/{project}/locations/{loc" - + "ation}/previews/{preview}*\010previews2\007previewB\013\n" + + "\035config.googleapis.com/Preview\022:projects/{project}/locations/{loca" + + "tion}/previews/{preview}*\010previews2\007previewB\013\n" + "\tblueprintB\027\n" + "\025_artifacts_gcs_bucketB\016\n" + "\014_worker_poolB\030\n" @@ -777,8 +915,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\027\n\n" + "preview_id\030\002 \001(\tB\003\340A\001\0225\n" - + "\007preview\030\003 " - + "\001(\0132\037.google.cloud.config.v1.PreviewB\003\340A\002\022\037\n\n" + + "\007preview\030\003 \001" + + "(\0132\037.google.cloud.config.v1.PreviewB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"H\n" + "\021GetPreviewRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" @@ -836,9 +974,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\001\022\016\n\n" + "DEPRECATED\020\002\022\014\n" + "\010OBSOLETE\020\003:\240\001\352A\234\001\n" - + "&config.googleapis.com/TerraformVersion\022Mprojects/{project}/locations/{loca" - + "tion}/terraformVersions/{terraform_versi" - + "on}*\021terraformVersions2\020terraformVersionB\021\n" + + "&config.googleapis.com/TerraformVersion\022Mprojects/{project}/locations/{locat" + + "ion}/terraformVersions/{terraform_versio" + + "n}*\021terraformVersions2\020terraformVersionB\021\n" + "\017_deprecate_timeB\020\n" + "\016_obsolete_time\"\217\001\n" + "\033ResourceChangeTerraformInfo\022\024\n" @@ -851,10 +989,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\010\022P\n" + "\016terraform_info\030\002" + " \001(\01323.google.cloud.config.v1.ResourceChangeTerraformInfoB\003\340A\003\022B\n" - + "\006intent\030\003 \001(\0162" - + "-.google.cloud.config.v1.ResourceChange.IntentB\003\340A\003\022E\n" - + "\020property_changes\030\004 \003(\0132&." - + "google.cloud.config.v1.PropertyChangeB\003\340A\003\"a\n" + + "\006intent\030\003 \001(\0162-" + + ".google.cloud.config.v1.ResourceChange.IntentB\003\340A\003\022E\n" + + "\020property_changes\030\004 \003(\0132&.g" + + "oogle.cloud.config.v1.PropertyChangeB\003\340A\003\"a\n" + "\006Intent\022\026\n" + "\022INTENT_UNSPECIFIED\020\000\022\n\n" + "\006CREATE\020\001\022\n\n" @@ -862,14 +1000,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006DELETE\020\003\022\014\n" + "\010RECREATE\020\004\022\r\n" + "\tUNCHANGED\020\005:\251\001\352A\245\001\n" - + "$config.googleapis.com/ResourceChange\022\\projects/{pr" - + "oject}/locations/{location}/previews/{pr" - + "eview}/resourceChanges/{resource_change}*\017resourceChanges2\016resourceChange\"\305\001\n" + + "$config.googleapis.com/ResourceChange\022\\projects/{pro" + + "ject}/locations/{location}/previews/{pre" + + "view}/resourceChanges/{resource_change}*\017resourceChanges2\016resourceChange\"\305\001\n" + "\016PropertyChange\022\021\n" + "\004path\030\001 \001(\tB\003\340A\003\022#\n" + "\026before_sensitive_paths\030\002 \003(\tB\003\340A\003\022+\n" + "\006before\030\003 \001(\0132\026.google.protobuf.ValueB\003\340A\003\022\"\n" - + "\025after_sensitive_paths\030\004 \003(\tB\003\340A\003\022*\n" + + "\025afte", + "r_sensitive_paths\030\004 \003(\tB\003\340A\003\022*\n" + "\005after\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\003\"\260\001\n" + "\032ListResourceChangesRequest\0225\n" + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" @@ -893,12 +1032,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010provider\030\004 \001(\tB\003\340A\003\"\337\002\n\r" + "ResourceDrift\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022O\n" - + "\016terraform_info\030\002 \001(\01322.google.clo" - + "ud.config.v1.ResourceDriftTerraformInfoB\003\340A\003\022C\n" - + "\017property_drifts\030\003 \003(\0132%.google.c" - + "loud.config.v1.PropertyDriftB\003\340A\003:\244\001\352A\240\001\n" - + "#config.googleapis.com/ResourceDrift\022Zprojects/{project}/locations/{location}/p" - + "reviews/{preview}/resourceDrifts/{resource_drift}*\016resourceDrifts2\r" + + "\016terraform_info\030\002 \001(\01322.google.clou" + + "d.config.v1.ResourceDriftTerraformInfoB\003\340A\003\022C\n" + + "\017property_drifts\030\003" + + " \003(\0132%.google.cloud.config.v1.PropertyDriftB\003\340A\003:\244\001\352A\240\001\n" + + "#config.googleapis.com/ResourceDrift\022Zprojects/{project}/locations/{location}/pr" + + "eviews/{preview}/resourceDrifts/{resource_drift}*\016resourceDrifts2\r" + "resourceDrift\"\304\001\n\r" + "PropertyDrift\022\021\n" + "\004path\030\001 \001(\tB\003\340A\003\022#\n" @@ -914,188 +1053,356 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\212\001\n" + "\032ListResourceDriftsResponse\022>\n" - + "\017resource_drifts\030\001 \003(\0132%.goog", - "le.cloud.config.v1.ResourceDrift\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"T" - + "\n\027GetResourceDriftRequest\0229\n\004name\030\001 \001(\tB" - + "+\340A\002\372A%\n#config.googleapis.com/ResourceD" - + "rift\"\301\001\n\016ProviderConfig\022T\n\013source_type\030\001" - + " \001(\01625.google.cloud.config.v1.ProviderCo" - + "nfig.ProviderSourceB\003\340A\001H\000\210\001\001\"I\n\016Provide" - + "rSource\022\037\n\033PROVIDER_SOURCE_UNSPECIFIED\020\000" - + "\022\026\n\022SERVICE_MAINTAINED\020\001B\016\n\014_source_type" - + "\"`\n\035GetAutoMigrationConfigRequest\022?\n\004nam" - + "e\030\001 \001(\tB1\340A\002\372A+\n)config.googleapis.com/A" - + "utoMigrationConfig\"\235\002\n\023AutoMigrationConf" - + "ig\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013update_time\030\002 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n\026a" - + "uto_migration_enabled\030\003 \001(\010B\003\340A\001:\227\001\352A\223\001\n" - + ")config.googleapis.com/AutoMigrationConf" - + "ig\022;projects/{project}/locations/{locati" - + "on}/autoMigrationConfig*\024autoMigrationCo" - + "nfigs2\023autoMigrationConfig\"\251\001\n UpdateAut" - + "oMigrationConfigRequest\0224\n\013update_mask\030\001" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022O\n" - + "\025auto_migration_config\030\002 \001(\0132+.google.cl" - + "oud.config.v1.AutoMigrationConfigB\003\340A\002*N" - + "\n\017QuotaValidation\022 \n\034QUOTA_VALIDATION_UN" - + "SPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010ENFORCED\020\0022\271" - + "-\n\006Config\022\264\001\n\017ListDeployments\022..google.c" - + "loud.config.v1.ListDeploymentsRequest\032/." - + "google.cloud.config.v1.ListDeploymentsRe" - + "sponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=pro" - + "jects/*/locations/*}/deployments\022\241\001\n\rGet" - + "Deployment\022,.google.cloud.config.v1.GetD" - + "eploymentRequest\032\".google.cloud.config.v" - + "1.Deployment\">\332A\004name\202\323\344\223\0021\022//v1/{name=p" - + "rojects/*/locations/*/deployments/*}\022\354\001\n" - + "\020CreateDeployment\022/.google.cloud.config." - + "v1.CreateDeploymentRequest\032\035.google.long" - + "running.Operation\"\207\001\312A\037\n\nDeployment\022\021Ope" - + "rationMetadata\332A\037parent,deployment,deplo" - + "yment_id\202\323\344\223\002=\"//v1/{parent=projects/*/l" - + "ocations/*}/deployments:\ndeployment\022\356\001\n\020" - + "UpdateDeployment\022/.google.cloud.config.v" - + "1.UpdateDeploymentRequest\032\035.google.longr" - + "unning.Operation\"\211\001\312A\037\n\nDeployment\022\021Oper" - + "ationMetadata\332A\026deployment,update_mask\202\323" - + "\344\223\002H2:/v1/{deployment.name=projects/*/lo" - + "cations/*/deployments/*}:\ndeployment\022\304\001\n" - + "\020DeleteDeployment\022/.google.cloud.config." - + "v1.DeleteDeploymentRequest\032\035.google.long" - + "running.Operation\"`\312A\037\n\nDeployment\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=pr" - + "ojects/*/locations/*/deployments/*}\022\272\001\n\r" - + "ListRevisions\022,.google.cloud.config.v1.L" - + "istRevisionsRequest\032-.google.cloud.confi" - + "g.v1.ListRevisionsResponse\"L\332A\006parent\202\323\344" - + "\223\002=\022;/v1/{parent=projects/*/locations/*/" - + "deployments/*}/revisions\022\247\001\n\013GetRevision" - + "\022*.google.cloud.config.v1.GetRevisionReq" - + "uest\032 .google.cloud.config.v1.Revision\"J" - + "\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/*/loca" - + "tions/*/deployments/*/revisions/*}\022\263\001\n\013G" - + "etResource\022*.google.cloud.config.v1.GetR" - + "esourceRequest\032 .google.cloud.config.v1." - + "Resource\"V\332A\004name\202\323\344\223\002I\022G/v1/{name=proje" - + "cts/*/locations/*/deployments/*/revision" - + "s/*/resources/*}\022\306\001\n\rListResources\022,.goo" - + "gle.cloud.config.v1.ListResourcesRequest" - + "\032-.google.cloud.config.v1.ListResourcesR" - + "esponse\"X\332A\006parent\202\323\344\223\002I\022G/v1/{parent=pr" - + "ojects/*/locations/*/deployments/*/revis" - + "ions/*}/resources\022\302\001\n\031ExportDeploymentSt" - + "atefile\0228.google.cloud.config.v1.ExportD" - + "eploymentStatefileRequest\032!.google.cloud" - + ".config.v1.Statefile\"H\202\323\344\223\002B\"=/v1/{paren" - + "t=projects/*/locations/*/deployments/*}:" - + "exportState:\001*\022\312\001\n\027ExportRevisionStatefi" - + "le\0226.google.cloud.config.v1.ExportRevisi" - + "onStatefileRequest\032!.google.cloud.config" - + ".v1.Statefile\"T\202\323\344\223\002N\"I/v1/{parent=proje" - + "cts/*/locations/*/deployments/*/revision" - + "s/*}:exportState:\001*\022\277\001\n\017ImportStatefile\022" - + "..google.cloud.config.v1.ImportStatefile" - + "Request\032!.google.cloud.config.v1.Statefi" - + "le\"Y\332A\016parent,lock_id\202\323\344\223\002B\"=/v1/{parent" - + "=projects/*/locations/*/deployments/*}:i" - + "mportState:\001*\022\250\001\n\017DeleteStatefile\022..goog" - + "le.cloud.config.v1.DeleteStatefileReques" - + "t\032\026.google.protobuf.Empty\"M\332A\004name\202\323\344\223\002@" - + "\";/v1/{name=projects/*/locations/*/deplo" - + "yments/*}:deleteState:\001*\022\310\001\n\016LockDeploym" - + "ent\022-.google.cloud.config.v1.LockDeploym" - + "entRequest\032\035.google.longrunning.Operatio" - + "n\"h\312A\037\n\nDeployment\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\0029\"4/v1/{name=projects/*/locatio" - + "ns/*/deployments/*}:lock:\001*\022\326\001\n\020UnlockDe" - + "ployment\022/.google.cloud.config.v1.Unlock" - + "DeploymentRequest\032\035.google.longrunning.O" - + "peration\"r\312A\037\n\nDeployment\022\021OperationMeta" - + "data\332A\014name,lock_id\202\323\344\223\002;\"6/v1/{name=pro" - + "jects/*/locations/*/deployments/*}:unloc" - + "k:\001*\022\254\001\n\016ExportLockInfo\022-.google.cloud.c" - + "onfig.v1.ExportLockInfoRequest\032 .google." - + "cloud.config.v1.LockInfo\"I\332A\004name\202\323\344\223\002<\022" - + ":/v1/{name=projects/*/locations/*/deploy" - + "ments/*}:exportLock\022\313\001\n\rCreatePreview\022,." - + "google.cloud.config.v1.CreatePreviewRequ" - + "est\032\035.google.longrunning.Operation\"m\312A\034\n" - + "\007Preview\022\021OperationMetadata\332A\016parent,pre" - + "view\202\323\344\223\0027\",/v1/{parent=projects/*/locat" - + "ions/*}/previews:\007preview\022\225\001\n\nGetPreview" - + "\022).google.cloud.config.v1.GetPreviewRequ" - + "est\032\037.google.cloud.config.v1.Preview\";\332A" - + "\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locati" - + "ons/*/previews/*}\022\250\001\n\014ListPreviews\022+.goo" - + "gle.cloud.config.v1.ListPreviewsRequest\032" - + ",.google.cloud.config.v1.ListPreviewsRes" - + "ponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=proj" - + "ects/*/locations/*}/previews\022\270\001\n\rDeleteP" - + "review\022,.google.cloud.config.v1.DeletePr" - + "eviewRequest\032\035.google.longrunning.Operat" - + "ion\"Z\312A\034\n\007Preview\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\002.*,/v1/{name=projects/*/location" - + "s/*/previews/*}\022\300\001\n\023ExportPreviewResult\022" - + "2.google.cloud.config.v1.ExportPreviewRe" - + "sultRequest\0323.google.cloud.config.v1.Exp" - + "ortPreviewResultResponse\"@\202\323\344\223\002:\"5/v1/{p" - + "arent=projects/*/locations/*/previews/*}" - + ":export:\001*\022\314\001\n\025ListTerraformVersions\0224.g" - + "oogle.cloud.config.v1.ListTerraformVersi" - + "onsRequest\0325.google.cloud.config.v1.List" - + "TerraformVersionsResponse\"F\332A\006parent\202\323\344\223" - + "\0027\0225/v1/{parent=projects/*/locations/*}/" - + "terraformVersions\022\271\001\n\023GetTerraformVersio" - + "n\0222.google.cloud.config.v1.GetTerraformV" - + "ersionRequest\032(.google.cloud.config.v1.T" - + "erraformVersion\"D\332A\004name\202\323\344\223\0027\0225/v1/{nam" - + "e=projects/*/locations/*/terraformVersio" - + "ns/*}\022\317\001\n\023ListResourceChanges\0222.google.c" - + "loud.config.v1.ListResourceChangesReques" - + "t\0323.google.cloud.config.v1.ListResourceC" - + "hangesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{pa" - + "rent=projects/*/locations/*/previews/*}/" - + "resourceChanges\022\274\001\n\021GetResourceChange\0220." - + "google.cloud.config.v1.GetResourceChange" - + "Request\032&.google.cloud.config.v1.Resourc" - + "eChange\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projec" - + "ts/*/locations/*/previews/*/resourceChan" - + "ges/*}\022\313\001\n\022ListResourceDrifts\0221.google.c" - + "loud.config.v1.ListResourceDriftsRequest" - + "\0322.google.cloud.config.v1.ListResourceDr" - + "iftsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{pare" - + "nt=projects/*/locations/*/previews/*}/re" - + "sourceDrifts\022\270\001\n\020GetResourceDrift\022/.goog" - + "le.cloud.config.v1.GetResourceDriftReque" - + "st\032%.google.cloud.config.v1.ResourceDrif" - + "t\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=projects/*/l" - + "ocations/*/previews/*/resourceDrifts/*}\022" - + "\302\001\n\026GetAutoMigrationConfig\0225.google.clou" - + "d.config.v1.GetAutoMigrationConfigReques" - + "t\032+.google.cloud.config.v1.AutoMigration" - + "Config\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=project" - + "s/*/locations/*/autoMigrationConfig}\022\260\002\n" - + "\031UpdateAutoMigrationConfig\0228.google.clou" - + "d.config.v1.UpdateAutoMigrationConfigReq" - + "uest\032\035.google.longrunning.Operation\"\271\001\312A" - + "(\n\023AutoMigrationConfig\022\021OperationMetadat" - + "a\332A!auto_migration_config,update_mask\202\323\344" - + "\223\002d2K/v1/{auto_migration_config.name=pro" - + "jects/*/locations/*/autoMigrationConfig}" - + ":\025auto_migration_config\032I\312A\025config.googl" - + "eapis.com\322A.https://www.googleapis.com/a" - + "uth/cloud-platformB\374\002\n\032com.google.cloud." - + "config.v1B\013ConfigProtoP\001Z2cloud.google.c" - + "om/go/config/apiv1/configpb;configpb\252\002\026G" - + "oogle.Cloud.Config.V1\312\002\026Google\\Cloud\\Con" - + "fig\\V1\352\002 Google::Cloud::ConfigService::V" - + "1\352AY\n!iam.googleapis.com/ServiceAccount\022" - + "4projects/{project}/serviceAccounts/{ser" - + "vice_account}\352Ai\n$cloudbuild.googleapis." - + "com/WorkerPool\022Aprojects/{project}/locat" - + "ions/{location}/workerPools/{worker_pool" - + "}b\006proto3" + + "\017resource_drifts\030\001 \003(\0132%.google.cloud.config.v1.ResourceDrift\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"T\n" + + "\027GetResourceDriftRequest\0229\n" + + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + + "#config.googleapis.com/ResourceDrift\"\301\001\n" + + "\016ProviderConfig\022T\n" + + "\013source_type\030\001 " + + "\001(\01625.google.cloud.config.v1.ProviderConfig.ProviderSourceB\003\340A\001H\000\210\001\001\"I\n" + + "\016ProviderSource\022\037\n" + + "\033PROVIDER_SOURCE_UNSPECIFIED\020\000\022\026\n" + + "\022SERVICE_MAINTAINED\020\001B\016\n" + + "\014_source_type\"`\n" + + "\035GetAutoMigrationConfigRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")config.googleapis.com/AutoMigrationConfig\"\235\002\n" + + "\023AutoMigrationConfig\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + + "\026auto_migration_enabled\030\003 \001(\010B\003\340A\001:\227\001\352A\223\001\n" + + ")config.googleapis.com/AutoMigrationConfig\022;projects/{project}/locations/{locatio" + + "n}/autoMigrationConfig*\024autoMigrationConfigs2\023autoMigrationConfig\"\251\001\n" + + " UpdateAutoMigrationConfigRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022O\n" + + "\025auto_migration_config\030\002" + + " \001(\0132+.google.cloud.config.v1.AutoMigrationConfigB\003\340A\002\"\310\t\n" + + "\017DeploymentGroup\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n" + + "\006labels\030\004 \003(\013" + + "23.google.cloud.config.v1.DeploymentGroup.LabelsEntryB\003\340A\001\022R\n" + + "\013annotations\030\005 \003(\0132" + + "8.google.cloud.config.v1.DeploymentGroup.AnnotationsEntryB\003\340A\001\022A\n" + + "\005state\030\006 \001(\0162-." + + "google.cloud.config.v1.DeploymentGroup.StateB\003\340A\003\022\036\n" + + "\021state_description\030\007 \001(\tB\003\340A\003\022@\n" + + "\020deployment_units\030\010 \003(\0132&.google.cloud.config.v1.DeploymentUnit\022Z\n" + + "\022provisioning_state\030\t \001(\01629.google.cloud.config.v1" + + ".DeploymentGroup.ProvisioningStateB\003\340A\003\022+\n" + + "\036provisioning_state_description\030\n" + + " \001(\tB\003\340A\003\0223\n" + + "\022provisioning_error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"|\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010UPDATING\020\003\022\014\n" + + "\010DELETING\020\004\022\n\n" + + "\006FAILED\020\005\022\r\n" + + "\tSUSPENDED\020\006\022\013\n" + + "\007DELETED\020\007\"\265\001\n" + + "\021ProvisioningState\022\"\n" + + "\036PROVISIONING_STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\017\n" + + "\013PROVISIONED\020\002\022\027\n" + + "\023FAILED_TO_PROVISION\020\003\022\022\n" + + "\016DEPROVISIONING\020\004\022\021\n\r" + + "DEPROVISIONED\020\005\022\031\n" + + "\025FAILED_TO_DEPROVISION\020\006:\233\001\352A\227\001\n" + + "%config.googleapis.com/DeploymentGroup\022Kprojec" + + "ts/{project}/locations/{location}/deploy" + + "mentGroups/{deployment_group}*\020deploymentGroups2\017deploymentGroup\"\211\001\n" + + "\016DeploymentUnit\022\n\n" + + "\002id\030\001 \001(\t\022A\n\n" + + "deployment\030\002 \001(\tB(\340A\001\372A\"\n" + + " config.googleapis.com/DeploymentH\000\210\001\001\022\031\n" + + "\014dependencies\030\003 \003(\tB\003\340A\002B\r\n" + + "\013_deployment\"i\n" + + "\016DeploymentSpec\022\032\n\r" + + "deployment_id\030\001 \001(\tB\003\340A\002\022;\n\n" + + "deployment\030\002 \001(\0132\".google.cloud.config.v1.DeploymentB\003\340A\002\"X\n" + + "\031GetDeploymentGroupRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%config.googleapis.com/DeploymentGroup\"\265\001\n" + + "\033ListDeploymentGroupsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\220\001\n" + + "\034ListDeploymentGroupsResponse\022B\n" + + "\021deployment_groups\030\001" + + " \003(\0132\'.google.cloud.config.v1.DeploymentGroup\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\253\002\n" + + "\037ProvisionDeploymentGroupRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%config.googleapis.com/DeploymentGroup\022k\n" + + "\020deployment_specs\030\003 \003(\0132L.google.cloud.config.v1" + + ".ProvisionDeploymentGroupRequest.DeploymentSpecsEntryB\003\340A\001\032^\n" + + "\024DeploymentSpecsEntry\022\013\n" + + "\003key\030\001 \001(\t\0225\n" + + "\005value\030\002" + + " \001(\0132&.google.cloud.config.v1.DeploymentSpec:\0028\001\"\316\001\n" + + "!DeprovisionDeploymentGroupRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%config.googleapis.com/DeploymentGroup\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\022X\n\r" + + "delete_policy\030\003 \001(\0162<.google.cloud.config.v" + + "1.DeleteDeploymentRequest.DeletePolicyB\003\340A\001\"\333\001\n" + + "\032DeploymentOperationSummary\022`\n" + + "\017deployment_step\030\001 \001(\0162B.google.cloud.confi" + + "g.v1.DeploymentOperationMetadata.DeploymentStepB\003\340A\003\022\032\n" + + "\005build\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\021\n" + + "\004logs\030\003 \001(\tB\003\340A\003\022\024\n" + + "\007content\030\004 \001(\tB\003\340A\003\022\026\n" + + "\tartifacts\030\005 \001(\tB\003\340A\003\"\366\005\n" + + "\026DeploymentUnitProgress\022\024\n" + + "\007unit_id\030\001 \001(\tB\003\340A\003\022<\n\n" + + "deployment\030\002 \001(\tB(\340A\003\372A\"\n" + + " config.googleapis.com/Deployment\022H\n" + + "\005state\030\003 \001(\01624.google" + + ".cloud.config.v1.DeploymentUnitProgress.StateB\003\340A\003\022\036\n" + + "\021state_description\030\004 \001(\tB\003\340A\003\022]\n" + + "\034deployment_operation_summary\030\005 \001(\013" + + "22.google.cloud.config.v1.DeploymentOperationSummaryB\003\340A\003\022&\n" + + "\005error\030\006 \001(\0132\022.google.rpc.StatusB\003\340A\003\022J\n" + + "\006intent\030\007 \001(\01625.goog" + + "le.cloud.config.v1.DeploymentUnitProgress.IntentB\003\340A\003\"\254\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006QUEUED\020\001\022\027\n" + + "\023APPLYING_DEPLOYMENT\020\002\022\r\n" + + "\tSUCCEEDED\020\004\022\n\n" + + "\006FAILED\020\005\022\013\n" + + "\007ABORTED\020\006\022\013\n" + + "\007SKIPPED\020\007\022\027\n" + + "\023DELETING_DEPLOYMENT\020\010\022\031\n" + + "\025PREVIEWING_DEPLOYMENT\020\t\"\233\001\n" + + "\006Intent\022\026\n" + + "\022INTENT_UNSPECIFIED\020\000\022\025\n" + + "\021CREATE_DEPLOYMENT\020\001\022\025\n" + + "\021UPDATE_DEPLOYMENT\020\002\022\025\n" + + "\021DELETE_DEPLOYMENT\020\003\022\027\n" + + "\023RECREATE_DEPLOYMENT\020\004\022\014\n" + + "\010CLEAN_UP\020\005\022\r\n" + + "\tUNCHANGED\020\006\"\264\004\n" + + ")ProvisionDeploymentGroupOperationMetadata\022q\n" + + "\004step\030\001 \001(\0162^.google.cloud.config.v1.Provisio" + + "nDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStepB\003\340A\003\022W\n" + + "\032deployment_unit_progresses\030\002" + + " \003(\0132..google.cloud.config.v1.DeploymentUnitProgressB\003\340A\003\"\272\002\n" + + "\034ProvisionDeploymentGroupStep\022/\n" + + "+PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED\020\000\022\037\n" + + "\033VALIDATING_DEPLOYMENT_GROUP\020\001\022/\n" + + "+ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP\020\002\022!\n" + + "\035PROVISIONING_DEPLOYMENT_UNITS\020\003\0224\n" + + "0DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP\020\004\022\r\n" + + "\tSUCCEEDED\020\005\022\n\n" + + "\006FAILED\020\006\022#\n" + + "\037DEPROVISIONING_DEPLOYMENT_UNITS\020\007\"\213\003\n" + + "\027DeploymentGroupRevision\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022>\n" + + "\010snapshot\030\002" + + " \001(\0132\'.google.cloud.config.v1.DeploymentGroupB\003\340A\003\0224\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\034\n" + + "\017alternative_ids\030\004 \003(\tB\003\340A\003:\310\001\352A\304\001\n" + + "-config.googleapis.com/DeploymentGroupRevisi" + + "on\022`projects/{project}/locations/{location}/deploymentGroups/{deployment_group}/" + + "revisions/{revision}*\030deploymentGroupRevisions2\027deploymentGroupRevision\"h\n" + + "!GetDeploymentGroupRevisionRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + + "-config.googleapis.com/DeploymentGroupRevision\"\225\001\n" + + "#ListDeploymentGroupRevisionsRequest\022=\n" + + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" + + "%config.googleapis.com/DeploymentGroup\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\256\001\n" + + "$ListDeploymentGroupRevisionsResponse\022S\n" + + "\032deployment_group_revisions\030\001" + + " \003(\0132/.google.cloud.config.v1.DeploymentGroupRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006*N\n" + + "\017QuotaValidation\022 \n" + + "\034QUOTA_VALIDATION_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\014\n" + + "\010ENFORCED\020\0022\360=\n" + + "\006Config\022\264\001\n" + + "\017ListDeployments\022..google.cloud.config." + + "v1.ListDeploymentsRequest\032/.google.cloud" + + ".config.v1.ListDeploymentsResponse\"@\332A\006p" + + "arent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/deployments\022\241\001\n\r" + + "GetDeployment\022,.google.cloud.config.v1.GetDeploymentReq" + + "uest\032\".google.cloud.config.v1.Deployment" + + "\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/deployments/*}\022\354\001\n" + + "\020CreateDeployment\022/.google.cloud.config.v1.CreateDep" + + "loymentRequest\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" + + "Deployment\022\021OperationMetada" + + "ta\332A\037parent,deployment,deployment_id\202\323\344\223" + + "\002=\"//v1/{parent=projects/*/locations/*}/deployments:\n" + + "deployment\022\356\001\n" + + "\020UpdateDeployment\022/.google.cloud.config.v1.UpdateDepl" + + "oymentRequest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" + + "Deployment\022\021OperationMetadat" + + "a\332A\026deployment,update_mask\202\323\344\223\002H2:/v1/{d" + + "eployment.name=projects/*/locations/*/deployments/*}:\n" + + "deployment\022\304\001\n" + + "\020DeleteDeployment\022/.google.cloud.config.v1.DeleteDep" + + "loymentRequest\032\035.google.longrunning.Operation\"`\312A\037\n\n" + + "Deployment\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/deployments/*}\022\272\001\n\r" + + "ListRevisions\022,.google.cloud.config.v1.ListRevisions" + + "Request\032-.google.cloud.config.v1.ListRev" + + "isionsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{pa" + + "rent=projects/*/locations/*/deployments/*}/revisions\022\247\001\n" + + "\013GetRevision\022*.google.cloud.config.v1.GetRevisionRequest\032 .googl" + + "e.cloud.config.v1.Revision\"J\332A\004name\202\323\344\223\002" + + "=\022;/v1/{name=projects/*/locations/*/deployments/*/revisions/*}\022\263\001\n" + + "\013GetResource\022*.google.cloud.config.v1.GetResourceRequest\032" + + " .google.cloud.config.v1.Resource\"V\332A" + + "\004name\202\323\344\223\002I\022G/v1/{name=projects/*/locati" + + "ons/*/deployments/*/revisions/*/resources/*}\022\306\001\n\r" + + "ListResources\022,.google.cloud.config.v1.ListResourcesRequest\032-.google.cl" + + "oud.config.v1.ListResourcesResponse\"X\332A\006" + + "parent\202\323\344\223\002I\022G/v1/{parent=projects/*/loc" + + "ations/*/deployments/*/revisions/*}/resources\022\302\001\n" + + "\031ExportDeploymentStatefile\0228.google.cloud.config.v1.ExportDeploymentSta" + + "tefileRequest\032!.google.cloud.config.v1.S" + + "tatefile\"H\202\323\344\223\002B\"=/v1/{parent=projects/*" + + "/locations/*/deployments/*}:exportState:\001*\022\312\001\n" + + "\027ExportRevisionStatefile\0226.google.cloud.config.v1.ExportRevisionStatefileR" + + "equest\032!.google.cloud.config.v1.Statefil" + + "e\"T\202\323\344\223\002N\"I/v1/{parent=projects/*/locati" + + "ons/*/deployments/*/revisions/*}:exportState:\001*\022\277\001\n" + + "\017ImportStatefile\022..google.cloud.config.v1.ImportStatefileRequest\032!.go" + + "ogle.cloud.config.v1.Statefile\"Y\332A\016paren" + + "t,lock_id\202\323\344\223\002B\"=/v1/{parent=projects/*/" + + "locations/*/deployments/*}:importState:\001*\022\250\001\n" + + "\017DeleteStatefile\022..google.cloud.con" + + "fig.v1.DeleteStatefileRequest\032\026.google.p" + + "rotobuf.Empty\"M\332A\004name\202\323\344\223\002@\";/v1/{name=" + + "projects/*/locations/*/deployments/*}:deleteState:\001*\022\310\001\n" + + "\016LockDeployment\022-.google" + + ".cloud.config.v1.LockDeploymentRequest\032\035.google.longrunning.Operation\"h\312A\037\n\n" + + "Deployment\022\021OperationMetadata\332A\004name\202\323\344\223\0029\"4" + + "/v1/{name=projects/*/locations/*/deployments/*}:lock:\001*\022\326\001\n" + + "\020UnlockDeployment\022/.google.cloud.config.v1.UnlockDeploymentRe" + + "quest\032\035.google.longrunning.Operation\"r\312A\037\n\n" + + "Deployment\022\021OperationMetadata\332A\014name," + + "lock_id\202\323\344\223\002;\"6/v1/{name=projects/*/locations/*/deployments/*}:unlock:\001*\022\254\001\n" + + "\016ExportLockInfo\022-.google.cloud.config.v1.ExportLockInfoRequest\032" + + " .google.cloud.config.v1.LockInfo\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=p" + + "rojects/*/locations/*/deployments/*}:exportLock\022\313\001\n\r" + + "CreatePreview\022,.google.cloud" + + ".config.v1.CreatePreviewRequest\032\035.google.longrunning.Operation\"m\312A\034\n" + + "\007Preview\022\021OperationMetadata\332A\016parent,preview\202\323\344\223\0027\"," + + "/v1/{parent=projects/*/locations/*}/previews:\007preview\022\225\001\n\n" + + "GetPreview\022).google.cloud.config.v1.GetPreviewRequest\032\037.google" + + ".cloud.config.v1.Preview\";\332A\004name\202\323\344\223\002.\022" + + ",/v1/{name=projects/*/locations/*/previews/*}\022\250\001\n" + + "\014ListPreviews\022+.google.cloud.config.v1.ListPreviewsRequest\032,.google.clo" + + "ud.config.v1.ListPreviewsResponse\"=\332A\006pa" + + "rent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/previews\022\270\001\n\r" + + "DeletePreview\022,.goo" + + "gle.cloud.config.v1.DeletePreviewRequest\032\035.google.longrunning.Operation\"Z\312A\034\n" + + "\007Preview\022\021OperationMetadata\332A\004name\202\323\344\223\002.*,/" + + "v1/{name=projects/*/locations/*/previews/*}\022\300\001\n" + + "\023ExportPreviewResult\0222.google.cloud.config.v1.ExportPreviewResultRequest\032" + + "3.google.cloud.config.v1.ExportPreviewRe" + + "sultResponse\"@\202\323\344\223\002:\"5/v1/{parent=projec" + + "ts/*/locations/*/previews/*}:export:\001*\022\314\001\n" + + "\025ListTerraformVersions\0224.google.cloud." + + "config.v1.ListTerraformVersionsRequest\0325.google.cloud.config.v1.ListTerraformVer" + + "sionsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{par" + + "ent=projects/*/locations/*}/terraformVersions\022\271\001\n" + + "\023GetTerraformVersion\0222.google.cloud.config.v1.GetTerraformVersionReques" + + "t\032(.google.cloud.config.v1.TerraformVers" + + "ion\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/terraformVersions/*}\022\317\001\n" + + "\023ListResourceChanges\0222.google.cloud.config." + + "v1.ListResourceChangesRequest\0323.google.cloud.config.v1.ListResourceChangesRespon" + + "se\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=project" + + "s/*/locations/*/previews/*}/resourceChanges\022\274\001\n" + + "\021GetResourceChange\0220.google.cloud.config.v1.GetResourceChangeRequest\032&.go" + + "ogle.cloud.config.v1.ResourceChange\"M\332A\004" + + "name\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/previews/*/resourceChanges/*}\022\313\001\n" + + "\022ListResourceDrifts\0221.google.cloud.config." + + "v1.ListResourceDriftsRequest\0322.google.cloud.config.v1.ListResourceDriftsResponse" + + "\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=projects/" + + "*/locations/*/previews/*}/resourceDrifts\022\270\001\n" + + "\020GetResourceDrift\022/.google.cloud.config.v1.GetResourceDriftRequest\032%.google." + + "cloud.config.v1.ResourceDrift\"L\332A\004name\202\323" + + "\344\223\002?\022=/v1/{name=projects/*/locations/*/previews/*/resourceDrifts/*}\022\302\001\n" + + "\026GetAutoMigrationConfig\0225.google.cloud.config.v1." + + "GetAutoMigrationConfigRequest\032+.google.c" + + "loud.config.v1.AutoMigrationConfig\"D\332A\004n" + + "ame\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/autoMigrationConfig}\022\260\002\n" + + "\031UpdateAutoMigrationConfig\0228.google.cloud.config.v1." + + "UpdateAutoMigrationConfigRequest\032\035.google.longrunning.Operation\"\271\001\312A(\n" + + "\023AutoMigrationConfig\022\021OperationMetadata\332A!auto_mig" + + "ration_config,update_mask\202\323\344\223\002d2K/v1/{au" + + "to_migration_config.name=projects/*/loca" + + "tions/*/autoMigrationConfig}:\025auto_migration_config\022\265\001\n" + + "\022GetDeploymentGroup\0221.google.cloud.config.v1.GetDeploymentGroupRe" + + "quest\032\'.google.cloud.config.v1.Deploymen" + + "tGroup\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/deploymentGroups/*}\022\222\002\n" + + "\025CreateDeploymentGroup\0224.google.cloud.con" + + "fig.v1.CreateDeploymentGroupRequest\032\035.google.longrunning.Operation\"\243\001\312A$\n" + + "\017DeploymentGroup\022\021OperationMetadata\332A+parent,de" + + "ployment_group,deployment_group_id\202\323\344\223\002H" + + "\"4/v1/{parent=projects/*/locations/*}/deploymentGroups:\020deployment_group\022\224\002\n" + + "\025UpdateDeploymentGroup\0224.google.cloud.config" + + ".v1.UpdateDeploymentGroupRequest\032\035.google.longrunning.Operation\"\245\001\312A$\n" + + "\017DeploymentGroup\022\021OperationMetadata\332A\034deployment_g" + + "roup,update_mask\202\323\344\223\002Y2E/v1/{deployment_" + + "group.name=projects/*/locations/*/deploymentGroups/*}:\020deployment_group\022\330\001\n" + + "\025DeleteDeploymentGroup\0224.google.cloud.config." + + "v1.DeleteDeploymentGroupRequest\032\035.google.longrunning.Operation\"j\312A$\n" + + "\017DeploymentGroup\022\021OperationMetadata\332A\004name\202\323\344\223\0026*4/v" + + "1/{name=projects/*/locations/*/deploymentGroups/*}\022\310\001\n" + + "\024ListDeploymentGroups\0223.google.cloud.config.v1.ListDeploymentGroup" + + "sRequest\0324.google.cloud.config.v1.ListDe" + + "ploymentGroupsResponse\"E\332A\006parent\202\323\344\223\0026\022" + + "4/v1/{parent=projects/*/locations/*}/deploymentGroups\022\353\001\n" + + "\030ProvisionDeploymentGroup\0227.google.cloud.config.v1.ProvisionDep" + + "loymentGroupRequest\032\035.google.longrunning.Operation\"w\312A$\n" + + "\017DeploymentGroup\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002C\">/v1/{name=proj" + + "ects/*/locations/*/deploymentGroups/*}:provision:\001*\022\361\001\n" + + "\032DeprovisionDeploymentGroup\0229.google.cloud.config.v1.DeprovisionD" + + "eploymentGroupRequest\032\035.google.longrunning.Operation\"y\312A$\n" + + "\017DeploymentGroup\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002E\"@/v1/{name=pr" + + "ojects/*/locations/*/deploymentGroups/*}:deprovision:\001*\022\331\001\n" + + "\032GetDeploymentGroupRevision\0229.google.cloud.config.v1.GetDeplo" + + "ymentGroupRevisionRequest\032/.google.cloud" + + ".config.v1.DeploymentGroupRevision\"O\332A\004n" + + "ame\202\323\344\223\002B\022@/v1/{name=projects/*/locations/*/deploymentGroups/*/revisions/*}\022\354\001\n" + + "\034ListDeploymentGroupRevisions\022;.google.cl" + + "oud.config.v1.ListDeploymentGroupRevisionsRequest\032<.google.cloud.config.v1.ListD" + + "eploymentGroupRevisionsResponse\"Q\332A\006pare" + + "nt\202\323\344\223\002B\022@/v1/{parent=projects/*/locatio" + + "ns/*/deploymentGroups/*}/revisions\032I\312A\025c" + + "onfig.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\374\002\n" + + "\032com.google.cloud.config.v1B\013ConfigProtoP\001Z2clo" + + "ud.google.com/go/config/apiv1/configpb;c" + + "onfigpb\252\002\026Google.Cloud.Config.V1\312\002\026Google\\Cloud\\Config\\V1\352\002" + + " Google::Cloud::ConfigService::V1\352AY\n" + + "!iam.googleapis.com/Serv" + + "iceAccount\0224projects/{project}/serviceAccounts/{service_account}\352Ai\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{pro" + + "ject}/locations/{location}/workerPools/{worker_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1167,7 +1474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_TerraformBlueprint_descriptor, new java.lang.String[] { - "GcsSource", "GitSource", "InputValues", "Source", + "GcsSource", "GitSource", "InputValues", "ExternalValues", "Source", }); internal_static_google_cloud_config_v1_TerraformBlueprint_InputValuesEntry_descriptor = internal_static_google_cloud_config_v1_TerraformBlueprint_descriptor.getNestedType(0); @@ -1177,6 +1484,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_config_v1_TerraformBlueprint_ExternalValuesEntry_descriptor = + internal_static_google_cloud_config_v1_TerraformBlueprint_descriptor.getNestedType(1); + internal_static_google_cloud_config_v1_TerraformBlueprint_ExternalValuesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_TerraformBlueprint_ExternalValuesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_config_v1_TerraformVariable_descriptor = getDescriptor().getMessageType(2); internal_static_google_cloud_config_v1_TerraformVariable_fieldAccessorTable = @@ -1185,8 +1500,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "InputValue", }); - internal_static_google_cloud_config_v1_ApplyResults_descriptor = + internal_static_google_cloud_config_v1_ExternalValueSource_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_config_v1_ExternalValueSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ExternalValueSource_descriptor, + new java.lang.String[] { + "DeploymentSource", "Source", + }); + internal_static_google_cloud_config_v1_DeploymentSource_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_config_v1_DeploymentSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentSource_descriptor, + new java.lang.String[] { + "Deployment", "OutputName", + }); + internal_static_google_cloud_config_v1_ApplyResults_descriptor = + getDescriptor().getMessageType(5); internal_static_google_cloud_config_v1_ApplyResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ApplyResults_descriptor, @@ -1202,7 +1533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_config_v1_TerraformOutput_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_config_v1_TerraformOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_TerraformOutput_descriptor, @@ -1210,7 +1541,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Sensitive", "Value", }); internal_static_google_cloud_config_v1_ListDeploymentsRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_config_v1_ListDeploymentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListDeploymentsRequest_descriptor, @@ -1218,7 +1549,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_config_v1_ListDeploymentsResponse_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_config_v1_ListDeploymentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListDeploymentsResponse_descriptor, @@ -1226,7 +1557,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Deployments", "NextPageToken", "Unreachable", }); internal_static_google_cloud_config_v1_GetDeploymentRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_config_v1_GetDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetDeploymentRequest_descriptor, @@ -1234,7 +1565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_ListRevisionsRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_config_v1_ListRevisionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListRevisionsRequest_descriptor, @@ -1242,7 +1573,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_config_v1_ListRevisionsResponse_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_config_v1_ListRevisionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListRevisionsResponse_descriptor, @@ -1250,7 +1581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Revisions", "NextPageToken", "Unreachable", }); internal_static_google_cloud_config_v1_GetRevisionRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_config_v1_GetRevisionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetRevisionRequest_descriptor, @@ -1258,15 +1589,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_CreateDeploymentRequest_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_config_v1_CreateDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_CreateDeploymentRequest_descriptor, new java.lang.String[] { "Parent", "DeploymentId", "Deployment", "RequestId", }); + internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "DeploymentGroupId", "DeploymentGroup", "RequestId", + }); + internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "DeploymentGroup", "RequestId", + }); + internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", "DeploymentReferencePolicy", + }); internal_static_google_cloud_config_v1_UpdateDeploymentRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(17); internal_static_google_cloud_config_v1_UpdateDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_UpdateDeploymentRequest_descriptor, @@ -1274,7 +1629,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Deployment", "RequestId", }); internal_static_google_cloud_config_v1_DeleteDeploymentRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(18); internal_static_google_cloud_config_v1_DeleteDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_DeleteDeploymentRequest_descriptor, @@ -1282,13 +1637,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Force", "DeletePolicy", }); internal_static_google_cloud_config_v1_OperationMetadata_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(19); internal_static_google_cloud_config_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_OperationMetadata_descriptor, new java.lang.String[] { "DeploymentMetadata", "PreviewMetadata", + "ProvisionDeploymentGroupMetadata", "CreateTime", "EndTime", "Target", @@ -1298,7 +1654,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", "ResourceMetadata", }); - internal_static_google_cloud_config_v1_Revision_descriptor = getDescriptor().getMessageType(15); + internal_static_google_cloud_config_v1_Revision_descriptor = getDescriptor().getMessageType(20); internal_static_google_cloud_config_v1_Revision_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_Revision_descriptor, @@ -1327,7 +1683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Blueprint", }); internal_static_google_cloud_config_v1_TerraformError_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(21); internal_static_google_cloud_config_v1_TerraformError_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_TerraformError_descriptor, @@ -1335,7 +1691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceAddress", "HttpResponseCode", "ErrorDescription", "Error", }); internal_static_google_cloud_config_v1_GitSource_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(22); internal_static_google_cloud_config_v1_GitSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GitSource_descriptor, @@ -1343,14 +1699,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Repo", "Directory", "Ref", }); internal_static_google_cloud_config_v1_DeploymentOperationMetadata_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(23); internal_static_google_cloud_config_v1_DeploymentOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_DeploymentOperationMetadata_descriptor, new java.lang.String[] { "Step", "ApplyResults", "Build", "Logs", }); - internal_static_google_cloud_config_v1_Resource_descriptor = getDescriptor().getMessageType(19); + internal_static_google_cloud_config_v1_Resource_descriptor = getDescriptor().getMessageType(24); internal_static_google_cloud_config_v1_Resource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_Resource_descriptor, @@ -1366,7 +1722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_config_v1_ResourceTerraformInfo_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(25); internal_static_google_cloud_config_v1_ResourceTerraformInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ResourceTerraformInfo_descriptor, @@ -1374,7 +1730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Type", "Id", }); internal_static_google_cloud_config_v1_ResourceCAIInfo_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(26); internal_static_google_cloud_config_v1_ResourceCAIInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ResourceCAIInfo_descriptor, @@ -1382,7 +1738,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FullResourceName", }); internal_static_google_cloud_config_v1_GetResourceRequest_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(27); internal_static_google_cloud_config_v1_GetResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetResourceRequest_descriptor, @@ -1390,7 +1746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_ListResourcesRequest_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(28); internal_static_google_cloud_config_v1_ListResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListResourcesRequest_descriptor, @@ -1398,7 +1754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_config_v1_ListResourcesResponse_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(29); internal_static_google_cloud_config_v1_ListResourcesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListResourcesResponse_descriptor, @@ -1406,7 +1762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resources", "NextPageToken", "Unreachable", }); internal_static_google_cloud_config_v1_Statefile_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(30); internal_static_google_cloud_config_v1_Statefile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_Statefile_descriptor, @@ -1414,7 +1770,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedUri", }); internal_static_google_cloud_config_v1_ExportDeploymentStatefileRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(31); internal_static_google_cloud_config_v1_ExportDeploymentStatefileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ExportDeploymentStatefileRequest_descriptor, @@ -1422,7 +1778,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Draft", }); internal_static_google_cloud_config_v1_ExportRevisionStatefileRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(32); internal_static_google_cloud_config_v1_ExportRevisionStatefileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ExportRevisionStatefileRequest_descriptor, @@ -1430,7 +1786,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_config_v1_ImportStatefileRequest_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(33); internal_static_google_cloud_config_v1_ImportStatefileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ImportStatefileRequest_descriptor, @@ -1438,7 +1794,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "LockId", "SkipDraft", }); internal_static_google_cloud_config_v1_DeleteStatefileRequest_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(34); internal_static_google_cloud_config_v1_DeleteStatefileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_DeleteStatefileRequest_descriptor, @@ -1446,7 +1802,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "LockId", }); internal_static_google_cloud_config_v1_LockDeploymentRequest_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(35); internal_static_google_cloud_config_v1_LockDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_LockDeploymentRequest_descriptor, @@ -1454,7 +1810,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_UnlockDeploymentRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(36); internal_static_google_cloud_config_v1_UnlockDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_UnlockDeploymentRequest_descriptor, @@ -1462,21 +1818,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "LockId", }); internal_static_google_cloud_config_v1_ExportLockInfoRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(37); internal_static_google_cloud_config_v1_ExportLockInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ExportLockInfoRequest_descriptor, new java.lang.String[] { "Name", }); - internal_static_google_cloud_config_v1_LockInfo_descriptor = getDescriptor().getMessageType(33); + internal_static_google_cloud_config_v1_LockInfo_descriptor = getDescriptor().getMessageType(38); internal_static_google_cloud_config_v1_LockInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_LockInfo_descriptor, new java.lang.String[] { "LockId", "Operation", "Info", "Who", "Version", "CreateTime", }); - internal_static_google_cloud_config_v1_Preview_descriptor = getDescriptor().getMessageType(34); + internal_static_google_cloud_config_v1_Preview_descriptor = getDescriptor().getMessageType(39); internal_static_google_cloud_config_v1_Preview_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_Preview_descriptor, @@ -1521,7 +1877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_config_v1_PreviewOperationMetadata_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(40); internal_static_google_cloud_config_v1_PreviewOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_PreviewOperationMetadata_descriptor, @@ -1529,7 +1885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Step", "PreviewArtifacts", "Logs", "Build", }); internal_static_google_cloud_config_v1_PreviewArtifacts_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(41); internal_static_google_cloud_config_v1_PreviewArtifacts_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_PreviewArtifacts_descriptor, @@ -1537,7 +1893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "Artifacts", }); internal_static_google_cloud_config_v1_CreatePreviewRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(42); internal_static_google_cloud_config_v1_CreatePreviewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_CreatePreviewRequest_descriptor, @@ -1545,7 +1901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PreviewId", "Preview", "RequestId", }); internal_static_google_cloud_config_v1_GetPreviewRequest_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(43); internal_static_google_cloud_config_v1_GetPreviewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetPreviewRequest_descriptor, @@ -1553,7 +1909,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_ListPreviewsRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(44); internal_static_google_cloud_config_v1_ListPreviewsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListPreviewsRequest_descriptor, @@ -1561,7 +1917,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_config_v1_ListPreviewsResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(45); internal_static_google_cloud_config_v1_ListPreviewsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListPreviewsResponse_descriptor, @@ -1569,7 +1925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Previews", "NextPageToken", "Unreachable", }); internal_static_google_cloud_config_v1_DeletePreviewRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(46); internal_static_google_cloud_config_v1_DeletePreviewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_DeletePreviewRequest_descriptor, @@ -1577,7 +1933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_config_v1_ExportPreviewResultRequest_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(47); internal_static_google_cloud_config_v1_ExportPreviewResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ExportPreviewResultRequest_descriptor, @@ -1585,7 +1941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_config_v1_ExportPreviewResultResponse_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(48); internal_static_google_cloud_config_v1_ExportPreviewResultResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ExportPreviewResultResponse_descriptor, @@ -1593,7 +1949,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Result", }); internal_static_google_cloud_config_v1_PreviewResult_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(49); internal_static_google_cloud_config_v1_PreviewResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_PreviewResult_descriptor, @@ -1601,7 +1957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BinarySignedUri", "JsonSignedUri", }); internal_static_google_cloud_config_v1_GetTerraformVersionRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(50); internal_static_google_cloud_config_v1_GetTerraformVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetTerraformVersionRequest_descriptor, @@ -1609,7 +1965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_ListTerraformVersionsRequest_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(51); internal_static_google_cloud_config_v1_ListTerraformVersionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListTerraformVersionsRequest_descriptor, @@ -1617,7 +1973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_config_v1_ListTerraformVersionsResponse_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(52); internal_static_google_cloud_config_v1_ListTerraformVersionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListTerraformVersionsResponse_descriptor, @@ -1625,7 +1981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TerraformVersions", "NextPageToken", "Unreachable", }); internal_static_google_cloud_config_v1_TerraformVersion_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(53); internal_static_google_cloud_config_v1_TerraformVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_TerraformVersion_descriptor, @@ -1633,7 +1989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "SupportTime", "DeprecateTime", "ObsoleteTime", }); internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(54); internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor, @@ -1641,7 +1997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Type", "ResourceName", "Provider", "Actions", }); internal_static_google_cloud_config_v1_ResourceChange_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(55); internal_static_google_cloud_config_v1_ResourceChange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ResourceChange_descriptor, @@ -1649,7 +2005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "TerraformInfo", "Intent", "PropertyChanges", }); internal_static_google_cloud_config_v1_PropertyChange_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(56); internal_static_google_cloud_config_v1_PropertyChange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_PropertyChange_descriptor, @@ -1657,7 +2013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", "BeforeSensitivePaths", "Before", "AfterSensitivePaths", "After", }); internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(57); internal_static_google_cloud_config_v1_ListResourceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor, @@ -1665,7 +2021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(58); internal_static_google_cloud_config_v1_ListResourceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor, @@ -1673,7 +2029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceChanges", "NextPageToken", "Unreachable", }); internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor = - getDescriptor().getMessageType(54); + getDescriptor().getMessageType(59); internal_static_google_cloud_config_v1_GetResourceChangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor, @@ -1681,7 +2037,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor = - getDescriptor().getMessageType(55); + getDescriptor().getMessageType(60); internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor, @@ -1689,7 +2045,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Type", "ResourceName", "Provider", }); internal_static_google_cloud_config_v1_ResourceDrift_descriptor = - getDescriptor().getMessageType(56); + getDescriptor().getMessageType(61); internal_static_google_cloud_config_v1_ResourceDrift_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ResourceDrift_descriptor, @@ -1697,7 +2053,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "TerraformInfo", "PropertyDrifts", }); internal_static_google_cloud_config_v1_PropertyDrift_descriptor = - getDescriptor().getMessageType(57); + getDescriptor().getMessageType(62); internal_static_google_cloud_config_v1_PropertyDrift_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_PropertyDrift_descriptor, @@ -1705,7 +2061,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", "BeforeSensitivePaths", "Before", "AfterSensitivePaths", "After", }); internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor = - getDescriptor().getMessageType(58); + getDescriptor().getMessageType(63); internal_static_google_cloud_config_v1_ListResourceDriftsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor, @@ -1713,7 +2069,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor = - getDescriptor().getMessageType(59); + getDescriptor().getMessageType(64); internal_static_google_cloud_config_v1_ListResourceDriftsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor, @@ -1721,7 +2077,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceDrifts", "NextPageToken", "Unreachable", }); internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor = - getDescriptor().getMessageType(60); + getDescriptor().getMessageType(65); internal_static_google_cloud_config_v1_GetResourceDriftRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor, @@ -1729,7 +2085,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_ProviderConfig_descriptor = - getDescriptor().getMessageType(61); + getDescriptor().getMessageType(66); internal_static_google_cloud_config_v1_ProviderConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_ProviderConfig_descriptor, @@ -1737,7 +2093,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceType", }); internal_static_google_cloud_config_v1_GetAutoMigrationConfigRequest_descriptor = - getDescriptor().getMessageType(62); + getDescriptor().getMessageType(67); internal_static_google_cloud_config_v1_GetAutoMigrationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_GetAutoMigrationConfigRequest_descriptor, @@ -1745,7 +2101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_config_v1_AutoMigrationConfig_descriptor = - getDescriptor().getMessageType(63); + getDescriptor().getMessageType(68); internal_static_google_cloud_config_v1_AutoMigrationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_AutoMigrationConfig_descriptor, @@ -1753,13 +2109,174 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UpdateTime", "AutoMigrationEnabled", }); internal_static_google_cloud_config_v1_UpdateAutoMigrationConfigRequest_descriptor = - getDescriptor().getMessageType(64); + getDescriptor().getMessageType(69); internal_static_google_cloud_config_v1_UpdateAutoMigrationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_config_v1_UpdateAutoMigrationConfigRequest_descriptor, new java.lang.String[] { "UpdateMask", "AutoMigrationConfig", }); + internal_static_google_cloud_config_v1_DeploymentGroup_descriptor = + getDescriptor().getMessageType(70); + internal_static_google_cloud_config_v1_DeploymentGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentGroup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Annotations", + "State", + "StateDescription", + "DeploymentUnits", + "ProvisioningState", + "ProvisioningStateDescription", + "ProvisioningError", + }); + internal_static_google_cloud_config_v1_DeploymentGroup_LabelsEntry_descriptor = + internal_static_google_cloud_config_v1_DeploymentGroup_descriptor.getNestedType(0); + internal_static_google_cloud_config_v1_DeploymentGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_config_v1_DeploymentGroup_AnnotationsEntry_descriptor = + internal_static_google_cloud_config_v1_DeploymentGroup_descriptor.getNestedType(1); + internal_static_google_cloud_config_v1_DeploymentGroup_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentGroup_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_config_v1_DeploymentUnit_descriptor = + getDescriptor().getMessageType(71); + internal_static_google_cloud_config_v1_DeploymentUnit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentUnit_descriptor, + new java.lang.String[] { + "Id", "Deployment", "Dependencies", + }); + internal_static_google_cloud_config_v1_DeploymentSpec_descriptor = + getDescriptor().getMessageType(72); + internal_static_google_cloud_config_v1_DeploymentSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentSpec_descriptor, + new java.lang.String[] { + "DeploymentId", "Deployment", + }); + internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(73); + internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_descriptor = + getDescriptor().getMessageType(74); + internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_descriptor = + getDescriptor().getMessageType(75); + internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_descriptor, + new java.lang.String[] { + "DeploymentGroups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(76); + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", "DeploymentSpecs", + }); + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_DeploymentSpecsEntry_descriptor = + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_DeploymentSpecsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_DeploymentSpecsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(77); + internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", "Force", "DeletePolicy", + }); + internal_static_google_cloud_config_v1_DeploymentOperationSummary_descriptor = + getDescriptor().getMessageType(78); + internal_static_google_cloud_config_v1_DeploymentOperationSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentOperationSummary_descriptor, + new java.lang.String[] { + "DeploymentStep", "Build", "Logs", "Content", "Artifacts", + }); + internal_static_google_cloud_config_v1_DeploymentUnitProgress_descriptor = + getDescriptor().getMessageType(79); + internal_static_google_cloud_config_v1_DeploymentUnitProgress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentUnitProgress_descriptor, + new java.lang.String[] { + "UnitId", + "Deployment", + "State", + "StateDescription", + "DeploymentOperationSummary", + "Error", + "Intent", + }); + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_descriptor = + getDescriptor().getMessageType(80); + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_descriptor, + new java.lang.String[] { + "Step", "DeploymentUnitProgresses", + }); + internal_static_google_cloud_config_v1_DeploymentGroupRevision_descriptor = + getDescriptor().getMessageType(81); + internal_static_google_cloud_config_v1_DeploymentGroupRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_DeploymentGroupRevision_descriptor, + new java.lang.String[] { + "Name", "Snapshot", "CreateTime", "AlternativeIds", + }); + internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_descriptor = + getDescriptor().getMessageType(82); + internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_descriptor = + getDescriptor().getMessageType(83); + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_descriptor = + getDescriptor().getMessageType(84); + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_descriptor, + new java.lang.String[] { + "DeploymentGroupRevisions", "NextPageToken", "Unreachable", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/CreateDeploymentGroupRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/CreateDeploymentGroupRequest.java new file mode 100644 index 000000000000..89e6334eb895 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/CreateDeploymentGroupRequest.java @@ -0,0 +1,1413 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * A request to create a deployment group
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.CreateDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class CreateDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.CreateDeploymentGroupRequest) + CreateDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateDeploymentGroupRequest"); + } + + // Use CreateDeploymentGroupRequest.newBuilder() to construct. + private CreateDeploymentGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateDeploymentGroupRequest() { + parent_ = ""; + deploymentGroupId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.CreateDeploymentGroupRequest.class, + com.google.cloud.config.v1.CreateDeploymentGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent in whose context the Deployment Group is created. The
    +   * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The parent in whose context the Deployment Group is created. The
    +   * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentGroupId_ = ""; + + /** + * + * + *
    +   * Required. The deployment group ID.
    +   * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentGroupId. + */ + @java.lang.Override + public java.lang.String getDeploymentGroupId() { + java.lang.Object ref = deploymentGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentGroupId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The deployment group ID.
    +   * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentGroupIdBytes() { + java.lang.Object ref = deploymentGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.config.v1.DeploymentGroup deploymentGroup_; + + /** + * + * + *
    +   * Required. [Deployment Group][] resource to create
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentGroup field is set. + */ + @java.lang.Override + public boolean hasDeploymentGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. [Deployment Group][] resource to create
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentGroup. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup() { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + + /** + * + * + *
    +   * Required. [Deployment Group][] resource to create
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder() { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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(deploymentGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, deploymentGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDeploymentGroup()); + } + 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(deploymentGroupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, deploymentGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeploymentGroup()); + } + 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.config.v1.CreateDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.CreateDeploymentGroupRequest other = + (com.google.cloud.config.v1.CreateDeploymentGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDeploymentGroupId().equals(other.getDeploymentGroupId())) return false; + if (hasDeploymentGroup() != other.hasDeploymentGroup()) return false; + if (hasDeploymentGroup()) { + if (!getDeploymentGroup().equals(other.getDeploymentGroup())) 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) + DEPLOYMENT_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroupId().hashCode(); + if (hasDeploymentGroup()) { + hash = (37 * hash) + DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroup().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.config.v1.CreateDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest 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.config.v1.CreateDeploymentGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest 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.config.v1.CreateDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest 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.config.v1.CreateDeploymentGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to create a deployment group
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.CreateDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.CreateDeploymentGroupRequest) + com.google.cloud.config.v1.CreateDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.CreateDeploymentGroupRequest.class, + com.google.cloud.config.v1.CreateDeploymentGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.CreateDeploymentGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + deploymentGroupId_ = ""; + deploymentGroup_ = null; + if (deploymentGroupBuilder_ != null) { + deploymentGroupBuilder_.dispose(); + deploymentGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_CreateDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.CreateDeploymentGroupRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.CreateDeploymentGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.CreateDeploymentGroupRequest build() { + com.google.cloud.config.v1.CreateDeploymentGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.CreateDeploymentGroupRequest buildPartial() { + com.google.cloud.config.v1.CreateDeploymentGroupRequest result = + new com.google.cloud.config.v1.CreateDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.CreateDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentGroupId_ = deploymentGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deploymentGroup_ = + deploymentGroupBuilder_ == null ? deploymentGroup_ : deploymentGroupBuilder_.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.config.v1.CreateDeploymentGroupRequest) { + return mergeFrom((com.google.cloud.config.v1.CreateDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.CreateDeploymentGroupRequest other) { + if (other == com.google.cloud.config.v1.CreateDeploymentGroupRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeploymentGroupId().isEmpty()) { + deploymentGroupId_ = other.deploymentGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDeploymentGroup()) { + mergeDeploymentGroup(other.getDeploymentGroup()); + } + 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: + { + deploymentGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDeploymentGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The parent in whose context the Deployment Group is created. The
    +     * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The parent in whose context the Deployment Group is created. The
    +     * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The parent in whose context the Deployment Group is created. The
    +     * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent in whose context the Deployment Group is created. The
    +     * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent in whose context the Deployment Group is created. The
    +     * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deploymentGroupId_ = ""; + + /** + * + * + *
    +     * Required. The deployment group ID.
    +     * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentGroupId. + */ + public java.lang.String getDeploymentGroupId() { + java.lang.Object ref = deploymentGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The deployment group ID.
    +     * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentGroupId. + */ + public com.google.protobuf.ByteString getDeploymentGroupIdBytes() { + java.lang.Object ref = deploymentGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The deployment group ID.
    +     * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The deploymentGroupId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The deployment group ID.
    +     * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentGroupId() { + deploymentGroupId_ = getDefaultInstance().getDeploymentGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The deployment group ID.
    +     * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for deploymentGroupId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.config.v1.DeploymentGroup deploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + deploymentGroupBuilder_; + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentGroup field is set. + */ + public boolean hasDeploymentGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentGroup. + */ + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup() { + if (deploymentGroupBuilder_ == null) { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } else { + return deploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeploymentGroup(com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentGroup_ = value; + } else { + deploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeploymentGroup( + com.google.cloud.config.v1.DeploymentGroup.Builder builderForValue) { + if (deploymentGroupBuilder_ == null) { + deploymentGroup_ = builderForValue.build(); + } else { + deploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeploymentGroup(com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && deploymentGroup_ != null + && deploymentGroup_ + != com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()) { + getDeploymentGroupBuilder().mergeFrom(value); + } else { + deploymentGroup_ = value; + } + } else { + deploymentGroupBuilder_.mergeFrom(value); + } + if (deploymentGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + deploymentGroup_ = null; + if (deploymentGroupBuilder_ != null) { + deploymentGroupBuilder_.dispose(); + deploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.config.v1.DeploymentGroup.Builder getDeploymentGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder() { + if (deploymentGroupBuilder_ != null) { + return deploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + } + + /** + * + * + *
    +     * Required. [Deployment Group][] resource to create
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + internalGetDeploymentGroupFieldBuilder() { + if (deploymentGroupBuilder_ == null) { + deploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder>( + getDeploymentGroup(), getParentForChildren(), isClean()); + deploymentGroup_ = null; + } + return deploymentGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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.config.v1.CreateDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.CreateDeploymentGroupRequest) + private static final com.google.cloud.config.v1.CreateDeploymentGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.CreateDeploymentGroupRequest(); + } + + public static com.google.cloud.config.v1.CreateDeploymentGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeploymentGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.CreateDeploymentGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/CreateDeploymentGroupRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/CreateDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..054231e48744 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/CreateDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface CreateDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.CreateDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent in whose context the Deployment Group is created. The
    +   * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent in whose context the Deployment Group is created. The
    +   * parent value is in the format: 'projects/{project_id}/locations/{location}'
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The deployment group ID.
    +   * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentGroupId. + */ + java.lang.String getDeploymentGroupId(); + + /** + * + * + *
    +   * Required. The deployment group ID.
    +   * 
    + * + * string deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentGroupId. + */ + com.google.protobuf.ByteString getDeploymentGroupIdBytes(); + + /** + * + * + *
    +   * Required. [Deployment Group][] resource to create
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentGroup field is set. + */ + boolean hasDeploymentGroup(); + + /** + * + * + *
    +   * Required. [Deployment Group][] resource to create
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentGroup. + */ + com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup(); + + /** + * + * + *
    +   * Required. [Deployment Group][] resource to create
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeleteDeploymentGroupRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeleteDeploymentGroupRequest.java new file mode 100644 index 000000000000..fa43f62308ca --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeleteDeploymentGroupRequest.java @@ -0,0 +1,1437 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * Request message for Delete DeploymentGroup
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeleteDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeleteDeploymentGroupRequest) + DeleteDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteDeploymentGroupRequest"); + } + + // Use DeleteDeploymentGroupRequest.newBuilder() to construct. + private DeleteDeploymentGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteDeploymentGroupRequest() { + name_ = ""; + requestId_ = ""; + deploymentReferencePolicy_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.class, + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.Builder.class); + } + + /** + * + * + *
    +   * Policy on how to handle referenced deployments when deleting the
    +   * DeploymentGroup.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy} + */ + public enum DeploymentReferencePolicy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default behavior. If unspecified, the system will act as if
    +     * `FAIL_IF_ANY_REFERENCES_EXIST` is specified.
    +     * 
    + * + * DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED = 0; + */ + DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED(0), + /** + * + * + *
    +     * Fail the deletion if any deployments currently referenced in the
    +     * `deployment_units` of the DeploymentGroup or in the latest revision
    +     * are not deleted.
    +     * 
    + * + * FAIL_IF_ANY_REFERENCES_EXIST = 1; + */ + FAIL_IF_ANY_REFERENCES_EXIST(1), + /** + * + * + *
    +     * Fail the deletion only if any deployments currently referenced in the
    +     * `deployment_units` of the DeploymentGroup are not deleted.
    +     * The deletion will proceed even if the deployments in the latest revision
    +     * of the DeploymentGroup are not deleted.
    +     * 
    + * + * FAIL_IF_METADATA_REFERENCES_EXIST = 2; + */ + FAIL_IF_METADATA_REFERENCES_EXIST(2), + /** + * + * + *
    +     * Ignore any deployments currently referenced in the
    +     * `deployment_units` of the DeploymentGroup or in the latest revision.
    +     * 
    + * + * IGNORE_DEPLOYMENT_REFERENCES = 3; + */ + IGNORE_DEPLOYMENT_REFERENCES(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentReferencePolicy"); + } + + /** + * + * + *
    +     * The default behavior. If unspecified, the system will act as if
    +     * `FAIL_IF_ANY_REFERENCES_EXIST` is specified.
    +     * 
    + * + * DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Fail the deletion if any deployments currently referenced in the
    +     * `deployment_units` of the DeploymentGroup or in the latest revision
    +     * are not deleted.
    +     * 
    + * + * FAIL_IF_ANY_REFERENCES_EXIST = 1; + */ + public static final int FAIL_IF_ANY_REFERENCES_EXIST_VALUE = 1; + + /** + * + * + *
    +     * Fail the deletion only if any deployments currently referenced in the
    +     * `deployment_units` of the DeploymentGroup are not deleted.
    +     * The deletion will proceed even if the deployments in the latest revision
    +     * of the DeploymentGroup are not deleted.
    +     * 
    + * + * FAIL_IF_METADATA_REFERENCES_EXIST = 2; + */ + public static final int FAIL_IF_METADATA_REFERENCES_EXIST_VALUE = 2; + + /** + * + * + *
    +     * Ignore any deployments currently referenced in the
    +     * `deployment_units` of the DeploymentGroup or in the latest revision.
    +     * 
    + * + * IGNORE_DEPLOYMENT_REFERENCES = 3; + */ + public static final int IGNORE_DEPLOYMENT_REFERENCES_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 DeploymentReferencePolicy 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 DeploymentReferencePolicy forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED; + case 1: + return FAIL_IF_ANY_REFERENCES_EXIST; + case 2: + return FAIL_IF_METADATA_REFERENCES_EXIST; + case 3: + return IGNORE_DEPLOYMENT_REFERENCES; + 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 DeploymentReferencePolicy findValueByNumber(int number) { + return DeploymentReferencePolicy.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.config.v1.DeleteDeploymentGroupRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DeploymentReferencePolicy[] VALUES = values(); + + public static DeploymentReferencePolicy 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 DeploymentReferencePolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of DeploymentGroup in the format
    +   * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +   * 
    + * + * + * 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 DeploymentGroup in the format
    +   * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes after the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes after the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
    +   * Optional. If set to true, any revisions for this deployment group will also
    +   * be deleted. (Otherwise, the request will only work if the deployment group
    +   * has no revisions.)
    +   * 
    + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + public static final int DEPLOYMENT_REFERENCE_POLICY_FIELD_NUMBER = 4; + private int deploymentReferencePolicy_ = 0; + + /** + * + * + *
    +   * Optional. Policy on how to handle referenced deployments when deleting the
    +   * DeploymentGroup.
    +   * If unspecified, the default behavior is to fail the deletion if any
    +   * deployments currently referenced in the `deployment_units` of the
    +   * DeploymentGroup or in the latest revision are not deleted.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentReferencePolicy. + */ + @java.lang.Override + public int getDeploymentReferencePolicyValue() { + return deploymentReferencePolicy_; + } + + /** + * + * + *
    +   * Optional. Policy on how to handle referenced deployments when deleting the
    +   * DeploymentGroup.
    +   * If unspecified, the default behavior is to fail the deletion if any
    +   * deployments currently referenced in the `deployment_units` of the
    +   * DeploymentGroup or in the latest revision are not deleted.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentReferencePolicy. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + getDeploymentReferencePolicy() { + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy result = + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy.forNumber( + deploymentReferencePolicy_); + return result == null + ? com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + .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(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + if (deploymentReferencePolicy_ + != com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + .DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, deploymentReferencePolicy_); + } + 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(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + if (deploymentReferencePolicy_ + != com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + .DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, deploymentReferencePolicy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.DeleteDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeleteDeploymentGroupRequest other = + (com.google.cloud.config.v1.DeleteDeploymentGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; + if (deploymentReferencePolicy_ != other.deploymentReferencePolicy_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + DEPLOYMENT_REFERENCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + deploymentReferencePolicy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest 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.config.v1.DeleteDeploymentGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest 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.config.v1.DeleteDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest 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.config.v1.DeleteDeploymentGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 Delete DeploymentGroup
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeleteDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeleteDeploymentGroupRequest) + com.google.cloud.config.v1.DeleteDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.class, + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeleteDeploymentGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + deploymentReferencePolicy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeleteDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentGroupRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeleteDeploymentGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentGroupRequest build() { + com.google.cloud.config.v1.DeleteDeploymentGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentGroupRequest buildPartial() { + com.google.cloud.config.v1.DeleteDeploymentGroupRequest result = + new com.google.cloud.config.v1.DeleteDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.DeleteDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deploymentReferencePolicy_ = deploymentReferencePolicy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.DeleteDeploymentGroupRequest) { + return mergeFrom((com.google.cloud.config.v1.DeleteDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeleteDeploymentGroupRequest other) { + if (other == com.google.cloud.config.v1.DeleteDeploymentGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (other.deploymentReferencePolicy_ != 0) { + setDeploymentReferencePolicyValue(other.getDeploymentReferencePolicyValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + deploymentReferencePolicy_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of DeploymentGroup in the format
    +     * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +     * 
    + * + * + * 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 DeploymentGroup in the format
    +     * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +     * 
    + * + * + * 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 DeploymentGroup in the format
    +     * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +     * 
    + * + * + * 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 DeploymentGroup in the format
    +     * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +     * 
    + * + * + * 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 DeploymentGroup in the format
    +     * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes after the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes after the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes after the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes after the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes after the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
    +     * Optional. If set to true, any revisions for this deployment group will also
    +     * be deleted. (Otherwise, the request will only work if the deployment group
    +     * has no revisions.)
    +     * 
    + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
    +     * Optional. If set to true, any revisions for this deployment group will also
    +     * be deleted. (Otherwise, the request will only work if the deployment group
    +     * has no revisions.)
    +     * 
    + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If set to true, any revisions for this deployment group will also
    +     * be deleted. (Otherwise, the request will only work if the deployment group
    +     * has no revisions.)
    +     * 
    + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + private int deploymentReferencePolicy_ = 0; + + /** + * + * + *
    +     * Optional. Policy on how to handle referenced deployments when deleting the
    +     * DeploymentGroup.
    +     * If unspecified, the default behavior is to fail the deletion if any
    +     * deployments currently referenced in the `deployment_units` of the
    +     * DeploymentGroup or in the latest revision are not deleted.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentReferencePolicy. + */ + @java.lang.Override + public int getDeploymentReferencePolicyValue() { + return deploymentReferencePolicy_; + } + + /** + * + * + *
    +     * Optional. Policy on how to handle referenced deployments when deleting the
    +     * DeploymentGroup.
    +     * If unspecified, the default behavior is to fail the deletion if any
    +     * deployments currently referenced in the `deployment_units` of the
    +     * DeploymentGroup or in the latest revision are not deleted.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for deploymentReferencePolicy to set. + * @return This builder for chaining. + */ + public Builder setDeploymentReferencePolicyValue(int value) { + deploymentReferencePolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Policy on how to handle referenced deployments when deleting the
    +     * DeploymentGroup.
    +     * If unspecified, the default behavior is to fail the deletion if any
    +     * deployments currently referenced in the `deployment_units` of the
    +     * DeploymentGroup or in the latest revision are not deleted.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentReferencePolicy. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + getDeploymentReferencePolicy() { + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy result = + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + .forNumber(deploymentReferencePolicy_); + return result == null + ? com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Policy on how to handle referenced deployments when deleting the
    +     * DeploymentGroup.
    +     * If unspecified, the default behavior is to fail the deletion if any
    +     * deployments currently referenced in the `deployment_units` of the
    +     * DeploymentGroup or in the latest revision are not deleted.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deploymentReferencePolicy to set. + * @return This builder for chaining. + */ + public Builder setDeploymentReferencePolicy( + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + deploymentReferencePolicy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Policy on how to handle referenced deployments when deleting the
    +     * DeploymentGroup.
    +     * If unspecified, the default behavior is to fail the deletion if any
    +     * deployments currently referenced in the `deployment_units` of the
    +     * DeploymentGroup or in the latest revision are not deleted.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentReferencePolicy() { + bitField0_ = (bitField0_ & ~0x00000008); + deploymentReferencePolicy_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeleteDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeleteDeploymentGroupRequest) + private static final com.google.cloud.config.v1.DeleteDeploymentGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeleteDeploymentGroupRequest(); + } + + public static com.google.cloud.config.v1.DeleteDeploymentGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeploymentGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeleteDeploymentGroupRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeleteDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..22e07142a892 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeleteDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeleteDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeleteDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of DeploymentGroup in the format
    +   * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of DeploymentGroup in the format
    +   * projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup}
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes after the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes after the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * Optional. If set to true, any revisions for this deployment group will also
    +   * be deleted. (Otherwise, the request will only work if the deployment group
    +   * has no revisions.)
    +   * 
    + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); + + /** + * + * + *
    +   * Optional. Policy on how to handle referenced deployments when deleting the
    +   * DeploymentGroup.
    +   * If unspecified, the default behavior is to fail the deletion if any
    +   * deployments currently referenced in the `deployment_units` of the
    +   * DeploymentGroup or in the latest revision are not deleted.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentReferencePolicy. + */ + int getDeploymentReferencePolicyValue(); + + /** + * + * + *
    +   * Optional. Policy on how to handle referenced deployments when deleting the
    +   * DeploymentGroup.
    +   * If unspecified, the default behavior is to fail the deletion if any
    +   * deployments currently referenced in the `deployment_units` of the
    +   * DeploymentGroup or in the latest revision are not deleted.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy deployment_reference_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentReferencePolicy. + */ + com.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy + getDeploymentReferencePolicy(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroup.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroup.java new file mode 100644 index 000000000000..7af2af3faffc --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroup.java @@ -0,0 +1,4163 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like
    + * structure.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentGroup} + */ +@com.google.protobuf.Generated +public final class DeploymentGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeploymentGroup) + DeploymentGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentGroup"); + } + + // Use DeploymentGroup.newBuilder() to construct. + private DeploymentGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentGroup() { + name_ = ""; + state_ = 0; + stateDescription_ = ""; + deploymentUnits_ = java.util.Collections.emptyList(); + provisioningState_ = 0; + provisioningStateDescription_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentGroup.class, + com.google.cloud.config.v1.DeploymentGroup.Builder.class); + } + + /** + * + * + *
    +   * Possible states of a deployment group.
    +   * 
    + * + * Protobuf enum {@code google.cloud.config.v1.DeploymentGroup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value is used if the state is omitted.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The deployment group is being created.
    +     * 
    + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
    +     * The deployment group is healthy.
    +     * 
    + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
    +     * The deployment group is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
    +     * The deployment group is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
    +     * The deployment group has encountered an unexpected error.
    +     * 
    + * + * FAILED = 5; + */ + FAILED(5), + /** + * + * + *
    +     * The deployment group is no longer being actively reconciled.
    +     * This may be the result of recovering the project after deletion.
    +     * 
    + * + * SUSPENDED = 6; + */ + SUSPENDED(6), + /** + * + * + *
    +     * The deployment group has been deleted.
    +     * 
    + * + * DELETED = 7; + */ + DELETED(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
    +     * The default value. This value is used if the state is omitted.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The deployment group is being created.
    +     * 
    + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
    +     * The deployment group is healthy.
    +     * 
    + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
    +     * The deployment group is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
    +     * The deployment group is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + /** + * + * + *
    +     * The deployment group has encountered an unexpected error.
    +     * 
    + * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + /** + * + * + *
    +     * The deployment group is no longer being actively reconciled.
    +     * This may be the result of recovering the project after deletion.
    +     * 
    + * + * SUSPENDED = 6; + */ + public static final int SUSPENDED_VALUE = 6; + + /** + * + * + *
    +     * The deployment group has been deleted.
    +     * 
    + * + * DELETED = 7; + */ + public static final int DELETED_VALUE = 7; + + 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 CREATING; + case 2: + return ACTIVE; + case 3: + return UPDATING; + case 4: + return DELETING; + case 5: + return FAILED; + case 6: + return SUSPENDED; + case 7: + return DELETED; + 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.config.v1.DeploymentGroup.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.config.v1.DeploymentGroup.State) + } + + /** + * + * + *
    +   * Possible provisioning states of a deployment group.
    +   * 
    + * + * Protobuf enum {@code google.cloud.config.v1.DeploymentGroup.ProvisioningState} + */ + public enum ProvisioningState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified provisioning state.
    +     * 
    + * + * PROVISIONING_STATE_UNSPECIFIED = 0; + */ + PROVISIONING_STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The deployment group is being provisioned.
    +     * 
    + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
    +     * The deployment group is provisioned.
    +     * 
    + * + * PROVISIONED = 2; + */ + PROVISIONED(2), + /** + * + * + *
    +     * The deployment group failed to be provisioned.
    +     * 
    + * + * FAILED_TO_PROVISION = 3; + */ + FAILED_TO_PROVISION(3), + /** + * + * + *
    +     * The deployment group is being deprovisioned.
    +     * 
    + * + * DEPROVISIONING = 4; + */ + DEPROVISIONING(4), + /** + * + * + *
    +     * The deployment group is deprovisioned.
    +     * 
    + * + * DEPROVISIONED = 5; + */ + DEPROVISIONED(5), + /** + * + * + *
    +     * The deployment group failed to be deprovisioned.
    +     * 
    + * + * FAILED_TO_DEPROVISION = 6; + */ + FAILED_TO_DEPROVISION(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProvisioningState"); + } + + /** + * + * + *
    +     * Unspecified provisioning state.
    +     * 
    + * + * PROVISIONING_STATE_UNSPECIFIED = 0; + */ + public static final int PROVISIONING_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The deployment group is being provisioned.
    +     * 
    + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
    +     * The deployment group is provisioned.
    +     * 
    + * + * PROVISIONED = 2; + */ + public static final int PROVISIONED_VALUE = 2; + + /** + * + * + *
    +     * The deployment group failed to be provisioned.
    +     * 
    + * + * FAILED_TO_PROVISION = 3; + */ + public static final int FAILED_TO_PROVISION_VALUE = 3; + + /** + * + * + *
    +     * The deployment group is being deprovisioned.
    +     * 
    + * + * DEPROVISIONING = 4; + */ + public static final int DEPROVISIONING_VALUE = 4; + + /** + * + * + *
    +     * The deployment group is deprovisioned.
    +     * 
    + * + * DEPROVISIONED = 5; + */ + public static final int DEPROVISIONED_VALUE = 5; + + /** + * + * + *
    +     * The deployment group failed to be deprovisioned.
    +     * 
    + * + * FAILED_TO_DEPROVISION = 6; + */ + public static final int FAILED_TO_DEPROVISION_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 ProvisioningState 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 ProvisioningState forNumber(int value) { + switch (value) { + case 0: + return PROVISIONING_STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return PROVISIONED; + case 3: + return FAILED_TO_PROVISION; + case 4: + return DEPROVISIONING; + case 5: + return DEPROVISIONED; + case 6: + return FAILED_TO_DEPROVISION; + 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 ProvisioningState findValueByNumber(int number) { + return ProvisioningState.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.config.v1.DeploymentGroup.getDescriptor().getEnumTypes().get(1); + } + + private static final ProvisioningState[] VALUES = values(); + + public static ProvisioningState 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 ProvisioningState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.config.v1.DeploymentGroup.ProvisioningState) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The name of the deployment group.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * 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 deployment group.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
    +   * Output only. Time when the deployment group was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. Time when the deployment group was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
    +   * Output only. Time when the deployment group was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
    +   * Output only. Time when the deployment group was last updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.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. Time when the deployment group was last updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.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. Time when the deployment group was last updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroup_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
    +   * Output only. Current state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +   * Output only. Current state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup.State getState() { + com.google.cloud.config.v1.DeploymentGroup.State result = + com.google.cloud.config.v1.DeploymentGroup.State.forNumber(state_); + return result == null ? com.google.cloud.config.v1.DeploymentGroup.State.UNRECOGNIZED : result; + } + + public static final int STATE_DESCRIPTION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object stateDescription_ = ""; + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDescription. + */ + @java.lang.Override + public java.lang.String getStateDescription() { + java.lang.Object ref = stateDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateDescription_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateDescriptionBytes() { + java.lang.Object ref = stateDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_UNITS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List deploymentUnits_; + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + @java.lang.Override + public java.util.List getDeploymentUnitsList() { + return deploymentUnits_; + } + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + @java.lang.Override + public java.util.List + getDeploymentUnitsOrBuilderList() { + return deploymentUnits_; + } + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + @java.lang.Override + public int getDeploymentUnitsCount() { + return deploymentUnits_.size(); + } + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnit getDeploymentUnits(int index) { + return deploymentUnits_.get(index); + } + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitOrBuilder getDeploymentUnitsOrBuilder(int index) { + return deploymentUnits_.get(index); + } + + public static final int PROVISIONING_STATE_FIELD_NUMBER = 9; + private int provisioningState_ = 0; + + /** + * + * + *
    +   * Output only. The provisioning state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for provisioningState. + */ + @java.lang.Override + public int getProvisioningStateValue() { + return provisioningState_; + } + + /** + * + * + *
    +   * Output only. The provisioning state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningState. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup.ProvisioningState getProvisioningState() { + com.google.cloud.config.v1.DeploymentGroup.ProvisioningState result = + com.google.cloud.config.v1.DeploymentGroup.ProvisioningState.forNumber(provisioningState_); + return result == null + ? com.google.cloud.config.v1.DeploymentGroup.ProvisioningState.UNRECOGNIZED + : result; + } + + public static final int PROVISIONING_STATE_DESCRIPTION_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object provisioningStateDescription_ = ""; + + /** + * + * + *
    +   * Output only. Additional information regarding the current provisioning
    +   * state.
    +   * 
    + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningStateDescription. + */ + @java.lang.Override + public java.lang.String getProvisioningStateDescription() { + java.lang.Object ref = provisioningStateDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provisioningStateDescription_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Additional information regarding the current provisioning
    +   * state.
    +   * 
    + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for provisioningStateDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProvisioningStateDescriptionBytes() { + java.lang.Object ref = provisioningStateDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provisioningStateDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVISIONING_ERROR_FIELD_NUMBER = 11; + private com.google.rpc.Status provisioningError_; + + /** + * + * + *
    +   * Output only. The error status of the deployment group provisioning or
    +   * deprovisioning.
    +   * 
    + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisioningError field is set. + */ + @java.lang.Override + public boolean hasProvisioningError() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. The error status of the deployment group provisioning or
    +   * deprovisioning.
    +   * 
    + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningError. + */ + @java.lang.Override + public com.google.rpc.Status getProvisioningError() { + return provisioningError_ == null + ? com.google.rpc.Status.getDefaultInstance() + : provisioningError_; + } + + /** + * + * + *
    +   * Output only. The error status of the deployment group provisioning or
    +   * deprovisioning.
    +   * 
    + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getProvisioningErrorOrBuilder() { + return provisioningError_ == null + ? com.google.rpc.Status.getDefaultInstance() + : provisioningError_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + if (state_ != com.google.cloud.config.v1.DeploymentGroup.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stateDescription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, stateDescription_); + } + for (int i = 0; i < deploymentUnits_.size(); i++) { + output.writeMessage(8, deploymentUnits_.get(i)); + } + if (provisioningState_ + != com.google.cloud.config.v1.DeploymentGroup.ProvisioningState + .PROVISIONING_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, provisioningState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(provisioningStateDescription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, provisioningStateDescription_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getProvisioningError()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + } + if (state_ != com.google.cloud.config.v1.DeploymentGroup.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stateDescription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, stateDescription_); + } + for (int i = 0; i < deploymentUnits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, deploymentUnits_.get(i)); + } + if (provisioningState_ + != com.google.cloud.config.v1.DeploymentGroup.ProvisioningState + .PROVISIONING_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, provisioningState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(provisioningStateDescription_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(10, provisioningStateDescription_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getProvisioningError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.DeploymentGroup)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeploymentGroup other = + (com.google.cloud.config.v1.DeploymentGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (state_ != other.state_) return false; + if (!getStateDescription().equals(other.getStateDescription())) return false; + if (!getDeploymentUnitsList().equals(other.getDeploymentUnitsList())) return false; + if (provisioningState_ != other.provisioningState_) return false; + if (!getProvisioningStateDescription().equals(other.getProvisioningStateDescription())) + return false; + if (hasProvisioningError() != other.hasProvisioningError()) return false; + if (hasProvisioningError()) { + if (!getProvisioningError().equals(other.getProvisioningError())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStateDescription().hashCode(); + if (getDeploymentUnitsCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentUnitsList().hashCode(); + } + hash = (37 * hash) + PROVISIONING_STATE_FIELD_NUMBER; + hash = (53 * hash) + provisioningState_; + hash = (37 * hash) + PROVISIONING_STATE_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getProvisioningStateDescription().hashCode(); + if (hasProvisioningError()) { + hash = (37 * hash) + PROVISIONING_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getProvisioningError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeploymentGroup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentGroup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentGroup 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.config.v1.DeploymentGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentGroup 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.config.v1.DeploymentGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentGroup 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.config.v1.DeploymentGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 DeploymentGroup is a collection of DeploymentUnits that in a DAG-like
    +   * structure.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeploymentGroup) + com.google.cloud.config.v1.DeploymentGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + case 5: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentGroup.class, + com.google.cloud.config.v1.DeploymentGroup.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeploymentGroup.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(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeploymentUnitsFieldBuilder(); + internalGetProvisioningErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + state_ = 0; + stateDescription_ = ""; + if (deploymentUnitsBuilder_ == null) { + deploymentUnits_ = java.util.Collections.emptyList(); + } else { + deploymentUnits_ = null; + deploymentUnitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + provisioningState_ = 0; + provisioningStateDescription_ = ""; + provisioningError_ = null; + if (provisioningErrorBuilder_ != null) { + provisioningErrorBuilder_.dispose(); + provisioningErrorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup build() { + com.google.cloud.config.v1.DeploymentGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup buildPartial() { + com.google.cloud.config.v1.DeploymentGroup result = + new com.google.cloud.config.v1.DeploymentGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.config.v1.DeploymentGroup result) { + if (deploymentUnitsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + deploymentUnits_ = java.util.Collections.unmodifiableList(deploymentUnits_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.deploymentUnits_ = deploymentUnits_; + } else { + result.deploymentUnits_ = deploymentUnitsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.config.v1.DeploymentGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.stateDescription_ = stateDescription_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.provisioningState_ = provisioningState_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.provisioningStateDescription_ = provisioningStateDescription_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.provisioningError_ = + provisioningErrorBuilder_ == null + ? provisioningError_ + : provisioningErrorBuilder_.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.config.v1.DeploymentGroup) { + return mergeFrom((com.google.cloud.config.v1.DeploymentGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeploymentGroup other) { + if (other == com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStateDescription().isEmpty()) { + stateDescription_ = other.stateDescription_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (deploymentUnitsBuilder_ == null) { + if (!other.deploymentUnits_.isEmpty()) { + if (deploymentUnits_.isEmpty()) { + deploymentUnits_ = other.deploymentUnits_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.addAll(other.deploymentUnits_); + } + onChanged(); + } + } else { + if (!other.deploymentUnits_.isEmpty()) { + if (deploymentUnitsBuilder_.isEmpty()) { + deploymentUnitsBuilder_.dispose(); + deploymentUnitsBuilder_ = null; + deploymentUnits_ = other.deploymentUnits_; + bitField0_ = (bitField0_ & ~0x00000080); + deploymentUnitsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDeploymentUnitsFieldBuilder() + : null; + } else { + deploymentUnitsBuilder_.addAllMessages(other.deploymentUnits_); + } + } + } + if (other.provisioningState_ != 0) { + setProvisioningStateValue(other.getProvisioningStateValue()); + } + if (!other.getProvisioningStateDescription().isEmpty()) { + provisioningStateDescription_ = other.provisioningStateDescription_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasProvisioningError()) { + mergeProvisioningError(other.getProvisioningError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + stateDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.config.v1.DeploymentUnit m = + input.readMessage( + com.google.cloud.config.v1.DeploymentUnit.parser(), extensionRegistry); + if (deploymentUnitsBuilder_ == null) { + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.add(m); + } else { + deploymentUnitsBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + provisioningState_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + provisioningStateDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetProvisioningErrorFieldBuilder().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_ = ""; + + /** + * + * + *
    +     * Identifier. The name of the deployment group.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * 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 deployment group.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * 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 deployment group.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * 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 deployment group.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * 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 deployment group.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.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. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.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. Time when the deployment group was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_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> + 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.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +     * Optional. User-defined metadata for the deployment group.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +     * Optional. User-defined metadata for the deployment group.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +     * Optional. User-defined metadata for the deployment group.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. User-defined metadata for the deployment group.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. User-defined metadata for the deployment group.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. User-defined metadata for the deployment group.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
    +     * Optional. User-defined metadata for the deployment group.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +     * identify deployment group during automation. See
    +     * https://google.aip.dev/148#annotations for details on format and size
    +     * limitations.
    +     * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
    +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +     * identify deployment group during automation. See
    +     * https://google.aip.dev/148#annotations for details on format and size
    +     * limitations.
    +     * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
    +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +     * identify deployment group during automation. See
    +     * https://google.aip.dev/148#annotations for details on format and size
    +     * limitations.
    +     * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +     * identify deployment group during automation. See
    +     * https://google.aip.dev/148#annotations for details on format and size
    +     * limitations.
    +     * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +     * identify deployment group during automation. See
    +     * https://google.aip.dev/148#annotations for details on format and size
    +     * limitations.
    +     * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +     * identify deployment group during automation. See
    +     * https://google.aip.dev/148#annotations for details on format and size
    +     * limitations.
    +     * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
    +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +     * identify deployment group during automation. See
    +     * https://google.aip.dev/148#annotations for details on format and size
    +     * limitations.
    +     * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private int state_ = 0; + + /** + * + * + *
    +     * Output only. Current state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +     * Output only. Current state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Current state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup.State getState() { + com.google.cloud.config.v1.DeploymentGroup.State result = + com.google.cloud.config.v1.DeploymentGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.config.v1.DeploymentGroup.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. Current state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.config.v1.DeploymentGroup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Current state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stateDescription_ = ""; + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDescription. + */ + public java.lang.String getStateDescription() { + java.lang.Object ref = stateDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDescription. + */ + public com.google.protobuf.ByteString getStateDescriptionBytes() { + java.lang.Object ref = stateDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The stateDescription to set. + * @return This builder for chaining. + */ + public Builder setStateDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stateDescription_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStateDescription() { + stateDescription_ = getDefaultInstance().getStateDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for stateDescription to set. + * @return This builder for chaining. + */ + public Builder setStateDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateDescription_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List deploymentUnits_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentUnitsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + deploymentUnits_ = + new java.util.ArrayList(deploymentUnits_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentUnit, + com.google.cloud.config.v1.DeploymentUnit.Builder, + com.google.cloud.config.v1.DeploymentUnitOrBuilder> + deploymentUnitsBuilder_; + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public java.util.List getDeploymentUnitsList() { + if (deploymentUnitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deploymentUnits_); + } else { + return deploymentUnitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public int getDeploymentUnitsCount() { + if (deploymentUnitsBuilder_ == null) { + return deploymentUnits_.size(); + } else { + return deploymentUnitsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public com.google.cloud.config.v1.DeploymentUnit getDeploymentUnits(int index) { + if (deploymentUnitsBuilder_ == null) { + return deploymentUnits_.get(index); + } else { + return deploymentUnitsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder setDeploymentUnits(int index, com.google.cloud.config.v1.DeploymentUnit value) { + if (deploymentUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.set(index, value); + onChanged(); + } else { + deploymentUnitsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder setDeploymentUnits( + int index, com.google.cloud.config.v1.DeploymentUnit.Builder builderForValue) { + if (deploymentUnitsBuilder_ == null) { + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentUnitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder addDeploymentUnits(com.google.cloud.config.v1.DeploymentUnit value) { + if (deploymentUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.add(value); + onChanged(); + } else { + deploymentUnitsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder addDeploymentUnits(int index, com.google.cloud.config.v1.DeploymentUnit value) { + if (deploymentUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.add(index, value); + onChanged(); + } else { + deploymentUnitsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder addDeploymentUnits( + com.google.cloud.config.v1.DeploymentUnit.Builder builderForValue) { + if (deploymentUnitsBuilder_ == null) { + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.add(builderForValue.build()); + onChanged(); + } else { + deploymentUnitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder addDeploymentUnits( + int index, com.google.cloud.config.v1.DeploymentUnit.Builder builderForValue) { + if (deploymentUnitsBuilder_ == null) { + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentUnitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder addAllDeploymentUnits( + java.lang.Iterable values) { + if (deploymentUnitsBuilder_ == null) { + ensureDeploymentUnitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentUnits_); + onChanged(); + } else { + deploymentUnitsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder clearDeploymentUnits() { + if (deploymentUnitsBuilder_ == null) { + deploymentUnits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + deploymentUnitsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public Builder removeDeploymentUnits(int index) { + if (deploymentUnitsBuilder_ == null) { + ensureDeploymentUnitsIsMutable(); + deploymentUnits_.remove(index); + onChanged(); + } else { + deploymentUnitsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public com.google.cloud.config.v1.DeploymentUnit.Builder getDeploymentUnitsBuilder(int index) { + return internalGetDeploymentUnitsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public com.google.cloud.config.v1.DeploymentUnitOrBuilder getDeploymentUnitsOrBuilder( + int index) { + if (deploymentUnitsBuilder_ == null) { + return deploymentUnits_.get(index); + } else { + return deploymentUnitsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public java.util.List + getDeploymentUnitsOrBuilderList() { + if (deploymentUnitsBuilder_ != null) { + return deploymentUnitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deploymentUnits_); + } + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public com.google.cloud.config.v1.DeploymentUnit.Builder addDeploymentUnitsBuilder() { + return internalGetDeploymentUnitsFieldBuilder() + .addBuilder(com.google.cloud.config.v1.DeploymentUnit.getDefaultInstance()); + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public com.google.cloud.config.v1.DeploymentUnit.Builder addDeploymentUnitsBuilder(int index) { + return internalGetDeploymentUnitsFieldBuilder() + .addBuilder(index, com.google.cloud.config.v1.DeploymentUnit.getDefaultInstance()); + } + + /** + * + * + *
    +     * The deployment units of the deployment group in a DAG like structure.
    +     * When a deployment group is being provisioned, the deployment units are
    +     * deployed in a DAG order.
    +     * The provided units must be in a DAG order, otherwise an error will be
    +     * returned.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + public java.util.List + getDeploymentUnitsBuilderList() { + return internalGetDeploymentUnitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentUnit, + com.google.cloud.config.v1.DeploymentUnit.Builder, + com.google.cloud.config.v1.DeploymentUnitOrBuilder> + internalGetDeploymentUnitsFieldBuilder() { + if (deploymentUnitsBuilder_ == null) { + deploymentUnitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentUnit, + com.google.cloud.config.v1.DeploymentUnit.Builder, + com.google.cloud.config.v1.DeploymentUnitOrBuilder>( + deploymentUnits_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + deploymentUnits_ = null; + } + return deploymentUnitsBuilder_; + } + + private int provisioningState_ = 0; + + /** + * + * + *
    +     * Output only. The provisioning state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for provisioningState. + */ + @java.lang.Override + public int getProvisioningStateValue() { + return provisioningState_; + } + + /** + * + * + *
    +     * Output only. The provisioning state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for provisioningState to set. + * @return This builder for chaining. + */ + public Builder setProvisioningStateValue(int value) { + provisioningState_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The provisioning state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningState. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup.ProvisioningState getProvisioningState() { + com.google.cloud.config.v1.DeploymentGroup.ProvisioningState result = + com.google.cloud.config.v1.DeploymentGroup.ProvisioningState.forNumber( + provisioningState_); + return result == null + ? com.google.cloud.config.v1.DeploymentGroup.ProvisioningState.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The provisioning state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The provisioningState to set. + * @return This builder for chaining. + */ + public Builder setProvisioningState( + com.google.cloud.config.v1.DeploymentGroup.ProvisioningState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + provisioningState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The provisioning state of the deployment group.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisioningState() { + bitField0_ = (bitField0_ & ~0x00000100); + provisioningState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object provisioningStateDescription_ = ""; + + /** + * + * + *
    +     * Output only. Additional information regarding the current provisioning
    +     * state.
    +     * 
    + * + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningStateDescription. + */ + public java.lang.String getProvisioningStateDescription() { + java.lang.Object ref = provisioningStateDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provisioningStateDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current provisioning
    +     * state.
    +     * 
    + * + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for provisioningStateDescription. + */ + public com.google.protobuf.ByteString getProvisioningStateDescriptionBytes() { + java.lang.Object ref = provisioningStateDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provisioningStateDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current provisioning
    +     * state.
    +     * 
    + * + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The provisioningStateDescription to set. + * @return This builder for chaining. + */ + public Builder setProvisioningStateDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + provisioningStateDescription_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current provisioning
    +     * state.
    +     * 
    + * + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisioningStateDescription() { + provisioningStateDescription_ = getDefaultInstance().getProvisioningStateDescription(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current provisioning
    +     * state.
    +     * 
    + * + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for provisioningStateDescription to set. + * @return This builder for chaining. + */ + public Builder setProvisioningStateDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provisioningStateDescription_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.rpc.Status provisioningError_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + provisioningErrorBuilder_; + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisioningError field is set. + */ + public boolean hasProvisioningError() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningError. + */ + public com.google.rpc.Status getProvisioningError() { + if (provisioningErrorBuilder_ == null) { + return provisioningError_ == null + ? com.google.rpc.Status.getDefaultInstance() + : provisioningError_; + } else { + return provisioningErrorBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisioningError(com.google.rpc.Status value) { + if (provisioningErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provisioningError_ = value; + } else { + provisioningErrorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisioningError(com.google.rpc.Status.Builder builderForValue) { + if (provisioningErrorBuilder_ == null) { + provisioningError_ = builderForValue.build(); + } else { + provisioningErrorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProvisioningError(com.google.rpc.Status value) { + if (provisioningErrorBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && provisioningError_ != null + && provisioningError_ != com.google.rpc.Status.getDefaultInstance()) { + getProvisioningErrorBuilder().mergeFrom(value); + } else { + provisioningError_ = value; + } + } else { + provisioningErrorBuilder_.mergeFrom(value); + } + if (provisioningError_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProvisioningError() { + bitField0_ = (bitField0_ & ~0x00000400); + provisioningError_ = null; + if (provisioningErrorBuilder_ != null) { + provisioningErrorBuilder_.dispose(); + provisioningErrorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getProvisioningErrorBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetProvisioningErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getProvisioningErrorOrBuilder() { + if (provisioningErrorBuilder_ != null) { + return provisioningErrorBuilder_.getMessageOrBuilder(); + } else { + return provisioningError_ == null + ? com.google.rpc.Status.getDefaultInstance() + : provisioningError_; + } + } + + /** + * + * + *
    +     * Output only. The error status of the deployment group provisioning or
    +     * deprovisioning.
    +     * 
    + * + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetProvisioningErrorFieldBuilder() { + if (provisioningErrorBuilder_ == null) { + provisioningErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getProvisioningError(), getParentForChildren(), isClean()); + provisioningError_ = null; + } + return provisioningErrorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeploymentGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeploymentGroup) + private static final com.google.cloud.config.v1.DeploymentGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeploymentGroup(); + } + + public static com.google.cloud.config.v1.DeploymentGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupName.java new file mode 100644 index 000000000000..4ea6f2485801 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupName.java @@ -0,0 +1,227 @@ +/* + * 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.config.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DeploymentGroupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DEPLOYMENT_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/deploymentGroups/{deployment_group}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String deploymentGroup; + + @Deprecated + protected DeploymentGroupName() { + project = null; + location = null; + deploymentGroup = null; + } + + private DeploymentGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + deploymentGroup = Preconditions.checkNotNull(builder.getDeploymentGroup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDeploymentGroup() { + return deploymentGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeploymentGroupName of(String project, String location, String deploymentGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDeploymentGroup(deploymentGroup) + .build(); + } + + public static String format(String project, String location, String deploymentGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDeploymentGroup(deploymentGroup) + .build() + .toString(); + } + + public static DeploymentGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DEPLOYMENT_GROUP.validatedMatch( + formattedString, "DeploymentGroupName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("deployment_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DeploymentGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DEPLOYMENT_GROUP.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 (deploymentGroup != null) { + fieldMapBuilder.put("deployment_group", deploymentGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DEPLOYMENT_GROUP.instantiate( + "project", project, "location", location, "deployment_group", deploymentGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeploymentGroupName that = ((DeploymentGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.deploymentGroup, that.deploymentGroup); + } + 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(deploymentGroup); + return h; + } + + /** Builder for projects/{project}/locations/{location}/deploymentGroups/{deployment_group}. */ + public static class Builder { + private String project; + private String location; + private String deploymentGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDeploymentGroup() { + return deploymentGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDeploymentGroup(String deploymentGroup) { + this.deploymentGroup = deploymentGroup; + return this; + } + + private Builder(DeploymentGroupName deploymentGroupName) { + this.project = deploymentGroupName.project; + this.location = deploymentGroupName.location; + this.deploymentGroup = deploymentGroupName.deploymentGroup; + } + + public DeploymentGroupName build() { + return new DeploymentGroupName(this); + } + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupOrBuilder.java new file mode 100644 index 000000000000..52bb66f9e668 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupOrBuilder.java @@ -0,0 +1,519 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeploymentGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeploymentGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The name of the deployment group.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The name of the deployment group.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. Time when the deployment group was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the deployment group was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the deployment group was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. Time when the deployment group was last updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
    +   * Output only. Time when the deployment group was last updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
    +   * Output only. Time when the deployment group was last updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. User-defined metadata for the deployment group.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
    +   * identify deployment group during automation. See
    +   * https://google.aip.dev/148#annotations for details on format and size
    +   * limitations.
    +   * 
    + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Output only. Current state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
    +   * Output only. Current state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.config.v1.DeploymentGroup.State getState(); + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDescription. + */ + java.lang.String getStateDescription(); + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDescription. + */ + com.google.protobuf.ByteString getStateDescriptionBytes(); + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + java.util.List getDeploymentUnitsList(); + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + com.google.cloud.config.v1.DeploymentUnit getDeploymentUnits(int index); + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + int getDeploymentUnitsCount(); + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + java.util.List + getDeploymentUnitsOrBuilderList(); + + /** + * + * + *
    +   * The deployment units of the deployment group in a DAG like structure.
    +   * When a deployment group is being provisioned, the deployment units are
    +   * deployed in a DAG order.
    +   * The provided units must be in a DAG order, otherwise an error will be
    +   * returned.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8; + */ + com.google.cloud.config.v1.DeploymentUnitOrBuilder getDeploymentUnitsOrBuilder(int index); + + /** + * + * + *
    +   * Output only. The provisioning state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for provisioningState. + */ + int getProvisioningStateValue(); + + /** + * + * + *
    +   * Output only. The provisioning state of the deployment group.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningState. + */ + com.google.cloud.config.v1.DeploymentGroup.ProvisioningState getProvisioningState(); + + /** + * + * + *
    +   * Output only. Additional information regarding the current provisioning
    +   * state.
    +   * 
    + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningStateDescription. + */ + java.lang.String getProvisioningStateDescription(); + + /** + * + * + *
    +   * Output only. Additional information regarding the current provisioning
    +   * state.
    +   * 
    + * + * string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for provisioningStateDescription. + */ + com.google.protobuf.ByteString getProvisioningStateDescriptionBytes(); + + /** + * + * + *
    +   * Output only. The error status of the deployment group provisioning or
    +   * deprovisioning.
    +   * 
    + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisioningError field is set. + */ + boolean hasProvisioningError(); + + /** + * + * + *
    +   * Output only. The error status of the deployment group provisioning or
    +   * deprovisioning.
    +   * 
    + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningError. + */ + com.google.rpc.Status getProvisioningError(); + + /** + * + * + *
    +   * Output only. The error status of the deployment group provisioning or
    +   * deprovisioning.
    +   * 
    + * + * .google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getProvisioningErrorOrBuilder(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevision.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevision.java new file mode 100644 index 000000000000..1da18557046a --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevision.java @@ -0,0 +1,1527 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * A DeploymentGroupRevision represents a snapshot of a
    + * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] at a given point in
    + * time, created when a DeploymentGroup is provisioned or deprovisioned.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentGroupRevision} + */ +@com.google.protobuf.Generated +public final class DeploymentGroupRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeploymentGroupRevision) + DeploymentGroupRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentGroupRevision"); + } + + // Use DeploymentGroupRevision.newBuilder() to construct. + private DeploymentGroupRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentGroupRevision() { + name_ = ""; + alternativeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroupRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroupRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentGroupRevision.class, + com.google.cloud.config.v1.DeploymentGroupRevision.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 deployment group revision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/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 deployment group revision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/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 SNAPSHOT_FIELD_NUMBER = 2; + private com.google.cloud.config.v1.DeploymentGroup snapshot_; + + /** + * + * + *
    +   * Output only. The snapshot of the deployment group at this revision.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.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 deployment group at this revision.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup getSnapshot() { + return snapshot_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
    +   * Output only. The snapshot of the deployment group at this revision.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : snapshot_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
    +   * Output only. Time when the deployment group revision was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. Time when the deployment group revision was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
    +   * Output only. Time when the deployment group revision was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int ALTERNATIVE_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList alternativeIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the alternativeIds. + */ + public com.google.protobuf.ProtocolStringList getAlternativeIdsList() { + return alternativeIds_; + } + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of alternativeIds. + */ + public int getAlternativeIdsCount() { + return alternativeIds_.size(); + } + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The alternativeIds at the given index. + */ + public java.lang.String getAlternativeIds(int index) { + return alternativeIds_.get(index); + } + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the alternativeIds at the given index. + */ + public com.google.protobuf.ByteString getAlternativeIdsBytes(int index) { + return alternativeIds_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getCreateTime()); + } + for (int i = 0; i < alternativeIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, alternativeIds_.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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < alternativeIds_.size(); i++) { + dataSize += computeStringSizeNoTag(alternativeIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAlternativeIdsList().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.config.v1.DeploymentGroupRevision)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeploymentGroupRevision other = + (com.google.cloud.config.v1.DeploymentGroupRevision) obj; + + if (!getName().equals(other.getName())) 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 (!getAlternativeIdsList().equals(other.getAlternativeIdsList())) return false; + if (!getUnknownFields().equals(other.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 (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 (getAlternativeIdsCount() > 0) { + hash = (37 * hash) + ALTERNATIVE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAlternativeIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision 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.config.v1.DeploymentGroupRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision 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.config.v1.DeploymentGroupRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision 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.config.v1.DeploymentGroupRevision prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 DeploymentGroupRevision represents a snapshot of a
    +   * [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] at a given point in
    +   * time, created when a DeploymentGroup is provisioned or deprovisioned.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentGroupRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeploymentGroupRevision) + com.google.cloud.config.v1.DeploymentGroupRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroupRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroupRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentGroupRevision.class, + com.google.cloud.config.v1.DeploymentGroupRevision.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeploymentGroupRevision.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_ = ""; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + alternativeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentGroupRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupRevision getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeploymentGroupRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupRevision build() { + com.google.cloud.config.v1.DeploymentGroupRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupRevision buildPartial() { + com.google.cloud.config.v1.DeploymentGroupRevision result = + new com.google.cloud.config.v1.DeploymentGroupRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.DeploymentGroupRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + alternativeIds_.makeImmutable(); + result.alternativeIds_ = alternativeIds_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.DeploymentGroupRevision) { + return mergeFrom((com.google.cloud.config.v1.DeploymentGroupRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeploymentGroupRevision other) { + if (other == com.google.cloud.config.v1.DeploymentGroupRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.alternativeIds_.isEmpty()) { + if (alternativeIds_.isEmpty()) { + alternativeIds_ = other.alternativeIds_; + bitField0_ |= 0x00000008; + } else { + ensureAlternativeIdsIsMutable(); + alternativeIds_.addAll(other.alternativeIds_); + } + 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: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAlternativeIdsIsMutable(); + alternativeIds_.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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The name of the deployment group revision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/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 deployment group revision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/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 deployment group revision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/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 deployment group revision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/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 deployment group revision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/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 com.google.cloud.config.v1.DeploymentGroup snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + snapshotBuilder_; + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.config.v1.DeploymentGroup getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.config.v1.DeploymentGroup value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.config.v1.DeploymentGroup.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot(com.google.cloud.config.v1.DeploymentGroup value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && snapshot_ != null + && snapshot_ != com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000002); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentGroup.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
    +     * Output only. The snapshot of the deployment group at this revision.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder>( + 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. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
    +     * Output only. Time when the deployment group revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_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> + 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 alternativeIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAlternativeIdsIsMutable() { + if (!alternativeIds_.isModifiable()) { + alternativeIds_ = new com.google.protobuf.LazyStringArrayList(alternativeIds_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the alternativeIds. + */ + public com.google.protobuf.ProtocolStringList getAlternativeIdsList() { + alternativeIds_.makeImmutable(); + return alternativeIds_; + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of alternativeIds. + */ + public int getAlternativeIdsCount() { + return alternativeIds_.size(); + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The alternativeIds at the given index. + */ + public java.lang.String getAlternativeIds(int index) { + return alternativeIds_.get(index); + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the alternativeIds at the given index. + */ + public com.google.protobuf.ByteString getAlternativeIdsBytes(int index) { + return alternativeIds_.getByteString(index); + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The alternativeIds to set. + * @return This builder for chaining. + */ + public Builder setAlternativeIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternativeIdsIsMutable(); + alternativeIds_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The alternativeIds to add. + * @return This builder for chaining. + */ + public Builder addAlternativeIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternativeIdsIsMutable(); + alternativeIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The alternativeIds to add. + * @return This builder for chaining. + */ + public Builder addAllAlternativeIds(java.lang.Iterable values) { + ensureAlternativeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternativeIds_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAlternativeIds() { + alternativeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The alternative IDs of the deployment group revision.
    +     * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the alternativeIds to add. + * @return This builder for chaining. + */ + public Builder addAlternativeIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAlternativeIdsIsMutable(); + alternativeIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeploymentGroupRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeploymentGroupRevision) + private static final com.google.cloud.config.v1.DeploymentGroupRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeploymentGroupRevision(); + } + + public static com.google.cloud.config.v1.DeploymentGroupRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentGroupRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionName.java new file mode 100644 index 000000000000..50a5cacf8405 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionName.java @@ -0,0 +1,270 @@ +/* + * 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.config.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DeploymentGroupRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DEPLOYMENT_GROUP_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String deploymentGroup; + private final String revision; + + @Deprecated + protected DeploymentGroupRevisionName() { + project = null; + location = null; + deploymentGroup = null; + revision = null; + } + + private DeploymentGroupRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + deploymentGroup = Preconditions.checkNotNull(builder.getDeploymentGroup()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDeploymentGroup() { + return deploymentGroup; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeploymentGroupRevisionName of( + String project, String location, String deploymentGroup, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDeploymentGroup(deploymentGroup) + .setRevision(revision) + .build(); + } + + public static String format( + String project, String location, String deploymentGroup, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDeploymentGroup(deploymentGroup) + .setRevision(revision) + .build() + .toString(); + } + + public static DeploymentGroupRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DEPLOYMENT_GROUP_REVISION.validatedMatch( + formattedString, + "DeploymentGroupRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("deployment_group"), + 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 values) { + List list = new ArrayList<>(values.size()); + for (DeploymentGroupRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DEPLOYMENT_GROUP_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 (deploymentGroup != null) { + fieldMapBuilder.put("deployment_group", deploymentGroup); + } + 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_DEPLOYMENT_GROUP_REVISION.instantiate( + "project", + project, + "location", + location, + "deployment_group", + deploymentGroup, + "revision", + revision); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeploymentGroupRevisionName that = ((DeploymentGroupRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.deploymentGroup, that.deploymentGroup) + && 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(deploymentGroup); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String deploymentGroup; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDeploymentGroup() { + return deploymentGroup; + } + + 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 setDeploymentGroup(String deploymentGroup) { + this.deploymentGroup = deploymentGroup; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(DeploymentGroupRevisionName deploymentGroupRevisionName) { + this.project = deploymentGroupRevisionName.project; + this.location = deploymentGroupRevisionName.location; + this.deploymentGroup = deploymentGroupRevisionName.deploymentGroup; + this.revision = deploymentGroupRevisionName.revision; + } + + public DeploymentGroupRevisionName build() { + return new DeploymentGroupRevisionName(this); + } + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionOrBuilder.java new file mode 100644 index 000000000000..f29c3262a5e3 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionOrBuilder.java @@ -0,0 +1,195 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeploymentGroupRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeploymentGroupRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The name of the deployment group revision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The name of the deployment group revision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The snapshot of the deployment group at this revision.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
    +   * Output only. The snapshot of the deployment group at this revision.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.config.v1.DeploymentGroup getSnapshot(); + + /** + * + * + *
    +   * Output only. The snapshot of the deployment group at this revision.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.DeploymentGroupOrBuilder getSnapshotOrBuilder(); + + /** + * + * + *
    +   * Output only. Time when the deployment group revision was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the deployment group revision was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the deployment group revision was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the alternativeIds. + */ + java.util.List getAlternativeIdsList(); + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of alternativeIds. + */ + int getAlternativeIdsCount(); + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The alternativeIds at the given index. + */ + java.lang.String getAlternativeIds(int index); + + /** + * + * + *
    +   * Output only. The alternative IDs of the deployment group revision.
    +   * 
    + * + * repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the alternativeIds at the given index. + */ + com.google.protobuf.ByteString getAlternativeIdsBytes(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOperationSummary.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOperationSummary.java new file mode 100644 index 000000000000..c576b80f3dbf --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOperationSummary.java @@ -0,0 +1,1382 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The summary of the deployment operation.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentOperationSummary} + */ +@com.google.protobuf.Generated +public final class DeploymentOperationSummary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeploymentOperationSummary) + DeploymentOperationSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentOperationSummary"); + } + + // Use DeploymentOperationSummary.newBuilder() to construct. + private DeploymentOperationSummary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentOperationSummary() { + deploymentStep_ = 0; + build_ = ""; + logs_ = ""; + content_ = ""; + artifacts_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentOperationSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentOperationSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentOperationSummary.class, + com.google.cloud.config.v1.DeploymentOperationSummary.Builder.class); + } + + public static final int DEPLOYMENT_STEP_FIELD_NUMBER = 1; + private int deploymentStep_ = 0; + + /** + * + * + *
    +   * Output only. The current step the deployment operation is running.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentStep. + */ + @java.lang.Override + public int getDeploymentStepValue() { + return deploymentStep_; + } + + /** + * + * + *
    +   * Output only. The current step the deployment operation is running.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentStep. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep getDeploymentStep() { + com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep result = + com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep.forNumber( + deploymentStep_); + return result == null + ? com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep.UNRECOGNIZED + : result; + } + + public static final int BUILD_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object build_ = ""; + + /** + * + * + *
    +   * Output only. Cloud Build instance UUID associated with this operation.
    +   * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The build. + */ + @java.lang.Override + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Cloud Build instance UUID associated with this operation.
    +   * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for build. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object logs_ = ""; + + /** + * + * + *
    +   * Output only. Location of Deployment operations logs in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The logs. + */ + @java.lang.Override + public java.lang.String getLogs() { + java.lang.Object ref = logs_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logs_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Location of Deployment operations logs in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for logs. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogsBytes() { + java.lang.Object ref = logs_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + + /** + * + * + *
    +   * Output only. Location of Deployment operations content in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Location of Deployment operations content in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifacts_ = ""; + + /** + * + * + *
    +   * Output only. Location of Deployment operations artifacts in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifacts. + */ + @java.lang.Override + public java.lang.String getArtifacts() { + java.lang.Object ref = artifacts_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifacts_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Location of Deployment operations artifacts in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifacts. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactsBytes() { + java.lang.Object ref = artifacts_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifacts_ = 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 (deploymentStep_ + != com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep + .DEPLOYMENT_STEP_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, deploymentStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, build_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logs_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, logs_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, content_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(artifacts_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, artifacts_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deploymentStep_ + != com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep + .DEPLOYMENT_STEP_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deploymentStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, build_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logs_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, logs_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, content_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(artifacts_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, artifacts_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.DeploymentOperationSummary)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeploymentOperationSummary other = + (com.google.cloud.config.v1.DeploymentOperationSummary) obj; + + if (deploymentStep_ != other.deploymentStep_) return false; + if (!getBuild().equals(other.getBuild())) return false; + if (!getLogs().equals(other.getLogs())) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getArtifacts().equals(other.getArtifacts())) return false; + if (!getUnknownFields().equals(other.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) + DEPLOYMENT_STEP_FIELD_NUMBER; + hash = (53 * hash) + deploymentStep_; + hash = (37 * hash) + BUILD_FIELD_NUMBER; + hash = (53 * hash) + getBuild().hashCode(); + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogs().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifacts().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary 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.config.v1.DeploymentOperationSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary 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.config.v1.DeploymentOperationSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary 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.config.v1.DeploymentOperationSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 summary of the deployment operation.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentOperationSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeploymentOperationSummary) + com.google.cloud.config.v1.DeploymentOperationSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentOperationSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentOperationSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentOperationSummary.class, + com.google.cloud.config.v1.DeploymentOperationSummary.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeploymentOperationSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deploymentStep_ = 0; + build_ = ""; + logs_ = ""; + content_ = ""; + artifacts_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentOperationSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationSummary getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeploymentOperationSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationSummary build() { + com.google.cloud.config.v1.DeploymentOperationSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationSummary buildPartial() { + com.google.cloud.config.v1.DeploymentOperationSummary result = + new com.google.cloud.config.v1.DeploymentOperationSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.DeploymentOperationSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deploymentStep_ = deploymentStep_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.build_ = build_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.logs_ = logs_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.artifacts_ = artifacts_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.DeploymentOperationSummary) { + return mergeFrom((com.google.cloud.config.v1.DeploymentOperationSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeploymentOperationSummary other) { + if (other == com.google.cloud.config.v1.DeploymentOperationSummary.getDefaultInstance()) + return this; + if (other.deploymentStep_ != 0) { + setDeploymentStepValue(other.getDeploymentStepValue()); + } + if (!other.getBuild().isEmpty()) { + build_ = other.build_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLogs().isEmpty()) { + logs_ = other.logs_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getArtifacts().isEmpty()) { + artifacts_ = other.artifacts_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + deploymentStep_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + build_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + logs_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + artifacts_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int deploymentStep_ = 0; + + /** + * + * + *
    +     * Output only. The current step the deployment operation is running.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentStep. + */ + @java.lang.Override + public int getDeploymentStepValue() { + return deploymentStep_; + } + + /** + * + * + *
    +     * Output only. The current step the deployment operation is running.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStepValue(int value) { + deploymentStep_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The current step the deployment operation is running.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentStep. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep + getDeploymentStep() { + com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep result = + com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep.forNumber( + deploymentStep_); + return result == null + ? com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The current step the deployment operation is running.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStep( + com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + deploymentStep_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The current step the deployment operation is running.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentStep() { + bitField0_ = (bitField0_ & ~0x00000001); + deploymentStep_ = 0; + onChanged(); + return this; + } + + private java.lang.Object build_ = ""; + + /** + * + * + *
    +     * Output only. Cloud Build instance UUID associated with this operation.
    +     * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The build. + */ + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Cloud Build instance UUID associated with this operation.
    +     * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for build. + */ + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Cloud Build instance UUID associated with this operation.
    +     * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The build to set. + * @return This builder for chaining. + */ + public Builder setBuild(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + build_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Cloud Build instance UUID associated with this operation.
    +     * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBuild() { + build_ = getDefaultInstance().getBuild(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Cloud Build instance UUID associated with this operation.
    +     * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for build to set. + * @return This builder for chaining. + */ + public Builder setBuildBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object logs_ = ""; + + /** + * + * + *
    +     * Output only. Location of Deployment operations logs in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The logs. + */ + public java.lang.String getLogs() { + java.lang.Object ref = logs_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logs_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations logs in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for logs. + */ + public com.google.protobuf.ByteString getLogsBytes() { + java.lang.Object ref = logs_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations logs in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The logs to set. + * @return This builder for chaining. + */ + public Builder setLogs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logs_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations logs in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLogs() { + logs_ = getDefaultInstance().getLogs(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations logs in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for logs to set. + * @return This builder for chaining. + */ + public Builder setLogsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logs_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * + * + *
    +     * Output only. Location of Deployment operations content in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations content in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations content in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations content in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations content in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object artifacts_ = ""; + + /** + * + * + *
    +     * Output only. Location of Deployment operations artifacts in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifacts. + */ + public java.lang.String getArtifacts() { + java.lang.Object ref = artifacts_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifacts_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations artifacts in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifacts. + */ + public com.google.protobuf.ByteString getArtifactsBytes() { + java.lang.Object ref = artifacts_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifacts_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations artifacts in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The artifacts to set. + * @return This builder for chaining. + */ + public Builder setArtifacts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifacts_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations artifacts in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearArtifacts() { + artifacts_ = getDefaultInstance().getArtifacts(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Location of Deployment operations artifacts in
    +     * `gs://{bucket}/{object}` format.
    +     * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for artifacts to set. + * @return This builder for chaining. + */ + public Builder setArtifactsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifacts_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeploymentOperationSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeploymentOperationSummary) + private static final com.google.cloud.config.v1.DeploymentOperationSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeploymentOperationSummary(); + } + + public static com.google.cloud.config.v1.DeploymentOperationSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentOperationSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOperationSummaryOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOperationSummaryOrBuilder.java new file mode 100644 index 000000000000..84a3210e681f --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOperationSummaryOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeploymentOperationSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeploymentOperationSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The current step the deployment operation is running.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentStep. + */ + int getDeploymentStepValue(); + + /** + * + * + *
    +   * Output only. The current step the deployment operation is running.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentStep. + */ + com.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep getDeploymentStep(); + + /** + * + * + *
    +   * Output only. Cloud Build instance UUID associated with this operation.
    +   * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The build. + */ + java.lang.String getBuild(); + + /** + * + * + *
    +   * Output only. Cloud Build instance UUID associated with this operation.
    +   * 
    + * + * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for build. + */ + com.google.protobuf.ByteString getBuildBytes(); + + /** + * + * + *
    +   * Output only. Location of Deployment operations logs in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The logs. + */ + java.lang.String getLogs(); + + /** + * + * + *
    +   * Output only. Location of Deployment operations logs in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for logs. + */ + com.google.protobuf.ByteString getLogsBytes(); + + /** + * + * + *
    +   * Output only. Location of Deployment operations content in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
    +   * Output only. Location of Deployment operations content in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string content = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
    +   * Output only. Location of Deployment operations artifacts in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifacts. + */ + java.lang.String getArtifacts(); + + /** + * + * + *
    +   * Output only. Location of Deployment operations artifacts in
    +   * `gs://{bucket}/{object}` format.
    +   * 
    + * + * string artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifacts. + */ + com.google.protobuf.ByteString getArtifactsBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSource.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSource.java new file mode 100644 index 000000000000..58a7738581d4 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSource.java @@ -0,0 +1,826 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * Configuration for a value sourced from a Deployment.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentSource} + */ +@com.google.protobuf.Generated +public final class DeploymentSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeploymentSource) + DeploymentSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentSource"); + } + + // Use DeploymentSource.newBuilder() to construct. + private DeploymentSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentSource() { + deployment_ = ""; + outputName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentSource.class, + com.google.cloud.config.v1.DeploymentSource.Builder.class); + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the source Deployment to import the output
    +   * from. Format:
    +   * projects/{project}/locations/{location}/deployments/{deployment} The source
    +   * deployment must be in the same project and location.
    +   * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The resource name of the source Deployment to import the output
    +   * from. Format:
    +   * projects/{project}/locations/{location}/deployments/{deployment} The source
    +   * deployment must be in the same project and location.
    +   * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputName_ = ""; + + /** + * + * + *
    +   * Required. The name of the output variable in the source deployment's latest
    +   * successfully applied revision.
    +   * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputName. + */ + @java.lang.Override + public java.lang.String getOutputName() { + java.lang.Object ref = outputName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the output variable in the source deployment's latest
    +   * successfully applied revision.
    +   * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputNameBytes() { + java.lang.Object ref = outputName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputName_ = 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(deployment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, outputName_); + } + 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(deployment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, outputName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.DeploymentSource)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeploymentSource other = + (com.google.cloud.config.v1.DeploymentSource) obj; + + if (!getDeployment().equals(other.getDeployment())) return false; + if (!getOutputName().equals(other.getOutputName())) return false; + if (!getUnknownFields().equals(other.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) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (37 * hash) + OUTPUT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOutputName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeploymentSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentSource 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.config.v1.DeploymentSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentSource 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.config.v1.DeploymentSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentSource 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.config.v1.DeploymentSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 value sourced from a Deployment.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeploymentSource) + com.google.cloud.config.v1.DeploymentSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentSource.class, + com.google.cloud.config.v1.DeploymentSource.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeploymentSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployment_ = ""; + outputName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSource getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeploymentSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSource build() { + com.google.cloud.config.v1.DeploymentSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSource buildPartial() { + com.google.cloud.config.v1.DeploymentSource result = + new com.google.cloud.config.v1.DeploymentSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.DeploymentSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployment_ = deployment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputName_ = outputName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.DeploymentSource) { + return mergeFrom((com.google.cloud.config.v1.DeploymentSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeploymentSource other) { + if (other == com.google.cloud.config.v1.DeploymentSource.getDefaultInstance()) return this; + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOutputName().isEmpty()) { + outputName_ = other.outputName_; + 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: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + outputName_ = 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 deployment_ = ""; + + /** + * + * + *
    +     * Required. The resource name of the source Deployment to import the output
    +     * from. Format:
    +     * projects/{project}/locations/{location}/deployments/{deployment} The source
    +     * deployment must be in the same project and location.
    +     * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the source Deployment to import the output
    +     * from. Format:
    +     * projects/{project}/locations/{location}/deployments/{deployment} The source
    +     * deployment must be in the same project and location.
    +     * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the source Deployment to import the output
    +     * from. Format:
    +     * projects/{project}/locations/{location}/deployments/{deployment} The source
    +     * deployment must be in the same project and location.
    +     * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the source Deployment to import the output
    +     * from. Format:
    +     * projects/{project}/locations/{location}/deployments/{deployment} The source
    +     * deployment must be in the same project and location.
    +     * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the source Deployment to import the output
    +     * from. Format:
    +     * projects/{project}/locations/{location}/deployments/{deployment} The source
    +     * deployment must be in the same project and location.
    +     * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object outputName_ = ""; + + /** + * + * + *
    +     * Required. The name of the output variable in the source deployment's latest
    +     * successfully applied revision.
    +     * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputName. + */ + public java.lang.String getOutputName() { + java.lang.Object ref = outputName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the output variable in the source deployment's latest
    +     * successfully applied revision.
    +     * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputName. + */ + public com.google.protobuf.ByteString getOutputNameBytes() { + java.lang.Object ref = outputName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the output variable in the source deployment's latest
    +     * successfully applied revision.
    +     * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The outputName to set. + * @return This builder for chaining. + */ + public Builder setOutputName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the output variable in the source deployment's latest
    +     * successfully applied revision.
    +     * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOutputName() { + outputName_ = getDefaultInstance().getOutputName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the output variable in the source deployment's latest
    +     * successfully applied revision.
    +     * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for outputName to set. + * @return This builder for chaining. + */ + public Builder setOutputNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeploymentSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeploymentSource) + private static final com.google.cloud.config.v1.DeploymentSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeploymentSource(); + } + + public static com.google.cloud.config.v1.DeploymentSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSourceOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSourceOrBuilder.java new file mode 100644 index 000000000000..47316a4418f8 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSourceOrBuilder.java @@ -0,0 +1,92 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeploymentSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeploymentSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the source Deployment to import the output
    +   * from. Format:
    +   * projects/{project}/locations/{location}/deployments/{deployment} The source
    +   * deployment must be in the same project and location.
    +   * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
    +   * Required. The resource name of the source Deployment to import the output
    +   * from. Format:
    +   * projects/{project}/locations/{location}/deployments/{deployment} The source
    +   * deployment must be in the same project and location.
    +   * 
    + * + * + * string deployment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
    +   * Required. The name of the output variable in the source deployment's latest
    +   * successfully applied revision.
    +   * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputName. + */ + java.lang.String getOutputName(); + + /** + * + * + *
    +   * Required. The name of the output variable in the source deployment's latest
    +   * successfully applied revision.
    +   * 
    + * + * string output_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputName. + */ + com.google.protobuf.ByteString getOutputNameBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSpec.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSpec.java new file mode 100644 index 000000000000..6eb3607701d5 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSpec.java @@ -0,0 +1,918 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * Spec for a deployment to be created.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentSpec} + */ +@com.google.protobuf.Generated +public final class DeploymentSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeploymentSpec) + DeploymentSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentSpec"); + } + + // Use DeploymentSpec.newBuilder() to construct. + private DeploymentSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentSpec() { + deploymentId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentSpec.class, + com.google.cloud.config.v1.DeploymentSpec.Builder.class); + } + + private int bitField0_; + public static final int DEPLOYMENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentId_ = ""; + + /** + * + * + *
    +   * Required. The id of the deployment to be created which doesn't include the
    +   * project id and location.
    +   * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. + */ + @java.lang.Override + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The id of the deployment to be created which doesn't include the
    +   * project id and location.
    +   * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 2; + private com.google.cloud.config.v1.Deployment deployment_; + + /** + * + * + *
    +   * Required. The deployment to be created.
    +   * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The deployment to be created.
    +   * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.config.v1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } + + /** + * + * + *
    +   * Required. The deployment to be created.
    +   * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(deploymentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDeployment()); + } + 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(deploymentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, deploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeployment()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.DeploymentSpec)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeploymentSpec other = + (com.google.cloud.config.v1.DeploymentSpec) obj; + + if (!getDeploymentId().equals(other.getDeploymentId())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentId().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.config.v1.DeploymentSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentSpec 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.config.v1.DeploymentSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentSpec 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.config.v1.DeploymentSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentSpec 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.config.v1.DeploymentSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * Spec for a deployment to be created.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeploymentSpec) + com.google.cloud.config.v1.DeploymentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentSpec.class, + com.google.cloud.config.v1.DeploymentSpec.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeploymentSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deploymentId_ = ""; + 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.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSpec getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeploymentSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSpec build() { + com.google.cloud.config.v1.DeploymentSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSpec buildPartial() { + com.google.cloud.config.v1.DeploymentSpec result = + new com.google.cloud.config.v1.DeploymentSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.DeploymentSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deploymentId_ = deploymentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.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.config.v1.DeploymentSpec) { + return mergeFrom((com.google.cloud.config.v1.DeploymentSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeploymentSpec other) { + if (other == com.google.cloud.config.v1.DeploymentSpec.getDefaultInstance()) return this; + if (!other.getDeploymentId().isEmpty()) { + deploymentId_ = other.deploymentId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + deploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object deploymentId_ = ""; + + /** + * + * + *
    +     * Required. The id of the deployment to be created which doesn't include the
    +     * project id and location.
    +     * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. + */ + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The id of the deployment to be created which doesn't include the
    +     * project id and location.
    +     * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. + */ + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The id of the deployment to be created which doesn't include the
    +     * project id and location.
    +     * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The id of the deployment to be created which doesn't include the
    +     * project id and location.
    +     * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentId() { + deploymentId_ = getDefaultInstance().getDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The id of the deployment to be created which doesn't include the
    +     * project id and location.
    +     * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.config.v1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Deployment, + com.google.cloud.config.v1.Deployment.Builder, + com.google.cloud.config.v1.DeploymentOrBuilder> + deploymentBuilder_; + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + public com.google.cloud.config.v1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.config.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.config.v1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployment(com.google.cloud.config.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && deployment_ != null + && deployment_ != com.google.cloud.config.v1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + if (deployment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000002); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.config.v1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.config.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } + } + + /** + * + * + *
    +     * Required. The deployment to be created.
    +     * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Deployment, + com.google.cloud.config.v1.Deployment.Builder, + com.google.cloud.config.v1.DeploymentOrBuilder> + internalGetDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Deployment, + com.google.cloud.config.v1.Deployment.Builder, + com.google.cloud.config.v1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeploymentSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeploymentSpec) + private static final com.google.cloud.config.v1.DeploymentSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeploymentSpec(); + } + + public static com.google.cloud.config.v1.DeploymentSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSpecOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSpecOrBuilder.java new file mode 100644 index 000000000000..d729c407bb4b --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentSpecOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeploymentSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeploymentSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The id of the deployment to be created which doesn't include the
    +   * project id and location.
    +   * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. + */ + java.lang.String getDeploymentId(); + + /** + * + * + *
    +   * Required. The id of the deployment to be created which doesn't include the
    +   * project id and location.
    +   * 
    + * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. + */ + com.google.protobuf.ByteString getDeploymentIdBytes(); + + /** + * + * + *
    +   * Required. The deployment to be created.
    +   * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + + /** + * + * + *
    +   * Required. The deployment to be created.
    +   * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + com.google.cloud.config.v1.Deployment getDeployment(); + + /** + * + * + *
    +   * Required. The deployment to be created.
    +   * 
    + * + * + * .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.config.v1.DeploymentOrBuilder getDeploymentOrBuilder(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnit.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnit.java new file mode 100644 index 000000000000..6e9b5eb45200 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnit.java @@ -0,0 +1,1169 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * A DeploymentUnit is a container for a deployment and its dependencies.
    + * An existing deployment can be provided directly in the unit, or the unit
    + * can act as a placeholder to define the DAG, with the deployment specs
    + * supplied in a `provisionDeploymentRequest`.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentUnit} + */ +@com.google.protobuf.Generated +public final class DeploymentUnit extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeploymentUnit) + DeploymentUnitOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentUnit"); + } + + // Use DeploymentUnit.newBuilder() to construct. + private DeploymentUnit(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentUnit() { + id_ = ""; + deployment_ = ""; + dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentUnit.class, + com.google.cloud.config.v1.DeploymentUnit.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
    +   * The id of the deployment unit. Must be unique within the deployment group.
    +   * 
    + * + * string id = 1; + * + * @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; + } + } + + /** + * + * + *
    +   * The id of the deployment unit. Must be unique within the deployment group.
    +   * 
    + * + * string id = 1; + * + * @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 DEPLOYMENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
    +   * Optional. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPENDENCIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dependencies_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the dependencies. + */ + public com.google.protobuf.ProtocolStringList getDependenciesList() { + return dependencies_; + } + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of dependencies. + */ + public int getDependenciesCount() { + return dependencies_.size(); + } + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The dependencies at the given index. + */ + public java.lang.String getDependencies(int index) { + return dependencies_.get(index); + } + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the dependencies at the given index. + */ + public com.google.protobuf.ByteString getDependenciesBytes(int index) { + return dependencies_.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(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, deployment_); + } + for (int i = 0; i < dependencies_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dependencies_.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(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, deployment_); + } + { + int dataSize = 0; + for (int i = 0; i < dependencies_.size(); i++) { + dataSize += computeStringSizeNoTag(dependencies_.getRaw(i)); + } + size += dataSize; + size += 1 * getDependenciesList().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.config.v1.DeploymentUnit)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeploymentUnit other = + (com.google.cloud.config.v1.DeploymentUnit) obj; + + if (!getId().equals(other.getId())) return false; + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; + } + if (!getDependenciesList().equals(other.getDependenciesList())) return false; + if (!getUnknownFields().equals(other.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(); + if (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + if (getDependenciesCount() > 0) { + hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getDependenciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeploymentUnit parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentUnit parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentUnit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentUnit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentUnit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentUnit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentUnit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentUnit 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.config.v1.DeploymentUnit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentUnit 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.config.v1.DeploymentUnit parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentUnit 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.config.v1.DeploymentUnit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 DeploymentUnit is a container for a deployment and its dependencies.
    +   * An existing deployment can be provided directly in the unit, or the unit
    +   * can act as a placeholder to define the DAG, with the deployment specs
    +   * supplied in a `provisionDeploymentRequest`.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentUnit} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeploymentUnit) + com.google.cloud.config.v1.DeploymentUnitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentUnit.class, + com.google.cloud.config.v1.DeploymentUnit.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeploymentUnit.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + deployment_ = ""; + dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnit_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnit getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeploymentUnit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnit build() { + com.google.cloud.config.v1.DeploymentUnit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnit buildPartial() { + com.google.cloud.config.v1.DeploymentUnit result = + new com.google.cloud.config.v1.DeploymentUnit(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.DeploymentUnit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployment_ = deployment_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + dependencies_.makeImmutable(); + result.dependencies_ = dependencies_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.DeploymentUnit) { + return mergeFrom((com.google.cloud.config.v1.DeploymentUnit) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeploymentUnit other) { + if (other == com.google.cloud.config.v1.DeploymentUnit.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDeployment()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.dependencies_.isEmpty()) { + if (dependencies_.isEmpty()) { + dependencies_ = other.dependencies_; + bitField0_ |= 0x00000004; + } else { + ensureDependenciesIsMutable(); + dependencies_.addAll(other.dependencies_); + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDependenciesIsMutable(); + dependencies_.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.lang.Object id_ = ""; + + /** + * + * + *
    +     * The id of the deployment unit. Must be unique within the deployment group.
    +     * 
    + * + * string id = 1; + * + * @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; + } + } + + /** + * + * + *
    +     * The id of the deployment unit. Must be unique within the deployment group.
    +     * 
    + * + * string id = 1; + * + * @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; + } + } + + /** + * + * + *
    +     * The id of the deployment unit. Must be unique within the deployment group.
    +     * 
    + * + * string id = 1; + * + * @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; + } + + /** + * + * + *
    +     * The id of the deployment unit. Must be unique within the deployment group.
    +     * 
    + * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The id of the deployment unit. Must be unique within the deployment group.
    +     * 
    + * + * string id = 1; + * + * @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 deployment_ = ""; + + /** + * + * + *
    +     * Optional. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dependencies_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDependenciesIsMutable() { + if (!dependencies_.isModifiable()) { + dependencies_ = new com.google.protobuf.LazyStringArrayList(dependencies_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the dependencies. + */ + public com.google.protobuf.ProtocolStringList getDependenciesList() { + dependencies_.makeImmutable(); + return dependencies_; + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of dependencies. + */ + public int getDependenciesCount() { + return dependencies_.size(); + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The dependencies at the given index. + */ + public java.lang.String getDependencies(int index) { + return dependencies_.get(index); + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the dependencies at the given index. + */ + public com.google.protobuf.ByteString getDependenciesBytes(int index) { + return dependencies_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The dependencies to set. + * @return This builder for chaining. + */ + public Builder setDependencies(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dependencies to add. + * @return This builder for chaining. + */ + public Builder addDependencies(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The dependencies to add. + * @return This builder for chaining. + */ + public Builder addAllDependencies(java.lang.Iterable values) { + ensureDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencies_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDependencies() { + dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The IDs of the deployment units within the deployment group that
    +     * this unit depends on.
    +     * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the dependencies to add. + * @return This builder for chaining. + */ + public Builder addDependenciesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDependenciesIsMutable(); + dependencies_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeploymentUnit) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeploymentUnit) + private static final com.google.cloud.config.v1.DeploymentUnit DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeploymentUnit(); + } + + public static com.google.cloud.config.v1.DeploymentUnit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentUnit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitOrBuilder.java new file mode 100644 index 000000000000..6e7a6cb03796 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitOrBuilder.java @@ -0,0 +1,163 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeploymentUnitOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeploymentUnit) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The id of the deployment unit. Must be unique within the deployment group.
    +   * 
    + * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
    +   * The id of the deployment unit. Must be unique within the deployment group.
    +   * 
    + * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
    +   * Optional. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + + /** + * + * + *
    +   * Optional. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
    +   * Optional. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the dependencies. + */ + java.util.List getDependenciesList(); + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of dependencies. + */ + int getDependenciesCount(); + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The dependencies at the given index. + */ + java.lang.String getDependencies(int index); + + /** + * + * + *
    +   * Required. The IDs of the deployment units within the deployment group that
    +   * this unit depends on.
    +   * 
    + * + * repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the dependencies at the given index. + */ + com.google.protobuf.ByteString getDependenciesBytes(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitProgress.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitProgress.java new file mode 100644 index 000000000000..9e8a8fff6a54 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitProgress.java @@ -0,0 +1,2527 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The progress of a deployment unit provisioning or deprovisioning.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentUnitProgress} + */ +@com.google.protobuf.Generated +public final class DeploymentUnitProgress extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeploymentUnitProgress) + DeploymentUnitProgressOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeploymentUnitProgress"); + } + + // Use DeploymentUnitProgress.newBuilder() to construct. + private DeploymentUnitProgress(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentUnitProgress() { + unitId_ = ""; + deployment_ = ""; + state_ = 0; + stateDescription_ = ""; + intent_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnitProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnitProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentUnitProgress.class, + com.google.cloud.config.v1.DeploymentUnitProgress.Builder.class); + } + + /** + * + * + *
    +   * The possible steps a deployment unit provisioning may be running.
    +   * 
    + * + * Protobuf enum {@code google.cloud.config.v1.DeploymentUnitProgress.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The deployment unit is queued for deployment creation or update.
    +     * 
    + * + * QUEUED = 1; + */ + QUEUED(1), + /** + * + * + *
    +     * The underlying deployment of the unit is being created or updated.
    +     * 
    + * + * APPLYING_DEPLOYMENT = 2; + */ + APPLYING_DEPLOYMENT(2), + /** + * + * + *
    +     * The underlying deployment operation of the unit has succeeded.
    +     * 
    + * + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * + * + *
    +     * The underlying deployment operation of the unit has failed.
    +     * 
    + * + * FAILED = 5; + */ + FAILED(5), + /** + * + * + *
    +     * The deployment unit was aborted, likely due to failures in other
    +     * dependent deployment units.
    +     * 
    + * + * ABORTED = 6; + */ + ABORTED(6), + /** + * + * + *
    +     * The deployment unit was skipped because there were no changes to apply.
    +     * 
    + * + * SKIPPED = 7; + */ + SKIPPED(7), + /** + * + * + *
    +     * The deployment is being deleted.
    +     * 
    + * + * DELETING_DEPLOYMENT = 8; + */ + DELETING_DEPLOYMENT(8), + /** + * + * + *
    +     * The deployment is being previewed.
    +     * 
    + * + * PREVIEWING_DEPLOYMENT = 9; + */ + PREVIEWING_DEPLOYMENT(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
    +     * The default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The deployment unit is queued for deployment creation or update.
    +     * 
    + * + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + + /** + * + * + *
    +     * The underlying deployment of the unit is being created or updated.
    +     * 
    + * + * APPLYING_DEPLOYMENT = 2; + */ + public static final int APPLYING_DEPLOYMENT_VALUE = 2; + + /** + * + * + *
    +     * The underlying deployment operation of the unit has succeeded.
    +     * 
    + * + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + /** + * + * + *
    +     * The underlying deployment operation of the unit has failed.
    +     * 
    + * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + /** + * + * + *
    +     * The deployment unit was aborted, likely due to failures in other
    +     * dependent deployment units.
    +     * 
    + * + * ABORTED = 6; + */ + public static final int ABORTED_VALUE = 6; + + /** + * + * + *
    +     * The deployment unit was skipped because there were no changes to apply.
    +     * 
    + * + * SKIPPED = 7; + */ + public static final int SKIPPED_VALUE = 7; + + /** + * + * + *
    +     * The deployment is being deleted.
    +     * 
    + * + * DELETING_DEPLOYMENT = 8; + */ + public static final int DELETING_DEPLOYMENT_VALUE = 8; + + /** + * + * + *
    +     * The deployment is being previewed.
    +     * 
    + * + * PREVIEWING_DEPLOYMENT = 9; + */ + public static final int PREVIEWING_DEPLOYMENT_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static 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 QUEUED; + case 2: + return APPLYING_DEPLOYMENT; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + case 6: + return ABORTED; + case 7: + return SKIPPED; + case 8: + return DELETING_DEPLOYMENT; + case 9: + return PREVIEWING_DEPLOYMENT; + 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.config.v1.DeploymentUnitProgress.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.config.v1.DeploymentUnitProgress.State) + } + + /** + * + * + *
    +   * The possible intents of a deployment unit.
    +   * 
    + * + * Protobuf enum {@code google.cloud.config.v1.DeploymentUnitProgress.Intent} + */ + public enum Intent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified intent.
    +     * 
    + * + * INTENT_UNSPECIFIED = 0; + */ + INTENT_UNSPECIFIED(0), + /** + * + * + *
    +     * Create deployment in the unit from the deployment spec.
    +     * 
    + * + * CREATE_DEPLOYMENT = 1; + */ + CREATE_DEPLOYMENT(1), + /** + * + * + *
    +     * Update deployment in the unit.
    +     * 
    + * + * UPDATE_DEPLOYMENT = 2; + */ + UPDATE_DEPLOYMENT(2), + /** + * + * + *
    +     * Delete deployment in the unit.
    +     * 
    + * + * DELETE_DEPLOYMENT = 3; + */ + DELETE_DEPLOYMENT(3), + /** + * + * + *
    +     * Recreate deployment in the unit.
    +     * 
    + * + * RECREATE_DEPLOYMENT = 4; + */ + RECREATE_DEPLOYMENT(4), + /** + * + * + *
    +     * Delete deployment in latest successful revision while no longer
    +     * referenced in any deployment unit in the current deployment group.
    +     * 
    + * + * CLEAN_UP = 5; + */ + CLEAN_UP(5), + /** + * + * + *
    +     * Expected to be unchanged.
    +     * 
    + * + * UNCHANGED = 6; + */ + UNCHANGED(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Intent"); + } + + /** + * + * + *
    +     * Unspecified intent.
    +     * 
    + * + * INTENT_UNSPECIFIED = 0; + */ + public static final int INTENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Create deployment in the unit from the deployment spec.
    +     * 
    + * + * CREATE_DEPLOYMENT = 1; + */ + public static final int CREATE_DEPLOYMENT_VALUE = 1; + + /** + * + * + *
    +     * Update deployment in the unit.
    +     * 
    + * + * UPDATE_DEPLOYMENT = 2; + */ + public static final int UPDATE_DEPLOYMENT_VALUE = 2; + + /** + * + * + *
    +     * Delete deployment in the unit.
    +     * 
    + * + * DELETE_DEPLOYMENT = 3; + */ + public static final int DELETE_DEPLOYMENT_VALUE = 3; + + /** + * + * + *
    +     * Recreate deployment in the unit.
    +     * 
    + * + * RECREATE_DEPLOYMENT = 4; + */ + public static final int RECREATE_DEPLOYMENT_VALUE = 4; + + /** + * + * + *
    +     * Delete deployment in latest successful revision while no longer
    +     * referenced in any deployment unit in the current deployment group.
    +     * 
    + * + * CLEAN_UP = 5; + */ + public static final int CLEAN_UP_VALUE = 5; + + /** + * + * + *
    +     * Expected to be unchanged.
    +     * 
    + * + * UNCHANGED = 6; + */ + public static final int UNCHANGED_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 Intent 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 Intent forNumber(int value) { + switch (value) { + case 0: + return INTENT_UNSPECIFIED; + case 1: + return CREATE_DEPLOYMENT; + case 2: + return UPDATE_DEPLOYMENT; + case 3: + return DELETE_DEPLOYMENT; + case 4: + return RECREATE_DEPLOYMENT; + case 5: + return CLEAN_UP; + case 6: + return UNCHANGED; + 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 Intent findValueByNumber(int number) { + return Intent.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.config.v1.DeploymentUnitProgress.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Intent[] VALUES = values(); + + public static Intent 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 Intent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.config.v1.DeploymentUnitProgress.Intent) + } + + private int bitField0_; + public static final int UNIT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitId_ = ""; + + /** + * + * + *
    +   * Output only. The unit id of the deployment unit to be provisioned.
    +   * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The unitId. + */ + @java.lang.Override + public java.lang.String getUnitId() { + java.lang.Object ref = unitId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The unit id of the deployment unit to be provisioned.
    +   * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for unitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitIdBytes() { + java.lang.Object ref = unitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
    +   * Output only. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
    +   * Output only. The current step of the deployment unit provisioning.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.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 current step of the deployment unit provisioning.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress.State getState() { + com.google.cloud.config.v1.DeploymentUnitProgress.State result = + com.google.cloud.config.v1.DeploymentUnitProgress.State.forNumber(state_); + return result == null + ? com.google.cloud.config.v1.DeploymentUnitProgress.State.UNRECOGNIZED + : result; + } + + public static final int STATE_DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object stateDescription_ = ""; + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDescription. + */ + @java.lang.Override + public java.lang.String getStateDescription() { + java.lang.Object ref = stateDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateDescription_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateDescriptionBytes() { + java.lang.Object ref = stateDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_OPERATION_SUMMARY_FIELD_NUMBER = 5; + private com.google.cloud.config.v1.DeploymentOperationSummary deploymentOperationSummary_; + + /** + * + * + *
    +   * Output only. The summary of the deployment operation.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentOperationSummary field is set. + */ + @java.lang.Override + public boolean hasDeploymentOperationSummary() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The summary of the deployment operation.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentOperationSummary. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationSummary getDeploymentOperationSummary() { + return deploymentOperationSummary_ == null + ? com.google.cloud.config.v1.DeploymentOperationSummary.getDefaultInstance() + : deploymentOperationSummary_; + } + + /** + * + * + *
    +   * Output only. The summary of the deployment operation.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOperationSummaryOrBuilder + getDeploymentOperationSummaryOrBuilder() { + return deploymentOperationSummary_ == null + ? com.google.cloud.config.v1.DeploymentOperationSummary.getDefaultInstance() + : deploymentOperationSummary_; + } + + public static final int ERROR_FIELD_NUMBER = 6; + private com.google.rpc.Status error_; + + /** + * + * + *
    +   * Output only. Holds the error status of the deployment unit provisioning.
    +   * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. Holds the error status of the deployment unit provisioning.
    +   * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
    +   * Output only. Holds the error status of the deployment unit provisioning.
    +   * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int INTENT_FIELD_NUMBER = 7; + private int intent_ = 0; + + /** + * + * + *
    +   * Output only. The intent of the deployment unit.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for intent. + */ + @java.lang.Override + public int getIntentValue() { + return intent_; + } + + /** + * + * + *
    +   * Output only. The intent of the deployment unit.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The intent. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress.Intent getIntent() { + com.google.cloud.config.v1.DeploymentUnitProgress.Intent result = + com.google.cloud.config.v1.DeploymentUnitProgress.Intent.forNumber(intent_); + return result == null + ? com.google.cloud.config.v1.DeploymentUnitProgress.Intent.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(unitId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, unitId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, deployment_); + } + if (state_ + != com.google.cloud.config.v1.DeploymentUnitProgress.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stateDescription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, stateDescription_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getDeploymentOperationSummary()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getError()); + } + if (intent_ + != com.google.cloud.config.v1.DeploymentUnitProgress.Intent.INTENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, intent_); + } + 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(unitId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, unitId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, deployment_); + } + if (state_ + != com.google.cloud.config.v1.DeploymentUnitProgress.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stateDescription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, stateDescription_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getDeploymentOperationSummary()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getError()); + } + if (intent_ + != com.google.cloud.config.v1.DeploymentUnitProgress.Intent.INTENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, intent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.DeploymentUnitProgress)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeploymentUnitProgress other = + (com.google.cloud.config.v1.DeploymentUnitProgress) obj; + + if (!getUnitId().equals(other.getUnitId())) return false; + if (!getDeployment().equals(other.getDeployment())) return false; + if (state_ != other.state_) return false; + if (!getStateDescription().equals(other.getStateDescription())) return false; + if (hasDeploymentOperationSummary() != other.hasDeploymentOperationSummary()) return false; + if (hasDeploymentOperationSummary()) { + if (!getDeploymentOperationSummary().equals(other.getDeploymentOperationSummary())) + return false; + } + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (intent_ != other.intent_) return false; + if (!getUnknownFields().equals(other.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) + UNIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getUnitId().hashCode(); + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStateDescription().hashCode(); + if (hasDeploymentOperationSummary()) { + hash = (37 * hash) + DEPLOYMENT_OPERATION_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentOperationSummary().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (37 * hash) + INTENT_FIELD_NUMBER; + hash = (53 * hash) + intent_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress 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.config.v1.DeploymentUnitProgress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress 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.config.v1.DeploymentUnitProgress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress 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.config.v1.DeploymentUnitProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 progress of a deployment unit provisioning or deprovisioning.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeploymentUnitProgress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeploymentUnitProgress) + com.google.cloud.config.v1.DeploymentUnitProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnitProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnitProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeploymentUnitProgress.class, + com.google.cloud.config.v1.DeploymentUnitProgress.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeploymentUnitProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentOperationSummaryFieldBuilder(); + internalGetErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + unitId_ = ""; + deployment_ = ""; + state_ = 0; + stateDescription_ = ""; + deploymentOperationSummary_ = null; + if (deploymentOperationSummaryBuilder_ != null) { + deploymentOperationSummaryBuilder_.dispose(); + deploymentOperationSummaryBuilder_ = null; + } + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + intent_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeploymentUnitProgress_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeploymentUnitProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress build() { + com.google.cloud.config.v1.DeploymentUnitProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress buildPartial() { + com.google.cloud.config.v1.DeploymentUnitProgress result = + new com.google.cloud.config.v1.DeploymentUnitProgress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.DeploymentUnitProgress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.unitId_ = unitId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployment_ = deployment_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stateDescription_ = stateDescription_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deploymentOperationSummary_ = + deploymentOperationSummaryBuilder_ == null + ? deploymentOperationSummary_ + : deploymentOperationSummaryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.intent_ = intent_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.DeploymentUnitProgress) { + return mergeFrom((com.google.cloud.config.v1.DeploymentUnitProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeploymentUnitProgress other) { + if (other == com.google.cloud.config.v1.DeploymentUnitProgress.getDefaultInstance()) + return this; + if (!other.getUnitId().isEmpty()) { + unitId_ = other.unitId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStateDescription().isEmpty()) { + stateDescription_ = other.stateDescription_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasDeploymentOperationSummary()) { + mergeDeploymentOperationSummary(other.getDeploymentOperationSummary()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.intent_ != 0) { + setIntentValue(other.getIntentValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + unitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + stateDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeploymentOperationSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + intent_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 unitId_ = ""; + + /** + * + * + *
    +     * Output only. The unit id of the deployment unit to be provisioned.
    +     * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The unitId. + */ + public java.lang.String getUnitId() { + java.lang.Object ref = unitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The unit id of the deployment unit to be provisioned.
    +     * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for unitId. + */ + public com.google.protobuf.ByteString getUnitIdBytes() { + java.lang.Object ref = unitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The unit id of the deployment unit to be provisioned.
    +     * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unitId to set. + * @return This builder for chaining. + */ + public Builder setUnitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The unit id of the deployment unit to be provisioned.
    +     * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUnitId() { + unitId_ = getDefaultInstance().getUnitId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The unit id of the deployment unit to be provisioned.
    +     * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for unitId to set. + * @return This builder for chaining. + */ + public Builder setUnitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deployment_ = ""; + + /** + * + * + *
    +     * Output only. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The name of the deployment to be provisioned.
    +     * Format:
    +     * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +     * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
    +     * Output only. The current step of the deployment unit provisioning.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.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 current step of the deployment unit provisioning.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.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 current step of the deployment unit provisioning.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress.State getState() { + com.google.cloud.config.v1.DeploymentUnitProgress.State result = + com.google.cloud.config.v1.DeploymentUnitProgress.State.forNumber(state_); + return result == null + ? com.google.cloud.config.v1.DeploymentUnitProgress.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The current step of the deployment unit provisioning.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.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.config.v1.DeploymentUnitProgress.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The current step of the deployment unit provisioning.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.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 stateDescription_ = ""; + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDescription. + */ + public java.lang.String getStateDescription() { + java.lang.Object ref = stateDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDescription. + */ + public com.google.protobuf.ByteString getStateDescriptionBytes() { + java.lang.Object ref = stateDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The stateDescription to set. + * @return This builder for chaining. + */ + public Builder setStateDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stateDescription_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStateDescription() { + stateDescription_ = getDefaultInstance().getStateDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional information regarding the current state.
    +     * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for stateDescription to set. + * @return This builder for chaining. + */ + public Builder setStateDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateDescription_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.config.v1.DeploymentOperationSummary deploymentOperationSummary_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentOperationSummary, + com.google.cloud.config.v1.DeploymentOperationSummary.Builder, + com.google.cloud.config.v1.DeploymentOperationSummaryOrBuilder> + deploymentOperationSummaryBuilder_; + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentOperationSummary field is set. + */ + public boolean hasDeploymentOperationSummary() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentOperationSummary. + */ + public com.google.cloud.config.v1.DeploymentOperationSummary getDeploymentOperationSummary() { + if (deploymentOperationSummaryBuilder_ == null) { + return deploymentOperationSummary_ == null + ? com.google.cloud.config.v1.DeploymentOperationSummary.getDefaultInstance() + : deploymentOperationSummary_; + } else { + return deploymentOperationSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentOperationSummary( + com.google.cloud.config.v1.DeploymentOperationSummary value) { + if (deploymentOperationSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentOperationSummary_ = value; + } else { + deploymentOperationSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentOperationSummary( + com.google.cloud.config.v1.DeploymentOperationSummary.Builder builderForValue) { + if (deploymentOperationSummaryBuilder_ == null) { + deploymentOperationSummary_ = builderForValue.build(); + } else { + deploymentOperationSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeploymentOperationSummary( + com.google.cloud.config.v1.DeploymentOperationSummary value) { + if (deploymentOperationSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deploymentOperationSummary_ != null + && deploymentOperationSummary_ + != com.google.cloud.config.v1.DeploymentOperationSummary.getDefaultInstance()) { + getDeploymentOperationSummaryBuilder().mergeFrom(value); + } else { + deploymentOperationSummary_ = value; + } + } else { + deploymentOperationSummaryBuilder_.mergeFrom(value); + } + if (deploymentOperationSummary_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentOperationSummary() { + bitField0_ = (bitField0_ & ~0x00000010); + deploymentOperationSummary_ = null; + if (deploymentOperationSummaryBuilder_ != null) { + deploymentOperationSummaryBuilder_.dispose(); + deploymentOperationSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentOperationSummary.Builder + getDeploymentOperationSummaryBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeploymentOperationSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentOperationSummaryOrBuilder + getDeploymentOperationSummaryOrBuilder() { + if (deploymentOperationSummaryBuilder_ != null) { + return deploymentOperationSummaryBuilder_.getMessageOrBuilder(); + } else { + return deploymentOperationSummary_ == null + ? com.google.cloud.config.v1.DeploymentOperationSummary.getDefaultInstance() + : deploymentOperationSummary_; + } + } + + /** + * + * + *
    +     * Output only. The summary of the deployment operation.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentOperationSummary, + com.google.cloud.config.v1.DeploymentOperationSummary.Builder, + com.google.cloud.config.v1.DeploymentOperationSummaryOrBuilder> + internalGetDeploymentOperationSummaryFieldBuilder() { + if (deploymentOperationSummaryBuilder_ == null) { + deploymentOperationSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentOperationSummary, + com.google.cloud.config.v1.DeploymentOperationSummary.Builder, + com.google.cloud.config.v1.DeploymentOperationSummaryOrBuilder>( + getDeploymentOperationSummary(), getParentForChildren(), isClean()); + deploymentOperationSummary_ = null; + } + return deploymentOperationSummaryBuilder_; + } + + 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_; + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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; + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000020); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
    +     * Output only. Holds the error status of the deployment unit provisioning.
    +     * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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 int intent_ = 0; + + /** + * + * + *
    +     * Output only. The intent of the deployment unit.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for intent. + */ + @java.lang.Override + public int getIntentValue() { + return intent_; + } + + /** + * + * + *
    +     * Output only. The intent of the deployment unit.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for intent to set. + * @return This builder for chaining. + */ + public Builder setIntentValue(int value) { + intent_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The intent of the deployment unit.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The intent. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress.Intent getIntent() { + com.google.cloud.config.v1.DeploymentUnitProgress.Intent result = + com.google.cloud.config.v1.DeploymentUnitProgress.Intent.forNumber(intent_); + return result == null + ? com.google.cloud.config.v1.DeploymentUnitProgress.Intent.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The intent of the deployment unit.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The intent to set. + * @return This builder for chaining. + */ + public Builder setIntent(com.google.cloud.config.v1.DeploymentUnitProgress.Intent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + intent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The intent of the deployment unit.
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIntent() { + bitField0_ = (bitField0_ & ~0x00000040); + intent_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeploymentUnitProgress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeploymentUnitProgress) + private static final com.google.cloud.config.v1.DeploymentUnitProgress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeploymentUnitProgress(); + } + + public static com.google.cloud.config.v1.DeploymentUnitProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentUnitProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitProgressOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitProgressOrBuilder.java new file mode 100644 index 000000000000..5608c23f3cf3 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentUnitProgressOrBuilder.java @@ -0,0 +1,255 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeploymentUnitProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeploymentUnitProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The unit id of the deployment unit to be provisioned.
    +   * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The unitId. + */ + java.lang.String getUnitId(); + + /** + * + * + *
    +   * Output only. The unit id of the deployment unit to be provisioned.
    +   * 
    + * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for unitId. + */ + com.google.protobuf.ByteString getUnitIdBytes(); + + /** + * + * + *
    +   * Output only. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
    +   * Output only. The name of the deployment to be provisioned.
    +   * Format:
    +   * 'projects/{project}/locations/{location}/deployments/{deployment}'.
    +   * 
    + * + * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
    +   * Output only. The current step of the deployment unit provisioning.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
    +   * Output only. The current step of the deployment unit provisioning.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.config.v1.DeploymentUnitProgress.State getState(); + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDescription. + */ + java.lang.String getStateDescription(); + + /** + * + * + *
    +   * Output only. Additional information regarding the current state.
    +   * 
    + * + * string state_description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDescription. + */ + com.google.protobuf.ByteString getStateDescriptionBytes(); + + /** + * + * + *
    +   * Output only. The summary of the deployment operation.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentOperationSummary field is set. + */ + boolean hasDeploymentOperationSummary(); + + /** + * + * + *
    +   * Output only. The summary of the deployment operation.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentOperationSummary. + */ + com.google.cloud.config.v1.DeploymentOperationSummary getDeploymentOperationSummary(); + + /** + * + * + *
    +   * Output only. The summary of the deployment operation.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentOperationSummary deployment_operation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.DeploymentOperationSummaryOrBuilder + getDeploymentOperationSummaryOrBuilder(); + + /** + * + * + *
    +   * Output only. Holds the error status of the deployment unit provisioning.
    +   * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
    +   * Output only. Holds the error status of the deployment unit provisioning.
    +   * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
    +   * Output only. Holds the error status of the deployment unit provisioning.
    +   * 
    + * + * .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
    +   * Output only. The intent of the deployment unit.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for intent. + */ + int getIntentValue(); + + /** + * + * + *
    +   * Output only. The intent of the deployment unit.
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentUnitProgress.Intent intent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The intent. + */ + com.google.cloud.config.v1.DeploymentUnitProgress.Intent getIntent(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeprovisionDeploymentGroupRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeprovisionDeploymentGroupRequest.java new file mode 100644 index 000000000000..5704a2bd07e5 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeprovisionDeploymentGroupRequest.java @@ -0,0 +1,934 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The request message for the DeprovisionDeploymentGroup method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeprovisionDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeprovisionDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.DeprovisionDeploymentGroupRequest) + DeprovisionDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeprovisionDeploymentGroupRequest"); + } + + // Use DeprovisionDeploymentGroupRequest.newBuilder() to construct. + private DeprovisionDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeprovisionDeploymentGroupRequest() { + name_ = ""; + deletePolicy_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.class, + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the deployment group to deprovision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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 deployment group to deprovision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
    +   * Optional. If set to true, this option is propagated to the deletion of each
    +   * deployment in the group. This corresponds to the 'force' field
    +   * in DeleteDeploymentRequest.
    +   * 
    + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + public static final int DELETE_POLICY_FIELD_NUMBER = 3; + private int deletePolicy_ = 0; + + /** + * + * + *
    +   * Optional. Policy on how resources within each deployment should be handled
    +   * during deletion. This policy is applied globally to the deletion of all
    +   * deployments in this group. This corresponds to the 'delete_policy' field
    +   * in DeleteDeploymentRequest.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deletePolicy. + */ + @java.lang.Override + public int getDeletePolicyValue() { + return deletePolicy_; + } + + /** + * + * + *
    +   * Optional. Policy on how resources within each deployment should be handled
    +   * during deletion. This policy is applied globally to the deletion of all
    +   * deployments in this group. This corresponds to the 'delete_policy' field
    +   * in DeleteDeploymentRequest.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletePolicy. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy getDeletePolicy() { + com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy result = + com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy.forNumber(deletePolicy_); + return result == null + ? com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy.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 (force_ != false) { + output.writeBool(2, force_); + } + if (deletePolicy_ + != com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy.DELETE_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, deletePolicy_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + if (deletePolicy_ + != com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy.DELETE_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, deletePolicy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest other = + (com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (deletePolicy_ != other.deletePolicy_) return false; + if (!getUnknownFields().equals(other.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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + DELETE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + deletePolicy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest 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.config.v1.DeprovisionDeploymentGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest 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.config.v1.DeprovisionDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest 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.config.v1.DeprovisionDeploymentGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for the DeprovisionDeploymentGroup method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.DeprovisionDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.DeprovisionDeploymentGroupRequest) + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.class, + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + deletePolicy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_DeprovisionDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest build() { + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest buildPartial() { + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest result = + new com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deletePolicy_ = deletePolicy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest) { + return mergeFrom((com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest other) { + if (other + == com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (other.deletePolicy_ != 0) { + setDeletePolicyValue(other.getDeletePolicyValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + deletePolicy_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the deployment group to deprovision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to deprovision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to deprovision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to deprovision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to deprovision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 boolean force_; + + /** + * + * + *
    +     * Optional. If set to true, this option is propagated to the deletion of each
    +     * deployment in the group. This corresponds to the 'force' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
    +     * Optional. If set to true, this option is propagated to the deletion of each
    +     * deployment in the group. This corresponds to the 'force' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If set to true, this option is propagated to the deletion of each
    +     * deployment in the group. This corresponds to the 'force' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + private int deletePolicy_ = 0; + + /** + * + * + *
    +     * Optional. Policy on how resources within each deployment should be handled
    +     * during deletion. This policy is applied globally to the deletion of all
    +     * deployments in this group. This corresponds to the 'delete_policy' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deletePolicy. + */ + @java.lang.Override + public int getDeletePolicyValue() { + return deletePolicy_; + } + + /** + * + * + *
    +     * Optional. Policy on how resources within each deployment should be handled
    +     * during deletion. This policy is applied globally to the deletion of all
    +     * deployments in this group. This corresponds to the 'delete_policy' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for deletePolicy to set. + * @return This builder for chaining. + */ + public Builder setDeletePolicyValue(int value) { + deletePolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Policy on how resources within each deployment should be handled
    +     * during deletion. This policy is applied globally to the deletion of all
    +     * deployments in this group. This corresponds to the 'delete_policy' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletePolicy. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy getDeletePolicy() { + com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy result = + com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy.forNumber(deletePolicy_); + return result == null + ? com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Policy on how resources within each deployment should be handled
    +     * during deletion. This policy is applied globally to the deletion of all
    +     * deployments in this group. This corresponds to the 'delete_policy' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deletePolicy to set. + * @return This builder for chaining. + */ + public Builder setDeletePolicy( + com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + deletePolicy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Policy on how resources within each deployment should be handled
    +     * during deletion. This policy is applied globally to the deletion of all
    +     * deployments in this group. This corresponds to the 'delete_policy' field
    +     * in DeleteDeploymentRequest.
    +     * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeletePolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + deletePolicy_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.DeprovisionDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.DeprovisionDeploymentGroupRequest) + private static final com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest(); + } + + public static com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeprovisionDeploymentGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeprovisionDeploymentGroupRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeprovisionDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..0824d865b3f2 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeprovisionDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface DeprovisionDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.DeprovisionDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the deployment group to deprovision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the deployment group to deprovision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. If set to true, this option is propagated to the deletion of each
    +   * deployment in the group. This corresponds to the 'force' field
    +   * in DeleteDeploymentRequest.
    +   * 
    + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); + + /** + * + * + *
    +   * Optional. Policy on how resources within each deployment should be handled
    +   * during deletion. This policy is applied globally to the deletion of all
    +   * deployments in this group. This corresponds to the 'delete_policy' field
    +   * in DeleteDeploymentRequest.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deletePolicy. + */ + int getDeletePolicyValue(); + + /** + * + * + *
    +   * Optional. Policy on how resources within each deployment should be handled
    +   * during deletion. This policy is applied globally to the deletion of all
    +   * deployments in this group. This corresponds to the 'delete_policy' field
    +   * in DeleteDeploymentRequest.
    +   * 
    + * + * + * .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletePolicy. + */ + com.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy getDeletePolicy(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ExternalValueSource.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ExternalValueSource.java new file mode 100644 index 000000000000..afdf5e85576e --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ExternalValueSource.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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * Configuration for a source of an external value.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ExternalValueSource} + */ +@com.google.protobuf.Generated +public final class ExternalValueSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ExternalValueSource) + ExternalValueSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExternalValueSource"); + } + + // Use ExternalValueSource.newBuilder() to construct. + private ExternalValueSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExternalValueSource() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ExternalValueSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ExternalValueSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ExternalValueSource.class, + com.google.cloud.config.v1.ExternalValueSource.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 { + DEPLOYMENT_SOURCE(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 DEPLOYMENT_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int DEPLOYMENT_SOURCE_FIELD_NUMBER = 1; + + /** + * + * + *
    +   * A source from a Deployment.
    +   * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + * + * @return Whether the deploymentSource field is set. + */ + @java.lang.Override + public boolean hasDeploymentSource() { + return sourceCase_ == 1; + } + + /** + * + * + *
    +   * A source from a Deployment.
    +   * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + * + * @return The deploymentSource. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSource getDeploymentSource() { + if (sourceCase_ == 1) { + return (com.google.cloud.config.v1.DeploymentSource) source_; + } + return com.google.cloud.config.v1.DeploymentSource.getDefaultInstance(); + } + + /** + * + * + *
    +   * A source from a Deployment.
    +   * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSourceOrBuilder getDeploymentSourceOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.config.v1.DeploymentSource) source_; + } + return com.google.cloud.config.v1.DeploymentSource.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.config.v1.DeploymentSource) 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.config.v1.DeploymentSource) 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.config.v1.ExternalValueSource)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ExternalValueSource other = + (com.google.cloud.config.v1.ExternalValueSource) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getDeploymentSource().equals(other.getDeploymentSource())) 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) + DEPLOYMENT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ExternalValueSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ExternalValueSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ExternalValueSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ExternalValueSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ExternalValueSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ExternalValueSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ExternalValueSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ExternalValueSource 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.config.v1.ExternalValueSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ExternalValueSource 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.config.v1.ExternalValueSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ExternalValueSource 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.config.v1.ExternalValueSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 source of an external value.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ExternalValueSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ExternalValueSource) + com.google.cloud.config.v1.ExternalValueSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ExternalValueSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ExternalValueSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ExternalValueSource.class, + com.google.cloud.config.v1.ExternalValueSource.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ExternalValueSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentSourceBuilder_ != null) { + deploymentSourceBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ExternalValueSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ExternalValueSource getDefaultInstanceForType() { + return com.google.cloud.config.v1.ExternalValueSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ExternalValueSource build() { + com.google.cloud.config.v1.ExternalValueSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ExternalValueSource buildPartial() { + com.google.cloud.config.v1.ExternalValueSource result = + new com.google.cloud.config.v1.ExternalValueSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ExternalValueSource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.config.v1.ExternalValueSource result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && deploymentSourceBuilder_ != null) { + result.source_ = deploymentSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ExternalValueSource) { + return mergeFrom((com.google.cloud.config.v1.ExternalValueSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ExternalValueSource other) { + if (other == com.google.cloud.config.v1.ExternalValueSource.getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case DEPLOYMENT_SOURCE: + { + mergeDeploymentSource(other.getDeploymentSource()); + 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( + internalGetDeploymentSourceFieldBuilder().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.config.v1.DeploymentSource, + com.google.cloud.config.v1.DeploymentSource.Builder, + com.google.cloud.config.v1.DeploymentSourceOrBuilder> + deploymentSourceBuilder_; + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + * + * @return Whether the deploymentSource field is set. + */ + @java.lang.Override + public boolean hasDeploymentSource() { + return sourceCase_ == 1; + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + * + * @return The deploymentSource. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSource getDeploymentSource() { + if (deploymentSourceBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.config.v1.DeploymentSource) source_; + } + return com.google.cloud.config.v1.DeploymentSource.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return deploymentSourceBuilder_.getMessage(); + } + return com.google.cloud.config.v1.DeploymentSource.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + public Builder setDeploymentSource(com.google.cloud.config.v1.DeploymentSource value) { + if (deploymentSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + deploymentSourceBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + public Builder setDeploymentSource( + com.google.cloud.config.v1.DeploymentSource.Builder builderForValue) { + if (deploymentSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + deploymentSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + public Builder mergeDeploymentSource(com.google.cloud.config.v1.DeploymentSource value) { + if (deploymentSourceBuilder_ == null) { + if (sourceCase_ == 1 + && source_ != com.google.cloud.config.v1.DeploymentSource.getDefaultInstance()) { + source_ = + com.google.cloud.config.v1.DeploymentSource.newBuilder( + (com.google.cloud.config.v1.DeploymentSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + deploymentSourceBuilder_.mergeFrom(value); + } else { + deploymentSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + public Builder clearDeploymentSource() { + if (deploymentSourceBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + deploymentSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + public com.google.cloud.config.v1.DeploymentSource.Builder getDeploymentSourceBuilder() { + return internalGetDeploymentSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSourceOrBuilder getDeploymentSourceOrBuilder() { + if ((sourceCase_ == 1) && (deploymentSourceBuilder_ != null)) { + return deploymentSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.config.v1.DeploymentSource) source_; + } + return com.google.cloud.config.v1.DeploymentSource.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * A source from a Deployment.
    +     * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentSource, + com.google.cloud.config.v1.DeploymentSource.Builder, + com.google.cloud.config.v1.DeploymentSourceOrBuilder> + internalGetDeploymentSourceFieldBuilder() { + if (deploymentSourceBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = com.google.cloud.config.v1.DeploymentSource.getDefaultInstance(); + } + deploymentSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentSource, + com.google.cloud.config.v1.DeploymentSource.Builder, + com.google.cloud.config.v1.DeploymentSourceOrBuilder>( + (com.google.cloud.config.v1.DeploymentSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return deploymentSourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ExternalValueSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ExternalValueSource) + private static final com.google.cloud.config.v1.ExternalValueSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ExternalValueSource(); + } + + public static com.google.cloud.config.v1.ExternalValueSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalValueSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ExternalValueSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ExternalValueSourceOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ExternalValueSourceOrBuilder.java new file mode 100644 index 000000000000..2353b64130d6 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ExternalValueSourceOrBuilder.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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface ExternalValueSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ExternalValueSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A source from a Deployment.
    +   * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + * + * @return Whether the deploymentSource field is set. + */ + boolean hasDeploymentSource(); + + /** + * + * + *
    +   * A source from a Deployment.
    +   * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + * + * @return The deploymentSource. + */ + com.google.cloud.config.v1.DeploymentSource getDeploymentSource(); + + /** + * + * + *
    +   * A source from a Deployment.
    +   * 
    + * + * .google.cloud.config.v1.DeploymentSource deployment_source = 1; + */ + com.google.cloud.config.v1.DeploymentSourceOrBuilder getDeploymentSourceOrBuilder(); + + com.google.cloud.config.v1.ExternalValueSource.SourceCase getSourceCase(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRequest.java new file mode 100644 index 000000000000..a1eb82eac24a --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRequest.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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The request message for the GetDeploymentGroup method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.GetDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.GetDeploymentGroupRequest) + GetDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetDeploymentGroupRequest"); + } + + // Use GetDeploymentGroupRequest.newBuilder() to construct. + private GetDeploymentGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDeploymentGroupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetDeploymentGroupRequest.class, + com.google.cloud.config.v1.GetDeploymentGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the deployment group to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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 deployment group to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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.config.v1.GetDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.GetDeploymentGroupRequest other = + (com.google.cloud.config.v1.GetDeploymentGroupRequest) 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.config.v1.GetDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest 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.config.v1.GetDeploymentGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest 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.config.v1.GetDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest 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.config.v1.GetDeploymentGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for the GetDeploymentGroup method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.GetDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.GetDeploymentGroupRequest) + com.google.cloud.config.v1.GetDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetDeploymentGroupRequest.class, + com.google.cloud.config.v1.GetDeploymentGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.GetDeploymentGroupRequest.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.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.GetDeploymentGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRequest build() { + com.google.cloud.config.v1.GetDeploymentGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRequest buildPartial() { + com.google.cloud.config.v1.GetDeploymentGroupRequest result = + new com.google.cloud.config.v1.GetDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.GetDeploymentGroupRequest 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.config.v1.GetDeploymentGroupRequest) { + return mergeFrom((com.google.cloud.config.v1.GetDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.GetDeploymentGroupRequest other) { + if (other == com.google.cloud.config.v1.GetDeploymentGroupRequest.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 deployment group to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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.config.v1.GetDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.GetDeploymentGroupRequest) + private static final com.google.cloud.config.v1.GetDeploymentGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.GetDeploymentGroupRequest(); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeploymentGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..82003fa546ae --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRequestOrBuilder.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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface GetDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.GetDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the deployment group to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the deployment group to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRevisionRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRevisionRequest.java new file mode 100644 index 000000000000..3082ab323023 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRevisionRequest.java @@ -0,0 +1,630 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The request message for the GetDeploymentGroupRevision method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.GetDeploymentGroupRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetDeploymentGroupRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.GetDeploymentGroupRevisionRequest) + GetDeploymentGroupRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetDeploymentGroupRevisionRequest"); + } + + // Use GetDeploymentGroupRevisionRequest.newBuilder() to construct. + private GetDeploymentGroupRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDeploymentGroupRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.class, + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the deployment group revision to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +   * 
    + * + * + * 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 deployment group revision to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +   * 
    + * + * + * 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.config.v1.GetDeploymentGroupRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest other = + (com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest) 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.config.v1.GetDeploymentGroupRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest 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.config.v1.GetDeploymentGroupRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest 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.config.v1.GetDeploymentGroupRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest 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.config.v1.GetDeploymentGroupRevisionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for the GetDeploymentGroupRevision method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.GetDeploymentGroupRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.GetDeploymentGroupRevisionRequest) + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.class, + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.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.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetDeploymentGroupRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest build() { + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest buildPartial() { + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest result = + new com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest 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.config.v1.GetDeploymentGroupRevisionRequest) { + return mergeFrom((com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest other) { + if (other + == com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest.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 deployment group revision to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +     * 
    + * + * + * 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 deployment group revision to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +     * 
    + * + * + * 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 deployment group revision to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +     * 
    + * + * + * 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 deployment group revision to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +     * 
    + * + * + * 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 deployment group revision to retrieve.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +     * 
    + * + * + * 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.config.v1.GetDeploymentGroupRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.GetDeploymentGroupRevisionRequest) + private static final com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest(); + } + + public static com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeploymentGroupRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRevisionRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..fca193dad32e --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetDeploymentGroupRevisionRequestOrBuilder.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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface GetDeploymentGroupRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.GetDeploymentGroupRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the deployment group revision to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the deployment group revision to retrieve.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
    +   * 
    + * + * + * 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-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsRequest.java new file mode 100644 index 000000000000..e3355748b2cc --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsRequest.java @@ -0,0 +1,958 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The request message for the ListDeploymentGroupRevisions method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListDeploymentGroupRevisionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListDeploymentGroupRevisionsRequest) + ListDeploymentGroupRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDeploymentGroupRevisionsRequest"); + } + + // Use ListDeploymentGroupRevisionsRequest.newBuilder() to construct. + private ListDeploymentGroupRevisionsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDeploymentGroupRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.class, + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment group
    +   * revisions. Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment group
    +   * revisions. Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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. When requesting a page of resources, 'page_size' specifies number
    +   * of resources to return. If unspecified, a sensible default will be used by
    +   * the server. 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +   * which specifies the position in the list from where to continue listing the
    +   * deployment group revisions. All other parameters provided to
    +   * `ListDeploymentGroupRevisions` must match the call that provided the page
    +   * token.
    +   * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +   * which specifies the position in the list from where to continue listing the
    +   * deployment group revisions. All other parameters provided to
    +   * `ListDeploymentGroupRevisions` must match the call that provided the page
    +   * token.
    +   * 
    + * + * 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.config.v1.ListDeploymentGroupRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest other = + (com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest) 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.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest 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.config.v1.ListDeploymentGroupRevisionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest 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.config.v1.ListDeploymentGroupRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest 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.config.v1.ListDeploymentGroupRevisionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for the ListDeploymentGroupRevisions method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListDeploymentGroupRevisionsRequest) + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.class, + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.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.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest build() { + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest buildPartial() { + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest result = + new com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest 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.config.v1.ListDeploymentGroupRevisionsRequest) { + return mergeFrom((com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest other) { + if (other + == com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment group
    +     * revisions. Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment group
    +     * revisions. Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment group
    +     * revisions. Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment group
    +     * revisions. Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment group
    +     * revisions. Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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. When requesting a page of resources, 'page_size' specifies number
    +     * of resources to return. If unspecified, a sensible default will be used by
    +     * the server. 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. When requesting a page of resources, 'page_size' specifies number
    +     * of resources to return. If unspecified, a sensible default will be used by
    +     * the server. 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. When requesting a page of resources, 'page_size' specifies number
    +     * of resources to return. If unspecified, a sensible default will be used by
    +     * the server. 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +     * which specifies the position in the list from where to continue listing the
    +     * deployment group revisions. All other parameters provided to
    +     * `ListDeploymentGroupRevisions` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +     * which specifies the position in the list from where to continue listing the
    +     * deployment group revisions. All other parameters provided to
    +     * `ListDeploymentGroupRevisions` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +     * which specifies the position in the list from where to continue listing the
    +     * deployment group revisions. All other parameters provided to
    +     * `ListDeploymentGroupRevisions` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +     * which specifies the position in the list from where to continue listing the
    +     * deployment group revisions. All other parameters provided to
    +     * `ListDeploymentGroupRevisions` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +     * which specifies the position in the list from where to continue listing the
    +     * deployment group revisions. All other parameters provided to
    +     * `ListDeploymentGroupRevisions` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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.config.v1.ListDeploymentGroupRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListDeploymentGroupRevisionsRequest) + private static final com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest(); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentGroupRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..ee12600a8457 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface ListDeploymentGroupRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListDeploymentGroupRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment group
    +   * revisions. Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment group
    +   * revisions. Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. When requesting a page of resources, 'page_size' specifies number
    +   * of resources to return. If unspecified, a sensible default will be used by
    +   * the server. 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. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +   * which specifies the position in the list from where to continue listing the
    +   * deployment group revisions. All other parameters provided to
    +   * `ListDeploymentGroupRevisions` must match the call that provided the page
    +   * token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. Token returned by previous call to 'ListDeploymentGroupRevisions'
    +   * which specifies the position in the list from where to continue listing the
    +   * deployment group revisions. All other parameters provided to
    +   * `ListDeploymentGroupRevisions` must match the call that provided the page
    +   * token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsResponse.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsResponse.java new file mode 100644 index 000000000000..786e5f51a644 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsResponse.java @@ -0,0 +1,1482 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The response message for the ListDeploymentGroupRevisions method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListDeploymentGroupRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListDeploymentGroupRevisionsResponse) + ListDeploymentGroupRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDeploymentGroupRevisionsResponse"); + } + + // Use ListDeploymentGroupRevisionsResponse.newBuilder() to construct. + private ListDeploymentGroupRevisionsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDeploymentGroupRevisionsResponse() { + deploymentGroupRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.class, + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.Builder.class); + } + + public static final int DEPLOYMENT_GROUP_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + deploymentGroupRevisions_; + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getDeploymentGroupRevisionsList() { + return deploymentGroupRevisions_; + } + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getDeploymentGroupRevisionsOrBuilderList() { + return deploymentGroupRevisions_; + } + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + @java.lang.Override + public int getDeploymentGroupRevisionsCount() { + return deploymentGroupRevisions_.size(); + } + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupRevision getDeploymentGroupRevisions(int index) { + return deploymentGroupRevisions_.get(index); + } + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupRevisionOrBuilder + getDeploymentGroupRevisionsOrBuilder(int index) { + return deploymentGroupRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * Token to be supplied to the next ListDeploymentGroupRevisions request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * 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 be supplied to the next ListDeploymentGroupRevisions request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * 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 < deploymentGroupRevisions_.size(); i++) { + output.writeMessage(1, deploymentGroupRevisions_.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 < deploymentGroupRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, deploymentGroupRevisions_.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.config.v1.ListDeploymentGroupRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse other = + (com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse) obj; + + if (!getDeploymentGroupRevisionsList().equals(other.getDeploymentGroupRevisionsList())) + 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 (getDeploymentGroupRevisionsCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_GROUP_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroupRevisionsList().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.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse 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.config.v1.ListDeploymentGroupRevisionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse 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.config.v1.ListDeploymentGroupRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse 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.config.v1.ListDeploymentGroupRevisionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 response message for the ListDeploymentGroupRevisions method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListDeploymentGroupRevisionsResponse) + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.class, + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentGroupRevisionsBuilder_ == null) { + deploymentGroupRevisions_ = java.util.Collections.emptyList(); + } else { + deploymentGroupRevisions_ = null; + deploymentGroupRevisionsBuilder_.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.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse build() { + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse buildPartial() { + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse result = + new com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse result) { + if (deploymentGroupRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deploymentGroupRevisions_ = + java.util.Collections.unmodifiableList(deploymentGroupRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deploymentGroupRevisions_ = deploymentGroupRevisions_; + } else { + result.deploymentGroupRevisions_ = deploymentGroupRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse 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.config.v1.ListDeploymentGroupRevisionsResponse) { + return mergeFrom((com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse other) { + if (other + == com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse.getDefaultInstance()) + return this; + if (deploymentGroupRevisionsBuilder_ == null) { + if (!other.deploymentGroupRevisions_.isEmpty()) { + if (deploymentGroupRevisions_.isEmpty()) { + deploymentGroupRevisions_ = other.deploymentGroupRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.addAll(other.deploymentGroupRevisions_); + } + onChanged(); + } + } else { + if (!other.deploymentGroupRevisions_.isEmpty()) { + if (deploymentGroupRevisionsBuilder_.isEmpty()) { + deploymentGroupRevisionsBuilder_.dispose(); + deploymentGroupRevisionsBuilder_ = null; + deploymentGroupRevisions_ = other.deploymentGroupRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentGroupRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDeploymentGroupRevisionsFieldBuilder() + : null; + } else { + deploymentGroupRevisionsBuilder_.addAllMessages(other.deploymentGroupRevisions_); + } + } + } + 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.config.v1.DeploymentGroupRevision m = + input.readMessage( + com.google.cloud.config.v1.DeploymentGroupRevision.parser(), + extensionRegistry); + if (deploymentGroupRevisionsBuilder_ == null) { + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.add(m); + } else { + deploymentGroupRevisionsBuilder_.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 + deploymentGroupRevisions_ = java.util.Collections.emptyList(); + + private void ensureDeploymentGroupRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deploymentGroupRevisions_ = + new java.util.ArrayList( + deploymentGroupRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentGroupRevision, + com.google.cloud.config.v1.DeploymentGroupRevision.Builder, + com.google.cloud.config.v1.DeploymentGroupRevisionOrBuilder> + deploymentGroupRevisionsBuilder_; + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public java.util.List + getDeploymentGroupRevisionsList() { + if (deploymentGroupRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deploymentGroupRevisions_); + } else { + return deploymentGroupRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public int getDeploymentGroupRevisionsCount() { + if (deploymentGroupRevisionsBuilder_ == null) { + return deploymentGroupRevisions_.size(); + } else { + return deploymentGroupRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public com.google.cloud.config.v1.DeploymentGroupRevision getDeploymentGroupRevisions( + int index) { + if (deploymentGroupRevisionsBuilder_ == null) { + return deploymentGroupRevisions_.get(index); + } else { + return deploymentGroupRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder setDeploymentGroupRevisions( + int index, com.google.cloud.config.v1.DeploymentGroupRevision value) { + if (deploymentGroupRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.set(index, value); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder setDeploymentGroupRevisions( + int index, com.google.cloud.config.v1.DeploymentGroupRevision.Builder builderForValue) { + if (deploymentGroupRevisionsBuilder_ == null) { + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder addDeploymentGroupRevisions( + com.google.cloud.config.v1.DeploymentGroupRevision value) { + if (deploymentGroupRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.add(value); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder addDeploymentGroupRevisions( + int index, com.google.cloud.config.v1.DeploymentGroupRevision value) { + if (deploymentGroupRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.add(index, value); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder addDeploymentGroupRevisions( + com.google.cloud.config.v1.DeploymentGroupRevision.Builder builderForValue) { + if (deploymentGroupRevisionsBuilder_ == null) { + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.add(builderForValue.build()); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder addDeploymentGroupRevisions( + int index, com.google.cloud.config.v1.DeploymentGroupRevision.Builder builderForValue) { + if (deploymentGroupRevisionsBuilder_ == null) { + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder addAllDeploymentGroupRevisions( + java.lang.Iterable values) { + if (deploymentGroupRevisionsBuilder_ == null) { + ensureDeploymentGroupRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentGroupRevisions_); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder clearDeploymentGroupRevisions() { + if (deploymentGroupRevisionsBuilder_ == null) { + deploymentGroupRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public Builder removeDeploymentGroupRevisions(int index) { + if (deploymentGroupRevisionsBuilder_ == null) { + ensureDeploymentGroupRevisionsIsMutable(); + deploymentGroupRevisions_.remove(index); + onChanged(); + } else { + deploymentGroupRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public com.google.cloud.config.v1.DeploymentGroupRevision.Builder + getDeploymentGroupRevisionsBuilder(int index) { + return internalGetDeploymentGroupRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public com.google.cloud.config.v1.DeploymentGroupRevisionOrBuilder + getDeploymentGroupRevisionsOrBuilder(int index) { + if (deploymentGroupRevisionsBuilder_ == null) { + return deploymentGroupRevisions_.get(index); + } else { + return deploymentGroupRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public java.util.List + getDeploymentGroupRevisionsOrBuilderList() { + if (deploymentGroupRevisionsBuilder_ != null) { + return deploymentGroupRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deploymentGroupRevisions_); + } + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public com.google.cloud.config.v1.DeploymentGroupRevision.Builder + addDeploymentGroupRevisionsBuilder() { + return internalGetDeploymentGroupRevisionsFieldBuilder() + .addBuilder(com.google.cloud.config.v1.DeploymentGroupRevision.getDefaultInstance()); + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public com.google.cloud.config.v1.DeploymentGroupRevision.Builder + addDeploymentGroupRevisionsBuilder(int index) { + return internalGetDeploymentGroupRevisionsFieldBuilder() + .addBuilder( + index, com.google.cloud.config.v1.DeploymentGroupRevision.getDefaultInstance()); + } + + /** + * + * + *
    +     * The deployment group revisions from the specified collection.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + public java.util.List + getDeploymentGroupRevisionsBuilderList() { + return internalGetDeploymentGroupRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentGroupRevision, + com.google.cloud.config.v1.DeploymentGroupRevision.Builder, + com.google.cloud.config.v1.DeploymentGroupRevisionOrBuilder> + internalGetDeploymentGroupRevisionsFieldBuilder() { + if (deploymentGroupRevisionsBuilder_ == null) { + deploymentGroupRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentGroupRevision, + com.google.cloud.config.v1.DeploymentGroupRevision.Builder, + com.google.cloud.config.v1.DeploymentGroupRevisionOrBuilder>( + deploymentGroupRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deploymentGroupRevisions_ = null; + } + return deploymentGroupRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * Token to be supplied to the next ListDeploymentGroupRevisions request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * 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 be supplied to the next ListDeploymentGroupRevisions request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * 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 be supplied to the next ListDeploymentGroupRevisions request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * 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 be supplied to the next ListDeploymentGroupRevisions request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Token to be supplied to the next ListDeploymentGroupRevisions request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * 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.config.v1.ListDeploymentGroupRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListDeploymentGroupRevisionsResponse) + private static final com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse(); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentGroupRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsResponseOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..87f2ce0b3f1d --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupRevisionsResponseOrBuilder.java @@ -0,0 +1,173 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface ListDeploymentGroupRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListDeploymentGroupRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + java.util.List + getDeploymentGroupRevisionsList(); + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + com.google.cloud.config.v1.DeploymentGroupRevision getDeploymentGroupRevisions(int index); + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + int getDeploymentGroupRevisionsCount(); + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + java.util.List + getDeploymentGroupRevisionsOrBuilderList(); + + /** + * + * + *
    +   * The deployment group revisions from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroupRevision deployment_group_revisions = 1; + * + */ + com.google.cloud.config.v1.DeploymentGroupRevisionOrBuilder getDeploymentGroupRevisionsOrBuilder( + int index); + + /** + * + * + *
    +   * Token to be supplied to the next ListDeploymentGroupRevisions request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * Token to be supplied to the next ListDeploymentGroupRevisions request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * 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-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsRequest.java new file mode 100644 index 000000000000..5729b3f6092e --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsRequest.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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The request message for the ListDeploymentGroups method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListDeploymentGroupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListDeploymentGroupsRequest) + ListDeploymentGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDeploymentGroupsRequest"); + } + + // Use ListDeploymentGroupsRequest.newBuilder() to construct. + private ListDeploymentGroupsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDeploymentGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupsRequest.class, + com.google.cloud.config.v1.ListDeploymentGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment groups.
    +   * Format: 'projects/{project_id}/locations/{location}'.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment groups.
    +   * Format: 'projects/{project_id}/locations/{location}'.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
    +   * Optional. When requesting a page of resources, 'page_size' specifies number
    +   * of resources to return. If unspecified, at most 500 will be returned. The
    +   * maximum value is 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. Token returned by previous call to 'ListDeploymentGroups' which
    +   * specifies the position in the list from where to continue listing the
    +   * deployment groups.
    +   * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroups' which
    +   * specifies the position in the list from where to continue listing the
    +   * deployment groups.
    +   * 
    + * + * 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. Lists the DeploymentGroups that match the filter expression. A
    +   * filter expression filters the deployment groups listed in the response. The
    +   * expression must be of the form '{field} {operator} {value}' where
    +   * operators: '<', '>',
    +   * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +   * operator which is roughly synonymous with equality). {field} can refer to a
    +   * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +   * snake_case.
    +   *
    +   * Examples:
    +   * - Filter by name:
    +   * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +   *
    +   * - Filter by labels:
    +   * - Resources that have a key called 'foo'
    +   * labels.foo:*
    +   * - Resources that have a key called 'foo' whose value is 'bar'
    +   * labels.foo = bar
    +   *
    +   * - Filter by state:
    +   * - DeploymentGroups in CREATING state.
    +   * state=CREATING
    +   * 
    + * + * 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. Lists the DeploymentGroups that match the filter expression. A
    +   * filter expression filters the deployment groups listed in the response. The
    +   * expression must be of the form '{field} {operator} {value}' where
    +   * operators: '<', '>',
    +   * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +   * operator which is roughly synonymous with equality). {field} can refer to a
    +   * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +   * snake_case.
    +   *
    +   * Examples:
    +   * - Filter by name:
    +   * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +   *
    +   * - Filter by labels:
    +   * - Resources that have a key called 'foo'
    +   * labels.foo:*
    +   * - Resources that have a key called 'foo' whose value is 'bar'
    +   * labels.foo = bar
    +   *
    +   * - Filter by state:
    +   * - DeploymentGroups in CREATING state.
    +   * state=CREATING
    +   * 
    + * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Field to use to sort the list.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Field to use to sort the list.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.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_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.ListDeploymentGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListDeploymentGroupsRequest other = + (com.google.cloud.config.v1.ListDeploymentGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest 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.config.v1.ListDeploymentGroupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest 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.config.v1.ListDeploymentGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest 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.config.v1.ListDeploymentGroupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for the ListDeploymentGroups method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListDeploymentGroupsRequest) + com.google.cloud.config.v1.ListDeploymentGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupsRequest.class, + com.google.cloud.config.v1.ListDeploymentGroupsRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListDeploymentGroupsRequest.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_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListDeploymentGroupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsRequest build() { + com.google.cloud.config.v1.ListDeploymentGroupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsRequest buildPartial() { + com.google.cloud.config.v1.ListDeploymentGroupsRequest result = + new com.google.cloud.config.v1.ListDeploymentGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ListDeploymentGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ListDeploymentGroupsRequest) { + return mergeFrom((com.google.cloud.config.v1.ListDeploymentGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ListDeploymentGroupsRequest other) { + if (other == com.google.cloud.config.v1.ListDeploymentGroupsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment groups.
    +     * Format: 'projects/{project_id}/locations/{location}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment groups.
    +     * Format: 'projects/{project_id}/locations/{location}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment groups.
    +     * Format: 'projects/{project_id}/locations/{location}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment groups.
    +     * Format: 'projects/{project_id}/locations/{location}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent, which owns this collection of deployment groups.
    +     * Format: 'projects/{project_id}/locations/{location}'.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * Optional. When requesting a page of resources, 'page_size' specifies number
    +     * of resources to return. If unspecified, at most 500 will be returned. The
    +     * maximum value is 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. When requesting a page of resources, 'page_size' specifies number
    +     * of resources to return. If unspecified, at most 500 will be returned. The
    +     * maximum value is 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. When requesting a page of resources, 'page_size' specifies number
    +     * of resources to return. If unspecified, at most 500 will be returned. The
    +     * maximum value is 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. Token returned by previous call to 'ListDeploymentGroups' which
    +     * specifies the position in the list from where to continue listing the
    +     * deployment groups.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroups' which
    +     * specifies the position in the list from where to continue listing the
    +     * deployment groups.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroups' which
    +     * specifies the position in the list from where to continue listing the
    +     * deployment groups.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroups' which
    +     * specifies the position in the list from where to continue listing the
    +     * deployment groups.
    +     * 
    + * + * 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. Token returned by previous call to 'ListDeploymentGroups' which
    +     * specifies the position in the list from where to continue listing the
    +     * deployment groups.
    +     * 
    + * + * 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. Lists the DeploymentGroups that match the filter expression. A
    +     * filter expression filters the deployment groups listed in the response. The
    +     * expression must be of the form '{field} {operator} {value}' where
    +     * operators: '<', '>',
    +     * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +     * operator which is roughly synonymous with equality). {field} can refer to a
    +     * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +     * snake_case.
    +     *
    +     * Examples:
    +     * - Filter by name:
    +     * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +     *
    +     * - Filter by labels:
    +     * - Resources that have a key called 'foo'
    +     * labels.foo:*
    +     * - Resources that have a key called 'foo' whose value is 'bar'
    +     * labels.foo = bar
    +     *
    +     * - Filter by state:
    +     * - DeploymentGroups in CREATING state.
    +     * state=CREATING
    +     * 
    + * + * 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. Lists the DeploymentGroups that match the filter expression. A
    +     * filter expression filters the deployment groups listed in the response. The
    +     * expression must be of the form '{field} {operator} {value}' where
    +     * operators: '<', '>',
    +     * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +     * operator which is roughly synonymous with equality). {field} can refer to a
    +     * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +     * snake_case.
    +     *
    +     * Examples:
    +     * - Filter by name:
    +     * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +     *
    +     * - Filter by labels:
    +     * - Resources that have a key called 'foo'
    +     * labels.foo:*
    +     * - Resources that have a key called 'foo' whose value is 'bar'
    +     * labels.foo = bar
    +     *
    +     * - Filter by state:
    +     * - DeploymentGroups in CREATING state.
    +     * state=CREATING
    +     * 
    + * + * 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. Lists the DeploymentGroups that match the filter expression. A
    +     * filter expression filters the deployment groups listed in the response. The
    +     * expression must be of the form '{field} {operator} {value}' where
    +     * operators: '<', '>',
    +     * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +     * operator which is roughly synonymous with equality). {field} can refer to a
    +     * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +     * snake_case.
    +     *
    +     * Examples:
    +     * - Filter by name:
    +     * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +     *
    +     * - Filter by labels:
    +     * - Resources that have a key called 'foo'
    +     * labels.foo:*
    +     * - Resources that have a key called 'foo' whose value is 'bar'
    +     * labels.foo = bar
    +     *
    +     * - Filter by state:
    +     * - DeploymentGroups in CREATING state.
    +     * state=CREATING
    +     * 
    + * + * 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. Lists the DeploymentGroups that match the filter expression. A
    +     * filter expression filters the deployment groups listed in the response. The
    +     * expression must be of the form '{field} {operator} {value}' where
    +     * operators: '<', '>',
    +     * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +     * operator which is roughly synonymous with equality). {field} can refer to a
    +     * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +     * snake_case.
    +     *
    +     * Examples:
    +     * - Filter by name:
    +     * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +     *
    +     * - Filter by labels:
    +     * - Resources that have a key called 'foo'
    +     * labels.foo:*
    +     * - Resources that have a key called 'foo' whose value is 'bar'
    +     * labels.foo = bar
    +     *
    +     * - Filter by state:
    +     * - DeploymentGroups in CREATING state.
    +     * state=CREATING
    +     * 
    + * + * 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. Lists the DeploymentGroups that match the filter expression. A
    +     * filter expression filters the deployment groups listed in the response. The
    +     * expression must be of the form '{field} {operator} {value}' where
    +     * operators: '<', '>',
    +     * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +     * operator which is roughly synonymous with equality). {field} can refer to a
    +     * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +     * snake_case.
    +     *
    +     * Examples:
    +     * - Filter by name:
    +     * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +     *
    +     * - Filter by labels:
    +     * - Resources that have a key called 'foo'
    +     * labels.foo:*
    +     * - Resources that have a key called 'foo' whose value is 'bar'
    +     * labels.foo = bar
    +     *
    +     * - Filter by state:
    +     * - DeploymentGroups in CREATING state.
    +     * state=CREATING
    +     * 
    + * + * 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; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Field to use to sort the list.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Field to use to sort the list.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Field to use to sort the list.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field to use to sort the list.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field to use to sort the list.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ListDeploymentGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListDeploymentGroupsRequest) + private static final com.google.cloud.config.v1.ListDeploymentGroupsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListDeploymentGroupsRequest(); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..456d9e1c8dc6 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsRequestOrBuilder.java @@ -0,0 +1,199 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface ListDeploymentGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListDeploymentGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment groups.
    +   * Format: 'projects/{project_id}/locations/{location}'.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of deployment groups.
    +   * Format: 'projects/{project_id}/locations/{location}'.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. When requesting a page of resources, 'page_size' specifies number
    +   * of resources to return. If unspecified, at most 500 will be returned. The
    +   * maximum value is 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. Token returned by previous call to 'ListDeploymentGroups' which
    +   * specifies the position in the list from where to continue listing the
    +   * deployment groups.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. Token returned by previous call to 'ListDeploymentGroups' which
    +   * specifies the position in the list from where to continue listing the
    +   * deployment groups.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Lists the DeploymentGroups that match the filter expression. A
    +   * filter expression filters the deployment groups listed in the response. The
    +   * expression must be of the form '{field} {operator} {value}' where
    +   * operators: '<', '>',
    +   * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +   * operator which is roughly synonymous with equality). {field} can refer to a
    +   * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +   * snake_case.
    +   *
    +   * Examples:
    +   * - Filter by name:
    +   * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +   *
    +   * - Filter by labels:
    +   * - Resources that have a key called 'foo'
    +   * labels.foo:*
    +   * - Resources that have a key called 'foo' whose value is 'bar'
    +   * labels.foo = bar
    +   *
    +   * - Filter by state:
    +   * - DeploymentGroups in CREATING state.
    +   * state=CREATING
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Lists the DeploymentGroups that match the filter expression. A
    +   * filter expression filters the deployment groups listed in the response. The
    +   * expression must be of the form '{field} {operator} {value}' where
    +   * operators: '<', '>',
    +   * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
    +   * operator which is roughly synonymous with equality). {field} can refer to a
    +   * proto or JSON field, or a synthetic field. Field names can be camelCase or
    +   * snake_case.
    +   *
    +   * Examples:
    +   * - Filter by name:
    +   * name = "projects/foo/locations/us-central1/deploymentGroups/bar"
    +   *
    +   * - Filter by labels:
    +   * - Resources that have a key called 'foo'
    +   * labels.foo:*
    +   * - Resources that have a key called 'foo' whose value is 'bar'
    +   * labels.foo = bar
    +   *
    +   * - Filter by state:
    +   * - DeploymentGroups in CREATING state.
    +   * state=CREATING
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Field to use to sort the list.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Field to use to sort the list.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsResponse.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsResponse.java new file mode 100644 index 000000000000..151d598463ae --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsResponse.java @@ -0,0 +1,1420 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The response message for the ListDeploymentGroups method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupsResponse} + */ +@com.google.protobuf.Generated +public final class ListDeploymentGroupsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListDeploymentGroupsResponse) + ListDeploymentGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDeploymentGroupsResponse"); + } + + // Use ListDeploymentGroupsResponse.newBuilder() to construct. + private ListDeploymentGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDeploymentGroupsResponse() { + deploymentGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupsResponse.class, + com.google.cloud.config.v1.ListDeploymentGroupsResponse.Builder.class); + } + + public static final int DEPLOYMENT_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deploymentGroups_; + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + @java.lang.Override + public java.util.List getDeploymentGroupsList() { + return deploymentGroups_; + } + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentGroupsOrBuilderList() { + return deploymentGroups_; + } + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + @java.lang.Override + public int getDeploymentGroupsCount() { + return deploymentGroups_.size(); + } + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroups(int index) { + return deploymentGroups_.get(index); + } + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupsOrBuilder( + int index) { + return deploymentGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * Token to be supplied to the next ListDeploymentGroups request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * 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 be supplied to the next ListDeploymentGroups request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deploymentGroups_.size(); i++) { + output.writeMessage(1, deploymentGroups_.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 < deploymentGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deploymentGroups_.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.config.v1.ListDeploymentGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListDeploymentGroupsResponse other = + (com.google.cloud.config.v1.ListDeploymentGroupsResponse) obj; + + if (!getDeploymentGroupsList().equals(other.getDeploymentGroupsList())) 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 (getDeploymentGroupsCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroupsList().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.config.v1.ListDeploymentGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse 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.config.v1.ListDeploymentGroupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse 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.config.v1.ListDeploymentGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse 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.config.v1.ListDeploymentGroupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 response message for the ListDeploymentGroups method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ListDeploymentGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListDeploymentGroupsResponse) + com.google.cloud.config.v1.ListDeploymentGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListDeploymentGroupsResponse.class, + com.google.cloud.config.v1.ListDeploymentGroupsResponse.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListDeploymentGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentGroupsBuilder_ == null) { + deploymentGroups_ = java.util.Collections.emptyList(); + } else { + deploymentGroups_ = null; + deploymentGroupsBuilder_.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.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsResponse getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListDeploymentGroupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsResponse build() { + com.google.cloud.config.v1.ListDeploymentGroupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsResponse buildPartial() { + com.google.cloud.config.v1.ListDeploymentGroupsResponse result = + new com.google.cloud.config.v1.ListDeploymentGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.config.v1.ListDeploymentGroupsResponse result) { + if (deploymentGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deploymentGroups_ = java.util.Collections.unmodifiableList(deploymentGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deploymentGroups_ = deploymentGroups_; + } else { + result.deploymentGroups_ = deploymentGroupsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.config.v1.ListDeploymentGroupsResponse 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.config.v1.ListDeploymentGroupsResponse) { + return mergeFrom((com.google.cloud.config.v1.ListDeploymentGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ListDeploymentGroupsResponse other) { + if (other == com.google.cloud.config.v1.ListDeploymentGroupsResponse.getDefaultInstance()) + return this; + if (deploymentGroupsBuilder_ == null) { + if (!other.deploymentGroups_.isEmpty()) { + if (deploymentGroups_.isEmpty()) { + deploymentGroups_ = other.deploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.addAll(other.deploymentGroups_); + } + onChanged(); + } + } else { + if (!other.deploymentGroups_.isEmpty()) { + if (deploymentGroupsBuilder_.isEmpty()) { + deploymentGroupsBuilder_.dispose(); + deploymentGroupsBuilder_ = null; + deploymentGroups_ = other.deploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDeploymentGroupsFieldBuilder() + : null; + } else { + deploymentGroupsBuilder_.addAllMessages(other.deploymentGroups_); + } + } + } + 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.config.v1.DeploymentGroup m = + input.readMessage( + com.google.cloud.config.v1.DeploymentGroup.parser(), extensionRegistry); + if (deploymentGroupsBuilder_ == null) { + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.add(m); + } else { + deploymentGroupsBuilder_.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 deploymentGroups_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deploymentGroups_ = + new java.util.ArrayList(deploymentGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + deploymentGroupsBuilder_; + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public java.util.List getDeploymentGroupsList() { + if (deploymentGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deploymentGroups_); + } else { + return deploymentGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public int getDeploymentGroupsCount() { + if (deploymentGroupsBuilder_ == null) { + return deploymentGroups_.size(); + } else { + return deploymentGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroups(int index) { + if (deploymentGroupsBuilder_ == null) { + return deploymentGroups_.get(index); + } else { + return deploymentGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder setDeploymentGroups( + int index, com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.set(index, value); + onChanged(); + } else { + deploymentGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder setDeploymentGroups( + int index, com.google.cloud.config.v1.DeploymentGroup.Builder builderForValue) { + if (deploymentGroupsBuilder_ == null) { + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder addDeploymentGroups(com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.add(value); + onChanged(); + } else { + deploymentGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder addDeploymentGroups( + int index, com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.add(index, value); + onChanged(); + } else { + deploymentGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder addDeploymentGroups( + com.google.cloud.config.v1.DeploymentGroup.Builder builderForValue) { + if (deploymentGroupsBuilder_ == null) { + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.add(builderForValue.build()); + onChanged(); + } else { + deploymentGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder addDeploymentGroups( + int index, com.google.cloud.config.v1.DeploymentGroup.Builder builderForValue) { + if (deploymentGroupsBuilder_ == null) { + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder addAllDeploymentGroups( + java.lang.Iterable values) { + if (deploymentGroupsBuilder_ == null) { + ensureDeploymentGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentGroups_); + onChanged(); + } else { + deploymentGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder clearDeploymentGroups() { + if (deploymentGroupsBuilder_ == null) { + deploymentGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public Builder removeDeploymentGroups(int index) { + if (deploymentGroupsBuilder_ == null) { + ensureDeploymentGroupsIsMutable(); + deploymentGroups_.remove(index); + onChanged(); + } else { + deploymentGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public com.google.cloud.config.v1.DeploymentGroup.Builder getDeploymentGroupsBuilder( + int index) { + return internalGetDeploymentGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupsOrBuilder( + int index) { + if (deploymentGroupsBuilder_ == null) { + return deploymentGroups_.get(index); + } else { + return deploymentGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public java.util.List + getDeploymentGroupsOrBuilderList() { + if (deploymentGroupsBuilder_ != null) { + return deploymentGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deploymentGroups_); + } + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public com.google.cloud.config.v1.DeploymentGroup.Builder addDeploymentGroupsBuilder() { + return internalGetDeploymentGroupsFieldBuilder() + .addBuilder(com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()); + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public com.google.cloud.config.v1.DeploymentGroup.Builder addDeploymentGroupsBuilder( + int index) { + return internalGetDeploymentGroupsFieldBuilder() + .addBuilder(index, com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()); + } + + /** + * + * + *
    +     * The deployment groups from the specified collection.
    +     * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + public java.util.List + getDeploymentGroupsBuilderList() { + return internalGetDeploymentGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + internalGetDeploymentGroupsFieldBuilder() { + if (deploymentGroupsBuilder_ == null) { + deploymentGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder>( + deploymentGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deploymentGroups_ = null; + } + return deploymentGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * Token to be supplied to the next ListDeploymentGroups request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * 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 be supplied to the next ListDeploymentGroups request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * 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 be supplied to the next ListDeploymentGroups request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * 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 be supplied to the next ListDeploymentGroups request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Token to be supplied to the next ListDeploymentGroups request via
    +     * `page_token` to obtain the next set of results.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ListDeploymentGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListDeploymentGroupsResponse) + private static final com.google.cloud.config.v1.ListDeploymentGroupsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListDeploymentGroupsResponse(); + } + + public static com.google.cloud.config.v1.ListDeploymentGroupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListDeploymentGroupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsResponseOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..abb0e632b8a5 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListDeploymentGroupsResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface ListDeploymentGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListDeploymentGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + java.util.List getDeploymentGroupsList(); + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + com.google.cloud.config.v1.DeploymentGroup getDeploymentGroups(int index); + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + int getDeploymentGroupsCount(); + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + java.util.List + getDeploymentGroupsOrBuilderList(); + + /** + * + * + *
    +   * The deployment groups from the specified collection.
    +   * 
    + * + * repeated .google.cloud.config.v1.DeploymentGroup deployment_groups = 1; + */ + com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupsOrBuilder(int index); + + /** + * + * + *
    +   * Token to be supplied to the next ListDeploymentGroups request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * Token to be supplied to the next ListDeploymentGroups request via
    +   * `page_token` to obtain the next set of results.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java index c5b05cbc2503..98ee57b4a233 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java @@ -85,6 +85,7 @@ public enum ResourceMetadataCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { DEPLOYMENT_METADATA(8), PREVIEW_METADATA(9), + PROVISION_DEPLOYMENT_GROUP_METADATA(10), RESOURCEMETADATA_NOT_SET(0); private final int value; @@ -108,6 +109,8 @@ public static ResourceMetadataCase forNumber(int value) { return DEPLOYMENT_METADATA; case 9: return PREVIEW_METADATA; + case 10: + return PROVISION_DEPLOYMENT_GROUP_METADATA; case 0: return RESOURCEMETADATA_NOT_SET; default: @@ -246,6 +249,72 @@ public com.google.cloud.config.v1.PreviewOperationMetadata getPreviewMetadata() return com.google.cloud.config.v1.PreviewOperationMetadata.getDefaultInstance(); } + public static final int PROVISION_DEPLOYMENT_GROUP_METADATA_FIELD_NUMBER = 10; + + /** + * + * + *
    +   * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisionDeploymentGroupMetadata field is set. + */ + @java.lang.Override + public boolean hasProvisionDeploymentGroupMetadata() { + return resourceMetadataCase_ == 10; + } + + /** + * + * + *
    +   * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisionDeploymentGroupMetadata. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + getProvisionDeploymentGroupMetadata() { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder + getProvisionDeploymentGroupMetadataOrBuilder() { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; @@ -628,6 +697,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 9, (com.google.cloud.config.v1.PreviewOperationMetadata) resourceMetadata_); } + if (resourceMetadataCase_ == 10) { + output.writeMessage( + 10, + (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) resourceMetadata_); + } getUnknownFields().writeTo(output); } @@ -668,6 +742,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, (com.google.cloud.config.v1.PreviewOperationMetadata) resourceMetadata_); } + if (resourceMetadataCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -705,6 +786,10 @@ public boolean equals(final java.lang.Object obj) { case 9: if (!getPreviewMetadata().equals(other.getPreviewMetadata())) return false; break; + case 10: + if (!getProvisionDeploymentGroupMetadata() + .equals(other.getProvisionDeploymentGroupMetadata())) return false; + break; case 0: default: } @@ -746,6 +831,10 @@ public int hashCode() { hash = (37 * hash) + PREVIEW_METADATA_FIELD_NUMBER; hash = (53 * hash) + getPreviewMetadata().hashCode(); break; + case 10: + hash = (37 * hash) + PROVISION_DEPLOYMENT_GROUP_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getProvisionDeploymentGroupMetadata().hashCode(); + break; case 0: default: } @@ -905,6 +994,9 @@ public Builder clear() { if (previewMetadataBuilder_ != null) { previewMetadataBuilder_.clear(); } + if (provisionDeploymentGroupMetadataBuilder_ != null) { + provisionDeploymentGroupMetadataBuilder_.clear(); + } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -960,27 +1052,27 @@ public com.google.cloud.config.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.config.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.target_ = target_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.verb_ = verb_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.statusMessage_ = statusMessage_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.requestedCancellation_ = requestedCancellation_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.apiVersion_ = apiVersion_; } result.bitField0_ |= to_bitField0_; @@ -995,6 +1087,9 @@ private void buildPartialOneofs(com.google.cloud.config.v1.OperationMetadata res if (resourceMetadataCase_ == 9 && previewMetadataBuilder_ != null) { result.resourceMetadata_ = previewMetadataBuilder_.build(); } + if (resourceMetadataCase_ == 10 && provisionDeploymentGroupMetadataBuilder_ != null) { + result.resourceMetadata_ = provisionDeploymentGroupMetadataBuilder_.build(); + } } @java.lang.Override @@ -1017,17 +1112,17 @@ public Builder mergeFrom(com.google.cloud.config.v1.OperationMetadata other) { } if (!other.getTarget().isEmpty()) { target_ = other.target_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getVerb().isEmpty()) { verb_ = other.verb_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getStatusMessage().isEmpty()) { statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.getRequestedCancellation() != false) { @@ -1035,7 +1130,7 @@ public Builder mergeFrom(com.google.cloud.config.v1.OperationMetadata other) { } if (!other.getApiVersion().isEmpty()) { apiVersion_ = other.apiVersion_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } switch (other.getResourceMetadataCase()) { @@ -1049,6 +1144,11 @@ public Builder mergeFrom(com.google.cloud.config.v1.OperationMetadata other) { mergePreviewMetadata(other.getPreviewMetadata()); break; } + case PROVISION_DEPLOYMENT_GROUP_METADATA: + { + mergeProvisionDeploymentGroupMetadata(other.getProvisionDeploymentGroupMetadata()); + break; + } case RESOURCEMETADATA_NOT_SET: { break; @@ -1084,43 +1184,43 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: { verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 42: { statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 42 case 48: { requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 48 case 58: { apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 66: @@ -1137,6 +1237,14 @@ public Builder mergeFrom( resourceMetadataCase_ = 9; break; } // case 74 + case 82: + { + input.readMessage( + internalGetProvisionDeploymentGroupMetadataFieldBuilder().getBuilder(), + extensionRegistry); + resourceMetadataCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1651,6 +1759,259 @@ public com.google.cloud.config.v1.PreviewOperationMetadata.Builder getPreviewMet return previewMetadataBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.Builder, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder> + provisionDeploymentGroupMetadataBuilder_; + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisionDeploymentGroupMetadata field is set. + */ + @java.lang.Override + public boolean hasProvisionDeploymentGroupMetadata() { + return resourceMetadataCase_ == 10; + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisionDeploymentGroupMetadata. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + getProvisionDeploymentGroupMetadata() { + if (provisionDeploymentGroupMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } else { + if (resourceMetadataCase_ == 10) { + return provisionDeploymentGroupMetadataBuilder_.getMessage(); + } + return com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisionDeploymentGroupMetadata( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata value) { + if (provisionDeploymentGroupMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceMetadata_ = value; + onChanged(); + } else { + provisionDeploymentGroupMetadataBuilder_.setMessage(value); + } + resourceMetadataCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisionDeploymentGroupMetadata( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.Builder + builderForValue) { + if (provisionDeploymentGroupMetadataBuilder_ == null) { + resourceMetadata_ = builderForValue.build(); + onChanged(); + } else { + provisionDeploymentGroupMetadataBuilder_.setMessage(builderForValue.build()); + } + resourceMetadataCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProvisionDeploymentGroupMetadata( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata value) { + if (provisionDeploymentGroupMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 10 + && resourceMetadata_ + != com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance()) { + resourceMetadata_ = + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.newBuilder( + (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceMetadata_ = value; + } + onChanged(); + } else { + if (resourceMetadataCase_ == 10) { + provisionDeploymentGroupMetadataBuilder_.mergeFrom(value); + } else { + provisionDeploymentGroupMetadataBuilder_.setMessage(value); + } + } + resourceMetadataCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProvisionDeploymentGroupMetadata() { + if (provisionDeploymentGroupMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 10) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + onChanged(); + } + } else { + if (resourceMetadataCase_ == 10) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + } + provisionDeploymentGroupMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.Builder + getProvisionDeploymentGroupMetadataBuilder() { + return internalGetProvisionDeploymentGroupMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder + getProvisionDeploymentGroupMetadataOrBuilder() { + if ((resourceMetadataCase_ == 10) && (provisionDeploymentGroupMetadataBuilder_ != null)) { + return provisionDeploymentGroupMetadataBuilder_.getMessageOrBuilder(); + } else { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.Builder, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder> + internalGetProvisionDeploymentGroupMetadataFieldBuilder() { + if (provisionDeploymentGroupMetadataBuilder_ == null) { + if (!(resourceMetadataCase_ == 10)) { + resourceMetadata_ = + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + provisionDeploymentGroupMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.Builder, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder>( + (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_, + getParentForChildren(), + isClean()); + resourceMetadata_ = null; + } + resourceMetadataCase_ = 10; + onChanged(); + return provisionDeploymentGroupMetadataBuilder_; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, @@ -1672,7 +2033,7 @@ public com.google.cloud.config.v1.PreviewOperationMetadata.Builder getPreviewMet * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1718,7 +2079,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1740,7 +2101,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1758,7 +2119,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -1769,7 +2130,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1787,7 +2148,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1809,7 +2170,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -1883,7 +2244,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1925,7 +2286,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1946,7 +2307,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1963,7 +2324,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -1974,7 +2335,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1991,7 +2352,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -2012,7 +2373,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetEndTimeFieldBuilder().getBuilder(); } @@ -2127,7 +2488,7 @@ public Builder setTarget(java.lang.String value) { throw new NullPointerException(); } target_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2145,7 +2506,7 @@ public Builder setTarget(java.lang.String value) { */ public Builder clearTarget() { target_ = getDefaultInstance().getTarget(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2168,7 +2529,7 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); target_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2238,7 +2599,7 @@ public Builder setVerb(java.lang.String value) { throw new NullPointerException(); } verb_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2256,7 +2617,7 @@ public Builder setVerb(java.lang.String value) { */ public Builder clearVerb() { verb_ = getDefaultInstance().getVerb(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2279,7 +2640,7 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); verb_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2349,7 +2710,7 @@ public Builder setStatusMessage(java.lang.String value) { throw new NullPointerException(); } statusMessage_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2367,7 +2728,7 @@ public Builder setStatusMessage(java.lang.String value) { */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2390,7 +2751,7 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); statusMessage_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2436,7 +2797,7 @@ public boolean getRequestedCancellation() { public Builder setRequestedCancellation(boolean value) { requestedCancellation_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2457,7 +2818,7 @@ public Builder setRequestedCancellation(boolean value) { * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); requestedCancellation_ = false; onChanged(); return this; @@ -2528,7 +2889,7 @@ public Builder setApiVersion(java.lang.String value) { throw new NullPointerException(); } apiVersion_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2546,7 +2907,7 @@ public Builder setApiVersion(java.lang.String value) { */ public Builder clearApiVersion() { apiVersion_ = getDefaultInstance().getApiVersion(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2569,7 +2930,7 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); apiVersion_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java index a9f2ee4c42c9..edddfd3bdef1 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java @@ -112,6 +112,51 @@ public interface OperationMetadataOrBuilder */ com.google.cloud.config.v1.PreviewOperationMetadataOrBuilder getPreviewMetadataOrBuilder(); + /** + * + * + *
    +   * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisionDeploymentGroupMetadata field is set. + */ + boolean hasProvisionDeploymentGroupMetadata(); + + /** + * + * + *
    +   * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisionDeploymentGroupMetadata. + */ + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + getProvisionDeploymentGroupMetadata(); + + /** + * + * + *
    +   * Output only. Metadata about ProvisionDeploymentGroup operation state.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata provision_deployment_group_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder + getProvisionDeploymentGroupMetadataOrBuilder(); + /** * * diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupOperationMetadata.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupOperationMetadata.java new file mode 100644 index 000000000000..c6b559892eaf --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupOperationMetadata.java @@ -0,0 +1,1518 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * Operation metadata for `ProvisionDeploymentGroup` and
    + * `DeprovisionDeploymentGroup` long-running operations.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata} + */ +@com.google.protobuf.Generated +public final class ProvisionDeploymentGroupOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + ProvisionDeploymentGroupOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProvisionDeploymentGroupOperationMetadata"); + } + + // Use ProvisionDeploymentGroupOperationMetadata.newBuilder() to construct. + private ProvisionDeploymentGroupOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProvisionDeploymentGroupOperationMetadata() { + step_ = 0; + deploymentUnitProgresses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.class, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.Builder.class); + } + + /** + * + * + *
    +   * Possible steps during a deployment group provisioning or deprovisioning
    +   * operation.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep} + */ + public enum ProvisionDeploymentGroupStep implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified step.
    +     * 
    + * + * PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED = 0; + */ + PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED(0), + /** + * + * + *
    +     * Validating the deployment group.
    +     * 
    + * + * VALIDATING_DEPLOYMENT_GROUP = 1; + */ + VALIDATING_DEPLOYMENT_GROUP(1), + /** + * + * + *
    +     * Locking the deployments to the deployment group for atomic actuation.
    +     * 
    + * + * ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP = 2; + */ + ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP(2), + /** + * + * + *
    +     * Provisioning the deployment units.
    +     * 
    + * + * PROVISIONING_DEPLOYMENT_UNITS = 3; + */ + PROVISIONING_DEPLOYMENT_UNITS(3), + /** + * + * + *
    +     * Unlocking the deployments from the deployment group after actuation.
    +     * 
    + * + * DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP = 4; + */ + DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP(4), + /** + * + * + *
    +     * The operation has succeeded.
    +     * 
    + * + * SUCCEEDED = 5; + */ + SUCCEEDED(5), + /** + * + * + *
    +     * The operation has failed.
    +     * 
    + * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
    +     * Deprovisioning the deployment units.
    +     * 
    + * + * DEPROVISIONING_DEPLOYMENT_UNITS = 7; + */ + DEPROVISIONING_DEPLOYMENT_UNITS(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProvisionDeploymentGroupStep"); + } + + /** + * + * + *
    +     * Unspecified step.
    +     * 
    + * + * PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED = 0; + */ + public static final int PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Validating the deployment group.
    +     * 
    + * + * VALIDATING_DEPLOYMENT_GROUP = 1; + */ + public static final int VALIDATING_DEPLOYMENT_GROUP_VALUE = 1; + + /** + * + * + *
    +     * Locking the deployments to the deployment group for atomic actuation.
    +     * 
    + * + * ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP = 2; + */ + public static final int ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP_VALUE = 2; + + /** + * + * + *
    +     * Provisioning the deployment units.
    +     * 
    + * + * PROVISIONING_DEPLOYMENT_UNITS = 3; + */ + public static final int PROVISIONING_DEPLOYMENT_UNITS_VALUE = 3; + + /** + * + * + *
    +     * Unlocking the deployments from the deployment group after actuation.
    +     * 
    + * + * DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP = 4; + */ + public static final int DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP_VALUE = 4; + + /** + * + * + *
    +     * The operation has succeeded.
    +     * 
    + * + * SUCCEEDED = 5; + */ + public static final int SUCCEEDED_VALUE = 5; + + /** + * + * + *
    +     * The operation has failed.
    +     * 
    + * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + /** + * + * + *
    +     * Deprovisioning the deployment units.
    +     * 
    + * + * DEPROVISIONING_DEPLOYMENT_UNITS = 7; + */ + public static final int DEPROVISIONING_DEPLOYMENT_UNITS_VALUE = 7; + + 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 ProvisionDeploymentGroupStep 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 ProvisionDeploymentGroupStep forNumber(int value) { + switch (value) { + case 0: + return PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED; + case 1: + return VALIDATING_DEPLOYMENT_GROUP; + case 2: + return ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP; + case 3: + return PROVISIONING_DEPLOYMENT_UNITS; + case 4: + return DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP; + case 5: + return SUCCEEDED; + case 6: + return FAILED; + case 7: + return DEPROVISIONING_DEPLOYMENT_UNITS; + 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 ProvisionDeploymentGroupStep findValueByNumber(int number) { + return ProvisionDeploymentGroupStep.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.config.v1.ProvisionDeploymentGroupOperationMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProvisionDeploymentGroupStep[] VALUES = values(); + + public static ProvisionDeploymentGroupStep 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 ProvisionDeploymentGroupStep(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep) + } + + public static final int STEP_FIELD_NUMBER = 1; + private int step_ = 0; + + /** + * + * + *
    +   * Output only. The current step of the deployment group operation.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for step. + */ + @java.lang.Override + public int getStepValue() { + return step_; + } + + /** + * + * + *
    +   * Output only. The current step of the deployment group operation.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The step. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep + getStep() { + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep + result = + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep.forNumber(step_); + return result == null + ? com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep.UNRECOGNIZED + : result; + } + + public static final int DEPLOYMENT_UNIT_PROGRESSES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + deploymentUnitProgresses_; + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeploymentUnitProgressesList() { + return deploymentUnitProgresses_; + } + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeploymentUnitProgressesOrBuilderList() { + return deploymentUnitProgresses_; + } + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDeploymentUnitProgressesCount() { + return deploymentUnitProgresses_.size(); + } + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgress getDeploymentUnitProgresses(int index) { + return deploymentUnitProgresses_.get(index); + } + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentUnitProgressOrBuilder + getDeploymentUnitProgressesOrBuilder(int index) { + return deploymentUnitProgresses_.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 (step_ + != com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep.PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, step_); + } + for (int i = 0; i < deploymentUnitProgresses_.size(); i++) { + output.writeMessage(2, deploymentUnitProgresses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (step_ + != com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep.PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, step_); + } + for (int i = 0; i < deploymentUnitProgresses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, deploymentUnitProgresses_.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.config.v1.ProvisionDeploymentGroupOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata other = + (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) obj; + + if (step_ != other.step_) return false; + if (!getDeploymentUnitProgressesList().equals(other.getDeploymentUnitProgressesList())) + return false; + if (!getUnknownFields().equals(other.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) + STEP_FIELD_NUMBER; + hash = (53 * hash) + step_; + if (getDeploymentUnitProgressesCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_UNIT_PROGRESSES_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentUnitProgressesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata 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.config.v1.ProvisionDeploymentGroupOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + 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.config.v1.ProvisionDeploymentGroupOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata 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.config.v1.ProvisionDeploymentGroupOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * Operation metadata for `ProvisionDeploymentGroup` and
    +   * `DeprovisionDeploymentGroup` long-running operations.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.class, + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + step_ = 0; + if (deploymentUnitProgressesBuilder_ == null) { + deploymentUnitProgresses_ = java.util.Collections.emptyList(); + } else { + deploymentUnitProgresses_ = null; + deploymentUnitProgressesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata build() { + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata buildPartial() { + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata result = + new com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata result) { + if (deploymentUnitProgressesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + deploymentUnitProgresses_ = + java.util.Collections.unmodifiableList(deploymentUnitProgresses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.deploymentUnitProgresses_ = deploymentUnitProgresses_; + } else { + result.deploymentUnitProgresses_ = deploymentUnitProgressesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) { + return mergeFrom( + (com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata other) { + if (other + == com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance()) return this; + if (other.step_ != 0) { + setStepValue(other.getStepValue()); + } + if (deploymentUnitProgressesBuilder_ == null) { + if (!other.deploymentUnitProgresses_.isEmpty()) { + if (deploymentUnitProgresses_.isEmpty()) { + deploymentUnitProgresses_ = other.deploymentUnitProgresses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.addAll(other.deploymentUnitProgresses_); + } + onChanged(); + } + } else { + if (!other.deploymentUnitProgresses_.isEmpty()) { + if (deploymentUnitProgressesBuilder_.isEmpty()) { + deploymentUnitProgressesBuilder_.dispose(); + deploymentUnitProgressesBuilder_ = null; + deploymentUnitProgresses_ = other.deploymentUnitProgresses_; + bitField0_ = (bitField0_ & ~0x00000002); + deploymentUnitProgressesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDeploymentUnitProgressesFieldBuilder() + : null; + } else { + deploymentUnitProgressesBuilder_.addAllMessages(other.deploymentUnitProgresses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + step_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.config.v1.DeploymentUnitProgress m = + input.readMessage( + com.google.cloud.config.v1.DeploymentUnitProgress.parser(), + extensionRegistry); + if (deploymentUnitProgressesBuilder_ == null) { + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.add(m); + } else { + deploymentUnitProgressesBuilder_.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 int step_ = 0; + + /** + * + * + *
    +     * Output only. The current step of the deployment group operation.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for step. + */ + @java.lang.Override + public int getStepValue() { + return step_; + } + + /** + * + * + *
    +     * Output only. The current step of the deployment group operation.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for step to set. + * @return This builder for chaining. + */ + public Builder setStepValue(int value) { + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The current step of the deployment group operation.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The step. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep + getStep() { + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep + result = + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep.forNumber(step_); + return result == null + ? com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The current step of the deployment group operation.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep( + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + .ProvisionDeploymentGroupStep + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + step_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The current step of the deployment group operation.
    +     * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000001); + step_ = 0; + onChanged(); + return this; + } + + private java.util.List + deploymentUnitProgresses_ = java.util.Collections.emptyList(); + + private void ensureDeploymentUnitProgressesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + deploymentUnitProgresses_ = + new java.util.ArrayList( + deploymentUnitProgresses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentUnitProgress, + com.google.cloud.config.v1.DeploymentUnitProgress.Builder, + com.google.cloud.config.v1.DeploymentUnitProgressOrBuilder> + deploymentUnitProgressesBuilder_; + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeploymentUnitProgressesList() { + if (deploymentUnitProgressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(deploymentUnitProgresses_); + } else { + return deploymentUnitProgressesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDeploymentUnitProgressesCount() { + if (deploymentUnitProgressesBuilder_ == null) { + return deploymentUnitProgresses_.size(); + } else { + return deploymentUnitProgressesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentUnitProgress getDeploymentUnitProgresses( + int index) { + if (deploymentUnitProgressesBuilder_ == null) { + return deploymentUnitProgresses_.get(index); + } else { + return deploymentUnitProgressesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentUnitProgresses( + int index, com.google.cloud.config.v1.DeploymentUnitProgress value) { + if (deploymentUnitProgressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.set(index, value); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentUnitProgresses( + int index, com.google.cloud.config.v1.DeploymentUnitProgress.Builder builderForValue) { + if (deploymentUnitProgressesBuilder_ == null) { + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgresses( + com.google.cloud.config.v1.DeploymentUnitProgress value) { + if (deploymentUnitProgressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.add(value); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgresses( + int index, com.google.cloud.config.v1.DeploymentUnitProgress value) { + if (deploymentUnitProgressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.add(index, value); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgresses( + com.google.cloud.config.v1.DeploymentUnitProgress.Builder builderForValue) { + if (deploymentUnitProgressesBuilder_ == null) { + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.add(builderForValue.build()); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgresses( + int index, com.google.cloud.config.v1.DeploymentUnitProgress.Builder builderForValue) { + if (deploymentUnitProgressesBuilder_ == null) { + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDeploymentUnitProgresses( + java.lang.Iterable values) { + if (deploymentUnitProgressesBuilder_ == null) { + ensureDeploymentUnitProgressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentUnitProgresses_); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentUnitProgresses() { + if (deploymentUnitProgressesBuilder_ == null) { + deploymentUnitProgresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDeploymentUnitProgresses(int index) { + if (deploymentUnitProgressesBuilder_ == null) { + ensureDeploymentUnitProgressesIsMutable(); + deploymentUnitProgresses_.remove(index); + onChanged(); + } else { + deploymentUnitProgressesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentUnitProgress.Builder + getDeploymentUnitProgressesBuilder(int index) { + return internalGetDeploymentUnitProgressesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentUnitProgressOrBuilder + getDeploymentUnitProgressesOrBuilder(int index) { + if (deploymentUnitProgressesBuilder_ == null) { + return deploymentUnitProgresses_.get(index); + } else { + return deploymentUnitProgressesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeploymentUnitProgressesOrBuilderList() { + if (deploymentUnitProgressesBuilder_ != null) { + return deploymentUnitProgressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deploymentUnitProgresses_); + } + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentUnitProgress.Builder + addDeploymentUnitProgressesBuilder() { + return internalGetDeploymentUnitProgressesFieldBuilder() + .addBuilder(com.google.cloud.config.v1.DeploymentUnitProgress.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.DeploymentUnitProgress.Builder + addDeploymentUnitProgressesBuilder(int index) { + return internalGetDeploymentUnitProgressesFieldBuilder() + .addBuilder( + index, com.google.cloud.config.v1.DeploymentUnitProgress.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. Progress information for each deployment unit within the
    +     * operation.
    +     * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeploymentUnitProgressesBuilderList() { + return internalGetDeploymentUnitProgressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentUnitProgress, + com.google.cloud.config.v1.DeploymentUnitProgress.Builder, + com.google.cloud.config.v1.DeploymentUnitProgressOrBuilder> + internalGetDeploymentUnitProgressesFieldBuilder() { + if (deploymentUnitProgressesBuilder_ == null) { + deploymentUnitProgressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.DeploymentUnitProgress, + com.google.cloud.config.v1.DeploymentUnitProgress.Builder, + com.google.cloud.config.v1.DeploymentUnitProgressOrBuilder>( + deploymentUnitProgresses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + deploymentUnitProgresses_ = null; + } + return deploymentUnitProgressesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + private static final com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata(); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisionDeploymentGroupOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupOperationMetadataOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..f89bf05c9aca --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupOperationMetadataOrBuilder.java @@ -0,0 +1,132 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface ProvisionDeploymentGroupOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The current step of the deployment group operation.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for step. + */ + int getStepValue(); + + /** + * + * + *
    +   * Output only. The current step of the deployment group operation.
    +   * 
    + * + * + * .google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The step. + */ + com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep + getStep(); + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDeploymentUnitProgressesList(); + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.DeploymentUnitProgress getDeploymentUnitProgresses(int index); + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDeploymentUnitProgressesCount(); + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDeploymentUnitProgressesOrBuilderList(); + + /** + * + * + *
    +   * Output only. Progress information for each deployment unit within the
    +   * operation.
    +   * 
    + * + * + * repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.DeploymentUnitProgressOrBuilder getDeploymentUnitProgressesOrBuilder( + int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupRequest.java new file mode 100644 index 000000000000..b71c3948c3fe --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupRequest.java @@ -0,0 +1,1159 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * The request message for the ProvisionDeploymentGroup method.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ProvisionDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class ProvisionDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ProvisionDeploymentGroupRequest) + ProvisionDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProvisionDeploymentGroupRequest"); + } + + // Use ProvisionDeploymentGroupRequest.newBuilder() to construct. + private ProvisionDeploymentGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProvisionDeploymentGroupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetDeploymentSpecs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.class, + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the deployment group to provision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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 deployment group to provision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * 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 DEPLOYMENT_SPECS_FIELD_NUMBER = 3; + + private static final class DeploymentSpecsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.config.v1.DeploymentSpec> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_DeploymentSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.config.v1.DeploymentSpec.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + deploymentSpecs_; + + private com.google.protobuf.MapField + internalGetDeploymentSpecs() { + if (deploymentSpecs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DeploymentSpecsDefaultEntryHolder.defaultEntry); + } + return deploymentSpecs_; + } + + public int getDeploymentSpecsCount() { + return internalGetDeploymentSpecs().getMap().size(); + } + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDeploymentSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDeploymentSpecs().getMap().containsKey(key); + } + + /** Use {@link #getDeploymentSpecsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getDeploymentSpecs() { + return getDeploymentSpecsMap(); + } + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getDeploymentSpecsMap() { + return internalGetDeploymentSpecs().getMap(); + } + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.config.v1.DeploymentSpec getDeploymentSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.config.v1.DeploymentSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDeploymentSpecs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSpec getDeploymentSpecsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDeploymentSpecs().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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetDeploymentSpecs(), DeploymentSpecsDefaultEntryHolder.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(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry : + internalGetDeploymentSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry + deploymentSpecs__ = + DeploymentSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, deploymentSpecs__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.ProvisionDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest other = + (com.google.cloud.config.v1.ProvisionDeploymentGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!internalGetDeploymentSpecs().equals(other.internalGetDeploymentSpecs())) return false; + if (!getUnknownFields().equals(other.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 (!internalGetDeploymentSpecs().getMap().isEmpty()) { + hash = (37 * hash) + DEPLOYMENT_SPECS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDeploymentSpecs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest 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.config.v1.ProvisionDeploymentGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest 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.config.v1.ProvisionDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest 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.config.v1.ProvisionDeploymentGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for the ProvisionDeploymentGroup method.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ProvisionDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ProvisionDeploymentGroupRequest) + com.google.cloud.config.v1.ProvisionDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetDeploymentSpecs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableDeploymentSpecs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.class, + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + internalGetMutableDeploymentSpecs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProvisionDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupRequest build() { + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupRequest buildPartial() { + com.google.cloud.config.v1.ProvisionDeploymentGroupRequest result = + new com.google.cloud.config.v1.ProvisionDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ProvisionDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentSpecs_ = + internalGetDeploymentSpecs().build(DeploymentSpecsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ProvisionDeploymentGroupRequest) { + return mergeFrom((com.google.cloud.config.v1.ProvisionDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ProvisionDeploymentGroupRequest other) { + if (other == com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableDeploymentSpecs().mergeFrom(other.internalGetDeploymentSpecs()); + bitField0_ |= 0x00000002; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.config.v1.DeploymentSpec> + deploymentSpecs__ = + input.readMessage( + DeploymentSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDeploymentSpecs() + .ensureBuilderMap() + .put(deploymentSpecs__.getKey(), deploymentSpecs__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the deployment group to provision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to provision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to provision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to provision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 deployment group to provision.
    +     * Format:
    +     * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +     * 
    + * + * + * 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 static final class DeploymentSpecsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.config.v1.DeploymentSpecOrBuilder, + com.google.cloud.config.v1.DeploymentSpec> { + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSpec build( + com.google.cloud.config.v1.DeploymentSpecOrBuilder val) { + if (val instanceof com.google.cloud.config.v1.DeploymentSpec) { + return (com.google.cloud.config.v1.DeploymentSpec) val; + } + return ((com.google.cloud.config.v1.DeploymentSpec.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.config.v1.DeploymentSpec> + defaultEntry() { + return DeploymentSpecsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final DeploymentSpecsConverter deploymentSpecsConverter = + new DeploymentSpecsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.config.v1.DeploymentSpecOrBuilder, + com.google.cloud.config.v1.DeploymentSpec, + com.google.cloud.config.v1.DeploymentSpec.Builder> + deploymentSpecs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.config.v1.DeploymentSpecOrBuilder, + com.google.cloud.config.v1.DeploymentSpec, + com.google.cloud.config.v1.DeploymentSpec.Builder> + internalGetDeploymentSpecs() { + if (deploymentSpecs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(deploymentSpecsConverter); + } + return deploymentSpecs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.config.v1.DeploymentSpecOrBuilder, + com.google.cloud.config.v1.DeploymentSpec, + com.google.cloud.config.v1.DeploymentSpec.Builder> + internalGetMutableDeploymentSpecs() { + if (deploymentSpecs_ == null) { + deploymentSpecs_ = new com.google.protobuf.MapFieldBuilder<>(deploymentSpecsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return deploymentSpecs_; + } + + public int getDeploymentSpecsCount() { + return internalGetDeploymentSpecs().ensureBuilderMap().size(); + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDeploymentSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDeploymentSpecs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getDeploymentSpecsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getDeploymentSpecs() { + return getDeploymentSpecsMap(); + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getDeploymentSpecsMap() { + return internalGetDeploymentSpecs().getImmutableMap(); + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.config.v1.DeploymentSpec getDeploymentSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.config.v1.DeploymentSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableDeploymentSpecs().ensureBuilderMap(); + return map.containsKey(key) ? deploymentSpecsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentSpec getDeploymentSpecsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableDeploymentSpecs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return deploymentSpecsConverter.build(map.get(key)); + } + + public Builder clearDeploymentSpecs() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableDeploymentSpecs().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDeploymentSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDeploymentSpecs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableDeploymentSpecs() { + bitField0_ |= 0x00000002; + return internalGetMutableDeploymentSpecs().ensureMessageMap(); + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putDeploymentSpecs( + java.lang.String key, com.google.cloud.config.v1.DeploymentSpec value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDeploymentSpecs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllDeploymentSpecs( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableDeploymentSpecs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
    +     * Optional. The deployment specs of the deployment units to be created within
    +     * the same project and location of the deployment group. The key is the unit
    +     * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +     * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +     * in the same project and location. If an existing deployment was part of the
    +     * last successful revision but is no longer in the current DeploymentGroup's
    +     * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.config.v1.DeploymentSpec.Builder putDeploymentSpecsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableDeploymentSpecs().ensureBuilderMap(); + com.google.cloud.config.v1.DeploymentSpecOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.config.v1.DeploymentSpec.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.config.v1.DeploymentSpec) { + entry = ((com.google.cloud.config.v1.DeploymentSpec) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.config.v1.DeploymentSpec.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ProvisionDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ProvisionDeploymentGroupRequest) + private static final com.google.cloud.config.v1.ProvisionDeploymentGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ProvisionDeploymentGroupRequest(); + } + + public static com.google.cloud.config.v1.ProvisionDeploymentGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisionDeploymentGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProvisionDeploymentGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..a0021e7cb3ff --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProvisionDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface ProvisionDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ProvisionDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the deployment group to provision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the deployment group to provision.
    +   * Format:
    +   * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDeploymentSpecsCount(); + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsDeploymentSpecs(java.lang.String key); + + /** Use {@link #getDeploymentSpecsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDeploymentSpecs(); + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getDeploymentSpecsMap(); + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.config.v1.DeploymentSpec getDeploymentSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.config.v1.DeploymentSpec defaultValue); + + /** + * + * + *
    +   * Optional. The deployment specs of the deployment units to be created within
    +   * the same project and location of the deployment group. The key is the unit
    +   * ID, and the value is the `DeploymentSpec`. Provisioning will fail if a
    +   * `deployment_spec` has a `deployment_id` that matches an existing deployment
    +   * in the same project and location. If an existing deployment was part of the
    +   * last successful revision but is no longer in the current DeploymentGroup's
    +   * `deployment_units`, it will be recreated if included in `deployment_specs`.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.config.v1.DeploymentSpec getDeploymentSpecsOrThrow(java.lang.String key); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java index b06664808491..0af7ba6a2c06 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java @@ -66,6 +66,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 4: return internalGetInputValues(); + case 5: + return internalGetExternalValues(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -396,6 +398,139 @@ public com.google.cloud.config.v1.TerraformVariable getInputValuesOrThrow(java.l return map.get(key); } + public static final int EXTERNAL_VALUES_FIELD_NUMBER = 5; + + private static final class ExternalValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.config.v1.ExternalValueSource> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_TerraformBlueprint_ExternalValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.config.v1.ExternalValueSource.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.config.v1.ExternalValueSource> + externalValues_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.config.v1.ExternalValueSource> + internalGetExternalValues() { + if (externalValues_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ExternalValuesDefaultEntryHolder.defaultEntry); + } + return externalValues_; + } + + public int getExternalValuesCount() { + return internalGetExternalValues().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsExternalValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetExternalValues().getMap().containsKey(key); + } + + /** Use {@link #getExternalValuesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getExternalValues() { + return getExternalValuesMap(); + } + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getExternalValuesMap() { + return internalGetExternalValues().getMap(); + } + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.config.v1.ExternalValueSource getExternalValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.config.v1.ExternalValueSource defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetExternalValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ExternalValueSource getExternalValuesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetExternalValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -418,6 +553,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetInputValues(), InputValuesDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetExternalValues(), ExternalValuesDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @@ -446,6 +583,17 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputValues__); } + for (java.util.Map.Entry + entry : internalGetExternalValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + externalValues__ = + ExternalValuesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, externalValues__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -463,6 +611,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.config.v1.TerraformBlueprint) obj; if (!internalGetInputValues().equals(other.internalGetInputValues())) return false; + if (!internalGetExternalValues().equals(other.internalGetExternalValues())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: @@ -489,6 +638,10 @@ public int hashCode() { hash = (37 * hash) + INPUT_VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetInputValues().hashCode(); } + if (!internalGetExternalValues().getMap().isEmpty()) { + hash = (37 * hash) + EXTERNAL_VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetExternalValues().hashCode(); + } switch (sourceCase_) { case 1: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -627,6 +780,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 4: return internalGetInputValues(); + case 5: + return internalGetExternalValues(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -638,6 +793,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 4: return internalGetMutableInputValues(); + case 5: + return internalGetMutableExternalValues(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -668,6 +825,7 @@ public Builder clear() { gitSourceBuilder_.clear(); } internalGetMutableInputValues().clear(); + internalGetMutableExternalValues().clear(); sourceCase_ = 0; source_ = null; return this; @@ -711,6 +869,10 @@ private void buildPartial0(com.google.cloud.config.v1.TerraformBlueprint result) result.inputValues_ = internalGetInputValues().build(InputValuesDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.externalValues_ = + internalGetExternalValues().build(ExternalValuesDefaultEntryHolder.defaultEntry); + } } private void buildPartialOneofs(com.google.cloud.config.v1.TerraformBlueprint result) { @@ -735,6 +897,8 @@ public Builder mergeFrom(com.google.cloud.config.v1.TerraformBlueprint other) { if (other == com.google.cloud.config.v1.TerraformBlueprint.getDefaultInstance()) return this; internalGetMutableInputValues().mergeFrom(other.internalGetInputValues()); bitField0_ |= 0x00000004; + internalGetMutableExternalValues().mergeFrom(other.internalGetExternalValues()); + bitField0_ |= 0x00000008; switch (other.getSourceCase()) { case GCS_SOURCE: { @@ -807,6 +971,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 42: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.config.v1.ExternalValueSource> + externalValues__ = + input.readMessage( + ExternalValuesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableExternalValues() + .ensureBuilderMap() + .put(externalValues__.getKey(), externalValues__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1481,6 +1659,278 @@ public com.google.cloud.config.v1.TerraformVariable.Builder putInputValuesBuilde return (com.google.cloud.config.v1.TerraformVariable.Builder) entry; } + private static final class ExternalValuesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.config.v1.ExternalValueSourceOrBuilder, + com.google.cloud.config.v1.ExternalValueSource> { + @java.lang.Override + public com.google.cloud.config.v1.ExternalValueSource build( + com.google.cloud.config.v1.ExternalValueSourceOrBuilder val) { + if (val instanceof com.google.cloud.config.v1.ExternalValueSource) { + return (com.google.cloud.config.v1.ExternalValueSource) val; + } + return ((com.google.cloud.config.v1.ExternalValueSource.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.config.v1.ExternalValueSource> + defaultEntry() { + return ExternalValuesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ExternalValuesConverter externalValuesConverter = + new ExternalValuesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.config.v1.ExternalValueSourceOrBuilder, + com.google.cloud.config.v1.ExternalValueSource, + com.google.cloud.config.v1.ExternalValueSource.Builder> + externalValues_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.config.v1.ExternalValueSourceOrBuilder, + com.google.cloud.config.v1.ExternalValueSource, + com.google.cloud.config.v1.ExternalValueSource.Builder> + internalGetExternalValues() { + if (externalValues_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(externalValuesConverter); + } + return externalValues_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.config.v1.ExternalValueSourceOrBuilder, + com.google.cloud.config.v1.ExternalValueSource, + com.google.cloud.config.v1.ExternalValueSource.Builder> + internalGetMutableExternalValues() { + if (externalValues_ == null) { + externalValues_ = new com.google.protobuf.MapFieldBuilder<>(externalValuesConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return externalValues_; + } + + public int getExternalValuesCount() { + return internalGetExternalValues().ensureBuilderMap().size(); + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsExternalValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetExternalValues().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getExternalValuesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getExternalValues() { + return getExternalValuesMap(); + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getExternalValuesMap() { + return internalGetExternalValues().getImmutableMap(); + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.config.v1.ExternalValueSource getExternalValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.config.v1.ExternalValueSource defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableExternalValues().ensureBuilderMap(); + return map.containsKey(key) ? externalValuesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ExternalValueSource getExternalValuesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableExternalValues().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return externalValuesConverter.build(map.get(key)); + } + + public Builder clearExternalValues() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableExternalValues().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExternalValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableExternalValues().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableExternalValues() { + bitField0_ |= 0x00000008; + return internalGetMutableExternalValues().ensureMessageMap(); + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putExternalValues( + java.lang.String key, com.google.cloud.config.v1.ExternalValueSource value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableExternalValues().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllExternalValues( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableExternalValues().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
    +     * Optional. Map of input variable names in this blueprint to configurations
    +     * for importing values from external sources.
    +     * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.config.v1.ExternalValueSource.Builder putExternalValuesBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableExternalValues().ensureBuilderMap(); + com.google.cloud.config.v1.ExternalValueSourceOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.config.v1.ExternalValueSource.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.config.v1.ExternalValueSource) { + entry = ((com.google.cloud.config.v1.ExternalValueSource) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.config.v1.ExternalValueSource.Builder) entry; + } + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.TerraformBlueprint) } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java index f194c7c8ef17..bd3c9dd66a11 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java @@ -187,5 +187,85 @@ com.google.cloud.config.v1.TerraformVariable getInputValuesOrDefault( */ com.google.cloud.config.v1.TerraformVariable getInputValuesOrThrow(java.lang.String key); + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExternalValuesCount(); + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsExternalValues(java.lang.String key); + + /** Use {@link #getExternalValuesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getExternalValues(); + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getExternalValuesMap(); + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.config.v1.ExternalValueSource getExternalValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.config.v1.ExternalValueSource defaultValue); + + /** + * + * + *
    +   * Optional. Map of input variable names in this blueprint to configurations
    +   * for importing values from external sources.
    +   * 
    + * + * + * map<string, .google.cloud.config.v1.ExternalValueSource> external_values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.config.v1.ExternalValueSource getExternalValuesOrThrow(java.lang.String key); + com.google.cloud.config.v1.TerraformBlueprint.SourceCase getSourceCase(); } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/UpdateDeploymentGroupRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/UpdateDeploymentGroupRequest.java new file mode 100644 index 000000000000..714ae0007379 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/UpdateDeploymentGroupRequest.java @@ -0,0 +1,1423 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +/** + * + * + *
    + * A request message for updating a deployment group
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.UpdateDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.UpdateDeploymentGroupRequest) + UpdateDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateDeploymentGroupRequest"); + } + + // Use UpdateDeploymentGroupRequest.newBuilder() to construct. + private UpdateDeploymentGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDeploymentGroupRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.UpdateDeploymentGroupRequest.class, + com.google.cloud.config.v1.UpdateDeploymentGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Optional. Field mask used to specify the fields to be overwritten in the
    +   * Deployment Group resource by the update.
    +   *
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. Field mask used to specify the fields to be overwritten in the
    +   * Deployment Group resource by the update.
    +   *
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask used to specify the fields to be overwritten in the
    +   * Deployment Group resource by the update.
    +   *
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.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 DEPLOYMENT_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.config.v1.DeploymentGroup deploymentGroup_; + + /** + * + * + *
    +   * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +   * update.
    +   *
    +   * The deployment group's `name` field is used to identify the resource to be
    +   * updated. Format:
    +   * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentGroup field is set. + */ + @java.lang.Override + public boolean hasDeploymentGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +   * update.
    +   *
    +   * The deployment group's `name` field is used to identify the resource to be
    +   * updated. Format:
    +   * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentGroup. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup() { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + + /** + * + * + *
    +   * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +   * update.
    +   *
    +   * The deployment group's `name` field is used to identify the resource to be
    +   * updated. Format:
    +   * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder() { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDeploymentGroup()); + } + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentGroup()); + } + 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.config.v1.UpdateDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.UpdateDeploymentGroupRequest other = + (com.google.cloud.config.v1.UpdateDeploymentGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasDeploymentGroup() != other.hasDeploymentGroup()) return false; + if (hasDeploymentGroup()) { + if (!getDeploymentGroup().equals(other.getDeploymentGroup())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasDeploymentGroup()) { + hash = (37 * hash) + DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroup().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.config.v1.UpdateDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest 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.config.v1.UpdateDeploymentGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest 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.config.v1.UpdateDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest 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.config.v1.UpdateDeploymentGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request message for updating a deployment group
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.UpdateDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.UpdateDeploymentGroupRequest) + com.google.cloud.config.v1.UpdateDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.UpdateDeploymentGroupRequest.class, + com.google.cloud.config.v1.UpdateDeploymentGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.UpdateDeploymentGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetDeploymentGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + deploymentGroup_ = null; + if (deploymentGroupBuilder_ != null) { + deploymentGroupBuilder_.dispose(); + deploymentGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_UpdateDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.UpdateDeploymentGroupRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.UpdateDeploymentGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.UpdateDeploymentGroupRequest build() { + com.google.cloud.config.v1.UpdateDeploymentGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.UpdateDeploymentGroupRequest buildPartial() { + com.google.cloud.config.v1.UpdateDeploymentGroupRequest result = + new com.google.cloud.config.v1.UpdateDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.UpdateDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentGroup_ = + deploymentGroupBuilder_ == null ? deploymentGroup_ : deploymentGroupBuilder_.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.config.v1.UpdateDeploymentGroupRequest) { + return mergeFrom((com.google.cloud.config.v1.UpdateDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.UpdateDeploymentGroupRequest other) { + if (other == com.google.cloud.config.v1.UpdateDeploymentGroupRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasDeploymentGroup()) { + mergeDeploymentGroup(other.getDeploymentGroup()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDeploymentGroupFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Optional. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask used to specify the fields to be overwritten in the
    +     * Deployment Group resource by the update.
    +     *
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.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 com.google.cloud.config.v1.DeploymentGroup deploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + deploymentGroupBuilder_; + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentGroup field is set. + */ + public boolean hasDeploymentGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentGroup. + */ + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup() { + if (deploymentGroupBuilder_ == null) { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } else { + return deploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeploymentGroup(com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentGroup_ = value; + } else { + deploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeploymentGroup( + com.google.cloud.config.v1.DeploymentGroup.Builder builderForValue) { + if (deploymentGroupBuilder_ == null) { + deploymentGroup_ = builderForValue.build(); + } else { + deploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeploymentGroup(com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && deploymentGroup_ != null + && deploymentGroup_ + != com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()) { + getDeploymentGroupBuilder().mergeFrom(value); + } else { + deploymentGroup_ = value; + } + } else { + deploymentGroupBuilder_.mergeFrom(value); + } + if (deploymentGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + deploymentGroup_ = null; + if (deploymentGroupBuilder_ != null) { + deploymentGroupBuilder_.dispose(); + deploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.config.v1.DeploymentGroup.Builder getDeploymentGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder() { + if (deploymentGroupBuilder_ != null) { + return deploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + } + + /** + * + * + *
    +     * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +     * update.
    +     *
    +     * The deployment group's `name` field is used to identify the resource to be
    +     * updated. Format:
    +     * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +     * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + internalGetDeploymentGroupFieldBuilder() { + if (deploymentGroupBuilder_ == null) { + deploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder>( + getDeploymentGroup(), getParentForChildren(), isClean()); + deploymentGroup_ = null; + } + return deploymentGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and the
    +     * request times out. If you make the request again with the same request ID,
    +     * the server can check if original operation with the same request ID was
    +     * received, and if so, will ignore the second request. This prevents clients
    +     * from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * + * string request_id = 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.config.v1.UpdateDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.UpdateDeploymentGroupRequest) + private static final com.google.cloud.config.v1.UpdateDeploymentGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.UpdateDeploymentGroupRequest(); + } + + public static com.google.cloud.config.v1.UpdateDeploymentGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeploymentGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.UpdateDeploymentGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/UpdateDeploymentGroupRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/UpdateDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..f0d3622cce67 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/UpdateDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,195 @@ +/* + * 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/config/v1/config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.config.v1; + +@com.google.protobuf.Generated +public interface UpdateDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.UpdateDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Field mask used to specify the fields to be overwritten in the
    +   * Deployment Group resource by the update.
    +   *
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Optional. Field mask used to specify the fields to be overwritten in the
    +   * Deployment Group resource by the update.
    +   *
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Optional. Field mask used to specify the fields to be overwritten in the
    +   * Deployment Group resource by the update.
    +   *
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
    +   * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +   * update.
    +   *
    +   * The deployment group's `name` field is used to identify the resource to be
    +   * updated. Format:
    +   * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentGroup field is set. + */ + boolean hasDeploymentGroup(); + + /** + * + * + *
    +   * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +   * update.
    +   *
    +   * The deployment group's `name` field is used to identify the resource to be
    +   * updated. Format:
    +   * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentGroup. + */ + com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup(); + + /** + * + * + *
    +   * Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to
    +   * update.
    +   *
    +   * The deployment group's `name` field is used to identify the resource to be
    +   * updated. Format:
    +   * `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}`
    +   * 
    + * + * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and the
    +   * request times out. If you make the request again with the same request ID,
    +   * the server can check if original operation with the same request ID was
    +   * received, and if so, will ignore the second request. This prevents clients
    +   * from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto index c45d7e95e386..d3697f6d1b07 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto @@ -345,6 +345,134 @@ service Config { metadata_type: "OperationMetadata" }; } + + // Get a DeploymentGroup for a given project and location. + rpc GetDeploymentGroup(GetDeploymentGroupRequest) returns (DeploymentGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/deploymentGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + // The newly created DeploymentGroup will be in the `CREATING` state + // and can be retrieved via Get and List calls. + rpc CreateDeploymentGroup(CreateDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/deploymentGroups" + body: "deployment_group" + }; + option (google.api.method_signature) = + "parent,deployment_group,deployment_group_id"; + option (google.longrunning.operation_info) = { + response_type: "DeploymentGroup" + metadata_type: "OperationMetadata" + }; + } + + // Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + rpc UpdateDeploymentGroup(UpdateDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{deployment_group.name=projects/*/locations/*/deploymentGroups/*}" + body: "deployment_group" + }; + option (google.api.method_signature) = "deployment_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "DeploymentGroup" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + rpc DeleteDeploymentGroup(DeleteDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/deploymentGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "DeploymentGroup" + metadata_type: "OperationMetadata" + }; + } + + // List DeploymentGroups for a given project and location. + rpc ListDeploymentGroups(ListDeploymentGroupsRequest) + returns (ListDeploymentGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/deploymentGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Provisions a deployment group. + // + // NOTE: As a first step of this operation, Infra Manager will + // automatically delete any Deployments that were part of the + // *last successful* + // [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] + // but are *no longer* included in the *current* + // [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., + // following an `UpdateDeploymentGroup` call), along with their actuated + // resources. + rpc ProvisionDeploymentGroup(ProvisionDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/deploymentGroups/*}:provision" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "DeploymentGroup" + metadata_type: "OperationMetadata" + }; + } + + // Deprovisions a deployment group. + // + // NOTE: As a first step of this operation, Infra Manager will + // automatically delete any Deployments that were part of the + // *last successful* + // [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] + // but are *no longer* included in the *current* + // [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., + // following an `UpdateDeploymentGroup` call), along with their actuated + // resources. + rpc DeprovisionDeploymentGroup(DeprovisionDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/deploymentGroups/*}:deprovision" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "DeploymentGroup" + metadata_type: "OperationMetadata" + }; + } + + // Gets details about a + // [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]. + rpc GetDeploymentGroupRevision(GetDeploymentGroupRevisionRequest) + returns (DeploymentGroupRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/deploymentGroups/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists + // [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s + // in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + rpc ListDeploymentGroupRevisions(ListDeploymentGroupRevisionsRequest) + returns (ListDeploymentGroupRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/deploymentGroups/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } } // Enum values to control quota checks for resources in terraform @@ -602,6 +730,11 @@ message TerraformBlueprint { // Optional. Input variable values for the Terraform blueprint. map input_values = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Map of input variable names in this blueprint to configurations + // for importing values from external sources. + map external_values = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A Terraform input variable. @@ -611,6 +744,33 @@ message TerraformVariable { [(google.api.field_behavior) = OPTIONAL]; } +// Configuration for a source of an external value. +message ExternalValueSource { + // The source of the external value. + oneof source { + // A source from a Deployment. + DeploymentSource deployment_source = 1; + } +} + +// Configuration for a value sourced from a Deployment. +message DeploymentSource { + // Required. The resource name of the source Deployment to import the output + // from. Format: + // projects/{project}/locations/{location}/deployments/{deployment} The source + // deployment must be in the same project and location. + string deployment = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/Deployment" + } + ]; + + // Required. The name of the output variable in the source deployment's latest + // successfully applied revision. + string output_name = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Outputs and artifacts from applying a deployment. message ApplyResults { // Location of a blueprint copy and other manifests in Google Cloud Storage. @@ -810,6 +970,146 @@ message CreateDeploymentRequest { string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } +// A request to create a deployment group +message CreateDeploymentGroupRequest { + // Required. The parent in whose context the Deployment Group is created. The + // parent value is in the format: 'projects/{project_id}/locations/{location}' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The deployment group ID. + string deployment_group_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. [Deployment Group][] resource to create + DeploymentGroup deployment_group = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A request message for updating a deployment group +message UpdateDeploymentGroupRequest { + // Optional. Field mask used to specify the fields to be overwritten in the + // Deployment Group resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] to + // update. + // + // The deployment group's `name` field is used to identify the resource to be + // updated. Format: + // `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}` + DeploymentGroup deployment_group = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for Delete DeploymentGroup +message DeleteDeploymentGroupRequest { + // Policy on how to handle referenced deployments when deleting the + // DeploymentGroup. + enum DeploymentReferencePolicy { + // The default behavior. If unspecified, the system will act as if + // `FAIL_IF_ANY_REFERENCES_EXIST` is specified. + DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED = 0; + + // Fail the deletion if any deployments currently referenced in the + // `deployment_units` of the DeploymentGroup or in the latest revision + // are not deleted. + FAIL_IF_ANY_REFERENCES_EXIST = 1; + + // Fail the deletion only if any deployments currently referenced in the + // `deployment_units` of the DeploymentGroup are not deleted. + // The deletion will proceed even if the deployments in the latest revision + // of the DeploymentGroup are not deleted. + FAIL_IF_METADATA_REFERENCES_EXIST = 2; + + // Ignore any deployments currently referenced in the + // `deployment_units` of the DeploymentGroup or in the latest revision. + IGNORE_DEPLOYMENT_REFERENCES = 3; + } + + // Required. The name of DeploymentGroup in the format + // projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/DeploymentGroup" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. If set to true, any revisions for this deployment group will also + // be deleted. (Otherwise, the request will only work if the deployment group + // has no revisions.) + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Policy on how to handle referenced deployments when deleting the + // DeploymentGroup. + // If unspecified, the default behavior is to fail the deletion if any + // deployments currently referenced in the `deployment_units` of the + // DeploymentGroup or in the latest revision are not deleted. + DeploymentReferencePolicy deployment_reference_policy = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + message UpdateDeploymentRequest { // Optional. Field mask used to specify the fields to be overwritten in the // Deployment resource by the update. @@ -903,6 +1203,11 @@ message OperationMetadata { // Output only. Metadata about the preview operation state. PreviewOperationMetadata preview_metadata = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata about ProvisionDeploymentGroup operation state. + ProvisionDeploymentGroupOperationMetadata + provision_deployment_group_metadata = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. Time when the operation was created. @@ -2354,3 +2659,506 @@ message UpdateAutoMigrationConfigRequest { AutoMigrationConfig auto_migration_config = 2 [(google.api.field_behavior) = REQUIRED]; } + +// A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like +// structure. +message DeploymentGroup { + option (google.api.resource) = { + type: "config.googleapis.com/DeploymentGroup" + pattern: "projects/{project}/locations/{location}/deploymentGroups/{deployment_group}" + plural: "deploymentGroups" + singular: "deploymentGroup" + }; + + // Possible states of a deployment group. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // The deployment group is being created. + CREATING = 1; + + // The deployment group is healthy. + ACTIVE = 2; + + // The deployment group is being updated. + UPDATING = 3; + + // The deployment group is being deleted. + DELETING = 4; + + // The deployment group has encountered an unexpected error. + FAILED = 5; + + // The deployment group is no longer being actively reconciled. + // This may be the result of recovering the project after deletion. + SUSPENDED = 6; + + // The deployment group has been deleted. + DELETED = 7; + } + + // Possible provisioning states of a deployment group. + enum ProvisioningState { + // Unspecified provisioning state. + PROVISIONING_STATE_UNSPECIFIED = 0; + + // The deployment group is being provisioned. + PROVISIONING = 1; + + // The deployment group is provisioned. + PROVISIONED = 2; + + // The deployment group failed to be provisioned. + FAILED_TO_PROVISION = 3; + + // The deployment group is being deprovisioned. + DEPROVISIONING = 4; + + // The deployment group is deprovisioned. + DEPROVISIONED = 5; + + // The deployment group failed to be deprovisioned. + FAILED_TO_DEPROVISION = 6; + } + + // Identifier. The name of the deployment group. + // Format: + // 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Time when the deployment group was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the deployment group was last updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-defined metadata for the deployment group. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary key-value metadata storage e.g. to help client tools + // identify deployment group during automation. See + // https://google.aip.dev/148#annotations for details on format and size + // limitations. + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Current state of the deployment group. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information regarding the current state. + string state_description = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The deployment units of the deployment group in a DAG like structure. + // When a deployment group is being provisioned, the deployment units are + // deployed in a DAG order. + // The provided units must be in a DAG order, otherwise an error will be + // returned. + repeated DeploymentUnit deployment_units = 8; + + // Output only. The provisioning state of the deployment group. + ProvisioningState provisioning_state = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information regarding the current provisioning + // state. + string provisioning_state_description = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error status of the deployment group provisioning or + // deprovisioning. + google.rpc.Status provisioning_error = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A DeploymentUnit is a container for a deployment and its dependencies. +// An existing deployment can be provided directly in the unit, or the unit +// can act as a placeholder to define the DAG, with the deployment specs +// supplied in a `provisionDeploymentRequest`. +message DeploymentUnit { + // The id of the deployment unit. Must be unique within the deployment group. + string id = 1; + + // Optional. The name of the deployment to be provisioned. + // Format: + // 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + optional string deployment = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "config.googleapis.com/Deployment" + } + ]; + + // Required. The IDs of the deployment units within the deployment group that + // this unit depends on. + repeated string dependencies = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for a deployment to be created. +message DeploymentSpec { + // Required. The id of the deployment to be created which doesn't include the + // project id and location. + string deployment_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The deployment to be created. + Deployment deployment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for the GetDeploymentGroup method. +message GetDeploymentGroupRequest { + // Required. The name of the deployment group to retrieve. + // Format: + // 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/DeploymentGroup" + } + ]; +} + +// The request message for the ListDeploymentGroups method. +message ListDeploymentGroupsRequest { + // Required. The parent, which owns this collection of deployment groups. + // Format: 'projects/{project_id}/locations/{location}'. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. When requesting a page of resources, 'page_size' specifies number + // of resources to return. If unspecified, at most 500 will be returned. The + // maximum value is 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to 'ListDeploymentGroups' which + // specifies the position in the list from where to continue listing the + // deployment groups. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the DeploymentGroups that match the filter expression. A + // filter expression filters the deployment groups listed in the response. The + // expression must be of the form '{field} {operator} {value}' where + // operators: '<', '>', + // '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + // operator which is roughly synonymous with equality). {field} can refer to a + // proto or JSON field, or a synthetic field. Field names can be camelCase or + // snake_case. + // + // Examples: + // - Filter by name: + // name = "projects/foo/locations/us-central1/deploymentGroups/bar" + // + // - Filter by labels: + // - Resources that have a key called 'foo' + // labels.foo:* + // - Resources that have a key called 'foo' whose value is 'bar' + // labels.foo = bar + // + // - Filter by state: + // - DeploymentGroups in CREATING state. + // state=CREATING + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to use to sort the list. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for the ListDeploymentGroups method. +message ListDeploymentGroupsResponse { + // The deployment groups from the specified collection. + repeated DeploymentGroup deployment_groups = 1; + + // Token to be supplied to the next ListDeploymentGroups request via + // `page_token` to obtain the next set of results. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// The request message for the ProvisionDeploymentGroup method. +message ProvisionDeploymentGroupRequest { + // Required. The name of the deployment group to provision. + // Format: + // 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/DeploymentGroup" + } + ]; + + // Optional. The deployment specs of the deployment units to be created within + // the same project and location of the deployment group. The key is the unit + // ID, and the value is the `DeploymentSpec`. Provisioning will fail if a + // `deployment_spec` has a `deployment_id` that matches an existing deployment + // in the same project and location. If an existing deployment was part of the + // last successful revision but is no longer in the current DeploymentGroup's + // `deployment_units`, it will be recreated if included in `deployment_specs`. + map deployment_specs = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for the DeprovisionDeploymentGroup method. +message DeprovisionDeploymentGroupRequest { + // Required. The name of the deployment group to deprovision. + // Format: + // 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/DeploymentGroup" + } + ]; + + // Optional. If set to true, this option is propagated to the deletion of each + // deployment in the group. This corresponds to the 'force' field + // in DeleteDeploymentRequest. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Policy on how resources within each deployment should be handled + // during deletion. This policy is applied globally to the deletion of all + // deployments in this group. This corresponds to the 'delete_policy' field + // in DeleteDeploymentRequest. + DeleteDeploymentRequest.DeletePolicy delete_policy = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The summary of the deployment operation. +message DeploymentOperationSummary { + // Output only. The current step the deployment operation is running. + DeploymentOperationMetadata.DeploymentStep deployment_step = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cloud Build instance UUID associated with this operation. + string build = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Location of Deployment operations logs in + // `gs://{bucket}/{object}` format. + string logs = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Location of Deployment operations content in + // `gs://{bucket}/{object}` format. + string content = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Location of Deployment operations artifacts in + // `gs://{bucket}/{object}` format. + string artifacts = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The progress of a deployment unit provisioning or deprovisioning. +message DeploymentUnitProgress { + // The possible steps a deployment unit provisioning may be running. + enum State { + // The default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The deployment unit is queued for deployment creation or update. + QUEUED = 1; + + // The underlying deployment of the unit is being created or updated. + APPLYING_DEPLOYMENT = 2; + + // The underlying deployment operation of the unit has succeeded. + SUCCEEDED = 4; + + // The underlying deployment operation of the unit has failed. + FAILED = 5; + + // The deployment unit was aborted, likely due to failures in other + // dependent deployment units. + ABORTED = 6; + + // The deployment unit was skipped because there were no changes to apply. + SKIPPED = 7; + + // The deployment is being deleted. + DELETING_DEPLOYMENT = 8; + + // The deployment is being previewed. + PREVIEWING_DEPLOYMENT = 9; + } + + // The possible intents of a deployment unit. + enum Intent { + // Unspecified intent. + INTENT_UNSPECIFIED = 0; + + // Create deployment in the unit from the deployment spec. + CREATE_DEPLOYMENT = 1; + + // Update deployment in the unit. + UPDATE_DEPLOYMENT = 2; + + // Delete deployment in the unit. + DELETE_DEPLOYMENT = 3; + + // Recreate deployment in the unit. + RECREATE_DEPLOYMENT = 4; + + // Delete deployment in latest successful revision while no longer + // referenced in any deployment unit in the current deployment group. + CLEAN_UP = 5; + + // Expected to be unchanged. + UNCHANGED = 6; + } + + // Output only. The unit id of the deployment unit to be provisioned. + string unit_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the deployment to be provisioned. + // Format: + // 'projects/{project}/locations/{location}/deployments/{deployment}'. + string deployment = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "config.googleapis.com/Deployment" + } + ]; + + // Output only. The current step of the deployment unit provisioning. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information regarding the current state. + string state_description = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The summary of the deployment operation. + DeploymentOperationSummary deployment_operation_summary = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Holds the error status of the deployment unit provisioning. + google.rpc.Status error = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The intent of the deployment unit. + Intent intent = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Operation metadata for `ProvisionDeploymentGroup` and +// `DeprovisionDeploymentGroup` long-running operations. +message ProvisionDeploymentGroupOperationMetadata { + // Possible steps during a deployment group provisioning or deprovisioning + // operation. + enum ProvisionDeploymentGroupStep { + // Unspecified step. + PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED = 0; + + // Validating the deployment group. + VALIDATING_DEPLOYMENT_GROUP = 1; + + // Locking the deployments to the deployment group for atomic actuation. + ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP = 2; + + // Provisioning the deployment units. + PROVISIONING_DEPLOYMENT_UNITS = 3; + + // Unlocking the deployments from the deployment group after actuation. + DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP = 4; + + // The operation has succeeded. + SUCCEEDED = 5; + + // The operation has failed. + FAILED = 6; + + // Deprovisioning the deployment units. + DEPROVISIONING_DEPLOYMENT_UNITS = 7; + } + + // Output only. The current step of the deployment group operation. + ProvisionDeploymentGroupStep step = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Progress information for each deployment unit within the + // operation. + repeated DeploymentUnitProgress deployment_unit_progresses = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A DeploymentGroupRevision represents a snapshot of a +// [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] at a given point in +// time, created when a DeploymentGroup is provisioned or deprovisioned. +message DeploymentGroupRevision { + option (google.api.resource) = { + type: "config.googleapis.com/DeploymentGroupRevision" + pattern: "projects/{project}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}" + plural: "deploymentGroupRevisions" + singular: "deploymentGroupRevision" + }; + + // Identifier. The name of the deployment group revision. + // Format: + // 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The snapshot of the deployment group at this revision. + DeploymentGroup snapshot = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the deployment group revision was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The alternative IDs of the deployment group revision. + repeated string alternative_ids = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for the GetDeploymentGroupRevision method. +message GetDeploymentGroupRevisionRequest { + // Required. The name of the deployment group revision to retrieve. + // Format: + // 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/DeploymentGroupRevision" + } + ]; +} + +// The request message for the ListDeploymentGroupRevisions method. +message ListDeploymentGroupRevisionsRequest { + // Required. The parent, which owns this collection of deployment group + // revisions. Format: + // 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/DeploymentGroup" + } + ]; + + // Optional. When requesting a page of resources, 'page_size' specifies number + // of resources to return. If unspecified, a sensible default will be used by + // the server. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to 'ListDeploymentGroupRevisions' + // which specifies the position in the list from where to continue listing the + // deployment group revisions. All other parameters provided to + // `ListDeploymentGroupRevisions` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for the ListDeploymentGroupRevisions method. +message ListDeploymentGroupRevisionsResponse { + // The deployment group revisions from the specified collection. + repeated DeploymentGroupRevision deployment_group_revisions = 1; + + // Token to be supplied to the next ListDeploymentGroupRevisions request via + // `page_token` to obtain the next set of results. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/AsyncCreateDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/AsyncCreateDeploymentGroup.java new file mode 100644 index 000000000000..bf302d1b78c9 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/AsyncCreateDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_CreateDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.CreateDeploymentGroupRequest; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncCreateDeploymentGroup(); + } + + public static void asyncCreateDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + CreateDeploymentGroupRequest request = + CreateDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDeploymentGroupId("deploymentGroupId717062517") + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + configClient.createDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END config_v1_generated_Config_CreateDeploymentGroup_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/AsyncCreateDeploymentGroupLRO.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/AsyncCreateDeploymentGroupLRO.java new file mode 100644 index 000000000000..690a203ce659 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/AsyncCreateDeploymentGroupLRO.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.config.v1.samples; + +// [START config_v1_generated_Config_CreateDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.CreateDeploymentGroupRequest; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.LocationName; +import com.google.cloud.config.v1.OperationMetadata; + +public class AsyncCreateDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateDeploymentGroupLRO(); + } + + public static void asyncCreateDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + CreateDeploymentGroupRequest request = + CreateDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDeploymentGroupId("deploymentGroupId717062517") + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + configClient.createDeploymentGroupOperationCallable().futureCall(request); + // Do something. + DeploymentGroup response = future.get(); + } + } +} +// [END config_v1_generated_Config_CreateDeploymentGroup_LRO_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroup.java new file mode 100644 index 000000000000..19466b465a6e --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_CreateDeploymentGroup_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.CreateDeploymentGroupRequest; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.LocationName; + +public class SyncCreateDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentGroup(); + } + + public static void syncCreateDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + CreateDeploymentGroupRequest request = + CreateDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDeploymentGroupId("deploymentGroupId717062517") + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DeploymentGroup response = configClient.createDeploymentGroupAsync(request).get(); + } + } +} +// [END config_v1_generated_Config_CreateDeploymentGroup_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroupLocationnameDeploymentgroupString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroupLocationnameDeploymentgroupString.java new file mode 100644 index 000000000000..e0880b16c48a --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroupLocationnameDeploymentgroupString.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.config.v1.samples; + +// [START config_v1_generated_Config_CreateDeploymentGroup_LocationnameDeploymentgroupString_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.LocationName; + +public class SyncCreateDeploymentGroupLocationnameDeploymentgroupString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentGroupLocationnameDeploymentgroupString(); + } + + public static void syncCreateDeploymentGroupLocationnameDeploymentgroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build(); + String deploymentGroupId = "deploymentGroupId717062517"; + DeploymentGroup response = + configClient.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get(); + } + } +} +// [END config_v1_generated_Config_CreateDeploymentGroup_LocationnameDeploymentgroupString_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroupStringDeploymentgroupString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroupStringDeploymentgroupString.java new file mode 100644 index 000000000000..b97e1db8977a --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/createdeploymentgroup/SyncCreateDeploymentGroupStringDeploymentgroupString.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.config.v1.samples; + +// [START config_v1_generated_Config_CreateDeploymentGroup_StringDeploymentgroupString_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.LocationName; + +public class SyncCreateDeploymentGroupStringDeploymentgroupString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentGroupStringDeploymentgroupString(); + } + + public static void syncCreateDeploymentGroupStringDeploymentgroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build(); + String deploymentGroupId = "deploymentGroupId717062517"; + DeploymentGroup response = + configClient.createDeploymentGroupAsync(parent, deploymentGroup, deploymentGroupId).get(); + } + } +} +// [END config_v1_generated_Config_CreateDeploymentGroup_StringDeploymentgroupString_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/AsyncDeleteDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/AsyncDeleteDeploymentGroup.java new file mode 100644 index 000000000000..530f7010be1b --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/AsyncDeleteDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_DeleteDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeleteDeploymentGroupRequest; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.longrunning.Operation; + +public class AsyncDeleteDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteDeploymentGroup(); + } + + public static void asyncDeleteDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeleteDeploymentGroupRequest request = + DeleteDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + configClient.deleteDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END config_v1_generated_Config_DeleteDeploymentGroup_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/AsyncDeleteDeploymentGroupLRO.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/AsyncDeleteDeploymentGroupLRO.java new file mode 100644 index 000000000000..51e05cc03bd3 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/AsyncDeleteDeploymentGroupLRO.java @@ -0,0 +1,55 @@ +/* + * 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.config.v1.samples; + +// [START config_v1_generated_Config_DeleteDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeleteDeploymentGroupRequest; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.OperationMetadata; + +public class AsyncDeleteDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteDeploymentGroupLRO(); + } + + public static void asyncDeleteDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeleteDeploymentGroupRequest request = + DeleteDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + configClient.deleteDeploymentGroupOperationCallable().futureCall(request); + // Do something. + DeploymentGroup response = future.get(); + } + } +} +// [END config_v1_generated_Config_DeleteDeploymentGroup_LRO_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroup.java new file mode 100644 index 000000000000..96698a265465 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_DeleteDeploymentGroup_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeleteDeploymentGroupRequest; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncDeleteDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentGroup(); + } + + public static void syncDeleteDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeleteDeploymentGroupRequest request = + DeleteDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + DeploymentGroup response = configClient.deleteDeploymentGroupAsync(request).get(); + } + } +} +// [END config_v1_generated_Config_DeleteDeploymentGroup_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroupDeploymentgroupname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroupDeploymentgroupname.java new file mode 100644 index 000000000000..4da9789bf914 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroupDeploymentgroupname.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.config.v1.samples; + +// [START config_v1_generated_Config_DeleteDeploymentGroup_Deploymentgroupname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncDeleteDeploymentGroupDeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentGroupDeploymentgroupname(); + } + + public static void syncDeleteDeploymentGroupDeploymentgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeploymentGroupName name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]"); + DeploymentGroup response = configClient.deleteDeploymentGroupAsync(name).get(); + } + } +} +// [END config_v1_generated_Config_DeleteDeploymentGroup_Deploymentgroupname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroupString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroupString.java new file mode 100644 index 000000000000..bf95dc66105a --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deletedeploymentgroup/SyncDeleteDeploymentGroupString.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.config.v1.samples; + +// [START config_v1_generated_Config_DeleteDeploymentGroup_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncDeleteDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentGroupString(); + } + + public static void syncDeleteDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString(); + DeploymentGroup response = configClient.deleteDeploymentGroupAsync(name).get(); + } + } +} +// [END config_v1_generated_Config_DeleteDeploymentGroup_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/AsyncDeprovisionDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/AsyncDeprovisionDeploymentGroup.java new file mode 100644 index 000000000000..067773bd0f22 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/AsyncDeprovisionDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_DeprovisionDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest; +import com.google.longrunning.Operation; + +public class AsyncDeprovisionDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncDeprovisionDeploymentGroup(); + } + + public static void asyncDeprovisionDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeprovisionDeploymentGroupRequest request = + DeprovisionDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setForce(true) + .build(); + ApiFuture future = + configClient.deprovisionDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END config_v1_generated_Config_DeprovisionDeploymentGroup_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/AsyncDeprovisionDeploymentGroupLRO.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/AsyncDeprovisionDeploymentGroupLRO.java new file mode 100644 index 000000000000..4f73c0e34803 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/AsyncDeprovisionDeploymentGroupLRO.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.config.v1.samples; + +// [START config_v1_generated_Config_DeprovisionDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest; +import com.google.cloud.config.v1.OperationMetadata; + +public class AsyncDeprovisionDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeprovisionDeploymentGroupLRO(); + } + + public static void asyncDeprovisionDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeprovisionDeploymentGroupRequest request = + DeprovisionDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setForce(true) + .build(); + OperationFuture future = + configClient.deprovisionDeploymentGroupOperationCallable().futureCall(request); + // Do something. + DeploymentGroup response = future.get(); + } + } +} +// [END config_v1_generated_Config_DeprovisionDeploymentGroup_LRO_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroup.java new file mode 100644 index 000000000000..f9c402f06232 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_DeprovisionDeploymentGroup_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest; + +public class SyncDeprovisionDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncDeprovisionDeploymentGroup(); + } + + public static void syncDeprovisionDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeprovisionDeploymentGroupRequest request = + DeprovisionDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setForce(true) + .build(); + DeploymentGroup response = configClient.deprovisionDeploymentGroupAsync(request).get(); + } + } +} +// [END config_v1_generated_Config_DeprovisionDeploymentGroup_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroupDeploymentgroupname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroupDeploymentgroupname.java new file mode 100644 index 000000000000..2836c433a0ae --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroupDeploymentgroupname.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.config.v1.samples; + +// [START config_v1_generated_Config_DeprovisionDeploymentGroup_Deploymentgroupname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncDeprovisionDeploymentGroupDeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncDeprovisionDeploymentGroupDeploymentgroupname(); + } + + public static void syncDeprovisionDeploymentGroupDeploymentgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeploymentGroupName name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]"); + DeploymentGroup response = configClient.deprovisionDeploymentGroupAsync(name).get(); + } + } +} +// [END config_v1_generated_Config_DeprovisionDeploymentGroup_Deploymentgroupname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroupString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroupString.java new file mode 100644 index 000000000000..cfbfd6076e24 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/deprovisiondeploymentgroup/SyncDeprovisionDeploymentGroupString.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.config.v1.samples; + +// [START config_v1_generated_Config_DeprovisionDeploymentGroup_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncDeprovisionDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncDeprovisionDeploymentGroupString(); + } + + public static void syncDeprovisionDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString(); + DeploymentGroup response = configClient.deprovisionDeploymentGroupAsync(name).get(); + } + } +} +// [END config_v1_generated_Config_DeprovisionDeploymentGroup_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/AsyncGetDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/AsyncGetDeploymentGroup.java new file mode 100644 index 000000000000..88f275677762 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/AsyncGetDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.GetDeploymentGroupRequest; + +public class AsyncGetDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncGetDeploymentGroup(); + } + + public static void asyncGetDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + GetDeploymentGroupRequest request = + GetDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .build(); + ApiFuture future = + configClient.getDeploymentGroupCallable().futureCall(request); + // Do something. + DeploymentGroup response = future.get(); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroup_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroup.java new file mode 100644 index 000000000000..c818f35cfa96 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroup_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.GetDeploymentGroupRequest; + +public class SyncGetDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncGetDeploymentGroup(); + } + + public static void syncGetDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + GetDeploymentGroupRequest request = + GetDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .build(); + DeploymentGroup response = configClient.getDeploymentGroup(request); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroup_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroupDeploymentgroupname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroupDeploymentgroupname.java new file mode 100644 index 000000000000..8f97477df881 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroupDeploymentgroupname.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroup_Deploymentgroupname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncGetDeploymentGroupDeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncGetDeploymentGroupDeploymentgroupname(); + } + + public static void syncGetDeploymentGroupDeploymentgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeploymentGroupName name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]"); + DeploymentGroup response = configClient.getDeploymentGroup(name); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroup_Deploymentgroupname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroupString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroupString.java new file mode 100644 index 000000000000..da0db1aab77d --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgroup/SyncGetDeploymentGroupString.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroup_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncGetDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncGetDeploymentGroupString(); + } + + public static void syncGetDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString(); + DeploymentGroup response = configClient.getDeploymentGroup(name); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroup_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/AsyncGetDeploymentGroupRevision.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/AsyncGetDeploymentGroupRevision.java new file mode 100644 index 000000000000..5673f16a86cc --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/AsyncGetDeploymentGroupRevision.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroupRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupRevision; +import com.google.cloud.config.v1.DeploymentGroupRevisionName; +import com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest; + +public class AsyncGetDeploymentGroupRevision { + + public static void main(String[] args) throws Exception { + asyncGetDeploymentGroupRevision(); + } + + public static void asyncGetDeploymentGroupRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + GetDeploymentGroupRevisionRequest request = + GetDeploymentGroupRevisionRequest.newBuilder() + .setName( + DeploymentGroupRevisionName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]") + .toString()) + .build(); + ApiFuture future = + configClient.getDeploymentGroupRevisionCallable().futureCall(request); + // Do something. + DeploymentGroupRevision response = future.get(); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroupRevision_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevision.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevision.java new file mode 100644 index 000000000000..02e2992bb540 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevision.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroupRevision_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupRevision; +import com.google.cloud.config.v1.DeploymentGroupRevisionName; +import com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest; + +public class SyncGetDeploymentGroupRevision { + + public static void main(String[] args) throws Exception { + syncGetDeploymentGroupRevision(); + } + + public static void syncGetDeploymentGroupRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + GetDeploymentGroupRevisionRequest request = + GetDeploymentGroupRevisionRequest.newBuilder() + .setName( + DeploymentGroupRevisionName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]") + .toString()) + .build(); + DeploymentGroupRevision response = configClient.getDeploymentGroupRevision(request); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroupRevision_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevisionDeploymentgrouprevisionname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevisionDeploymentgrouprevisionname.java new file mode 100644 index 000000000000..3b3c266ff0d1 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevisionDeploymentgrouprevisionname.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroupRevision_Deploymentgrouprevisionname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupRevision; +import com.google.cloud.config.v1.DeploymentGroupRevisionName; + +public class SyncGetDeploymentGroupRevisionDeploymentgrouprevisionname { + + public static void main(String[] args) throws Exception { + syncGetDeploymentGroupRevisionDeploymentgrouprevisionname(); + } + + public static void syncGetDeploymentGroupRevisionDeploymentgrouprevisionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeploymentGroupRevisionName name = + DeploymentGroupRevisionName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]"); + DeploymentGroupRevision response = configClient.getDeploymentGroupRevision(name); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroupRevision_Deploymentgrouprevisionname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevisionString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevisionString.java new file mode 100644 index 000000000000..4cf1aa75c9bb --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getdeploymentgrouprevision/SyncGetDeploymentGroupRevisionString.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.config.v1.samples; + +// [START config_v1_generated_Config_GetDeploymentGroupRevision_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupRevision; +import com.google.cloud.config.v1.DeploymentGroupRevisionName; + +public class SyncGetDeploymentGroupRevisionString { + + public static void main(String[] args) throws Exception { + syncGetDeploymentGroupRevisionString(); + } + + public static void syncGetDeploymentGroupRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String name = + DeploymentGroupRevisionName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]", "[REVISION]") + .toString(); + DeploymentGroupRevision response = configClient.getDeploymentGroupRevision(name); + } + } +} +// [END config_v1_generated_Config_GetDeploymentGroupRevision_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/AsyncListDeploymentGroupRevisions.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/AsyncListDeploymentGroupRevisions.java new file mode 100644 index 000000000000..039b46f52516 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/AsyncListDeploymentGroupRevisions.java @@ -0,0 +1,56 @@ +/* + * 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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroupRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentGroupRevision; +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest; + +public class AsyncListDeploymentGroupRevisions { + + public static void main(String[] args) throws Exception { + asyncListDeploymentGroupRevisions(); + } + + public static void asyncListDeploymentGroupRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ListDeploymentGroupRevisionsRequest request = + ListDeploymentGroupRevisionsRequest.newBuilder() + .setParent( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + configClient.listDeploymentGroupRevisionsPagedCallable().futureCall(request); + // Do something. + for (DeploymentGroupRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroupRevisions_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/AsyncListDeploymentGroupRevisionsPaged.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/AsyncListDeploymentGroupRevisionsPaged.java new file mode 100644 index 000000000000..df48679964c8 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/AsyncListDeploymentGroupRevisionsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroupRevisions_Paged_async] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentGroupRevision; +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest; +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse; +import com.google.common.base.Strings; + +public class AsyncListDeploymentGroupRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListDeploymentGroupRevisionsPaged(); + } + + public static void asyncListDeploymentGroupRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ListDeploymentGroupRevisionsRequest request = + ListDeploymentGroupRevisionsRequest.newBuilder() + .setParent( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDeploymentGroupRevisionsResponse response = + configClient.listDeploymentGroupRevisionsCallable().call(request); + for (DeploymentGroupRevision element : response.getDeploymentGroupRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroupRevisions_Paged_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisions.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisions.java new file mode 100644 index 000000000000..8d284807e516 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisions.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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroupRevisions_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentGroupRevision; +import com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest; + +public class SyncListDeploymentGroupRevisions { + + public static void main(String[] args) throws Exception { + syncListDeploymentGroupRevisions(); + } + + public static void syncListDeploymentGroupRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ListDeploymentGroupRevisionsRequest request = + ListDeploymentGroupRevisionsRequest.newBuilder() + .setParent( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DeploymentGroupRevision element : + configClient.listDeploymentGroupRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroupRevisions_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisionsDeploymentgroupname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisionsDeploymentgroupname.java new file mode 100644 index 000000000000..1d2f9145e21f --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisionsDeploymentgroupname.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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroupRevisions_Deploymentgroupname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentGroupRevision; + +public class SyncListDeploymentGroupRevisionsDeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncListDeploymentGroupRevisionsDeploymentgroupname(); + } + + public static void syncListDeploymentGroupRevisionsDeploymentgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeploymentGroupName parent = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]"); + for (DeploymentGroupRevision element : + configClient.listDeploymentGroupRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroupRevisions_Deploymentgroupname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisionsString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisionsString.java new file mode 100644 index 000000000000..57695e327159 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgrouprevisions/SyncListDeploymentGroupRevisionsString.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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroupRevisions_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentGroupRevision; + +public class SyncListDeploymentGroupRevisionsString { + + public static void main(String[] args) throws Exception { + syncListDeploymentGroupRevisionsString(); + } + + public static void syncListDeploymentGroupRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String parent = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString(); + for (DeploymentGroupRevision element : + configClient.listDeploymentGroupRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroupRevisions_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/AsyncListDeploymentGroups.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/AsyncListDeploymentGroups.java new file mode 100644 index 000000000000..e33089368174 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/AsyncListDeploymentGroups.java @@ -0,0 +1,56 @@ +/* + * 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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.ListDeploymentGroupsRequest; +import com.google.cloud.config.v1.LocationName; + +public class AsyncListDeploymentGroups { + + public static void main(String[] args) throws Exception { + asyncListDeploymentGroups(); + } + + public static void asyncListDeploymentGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ListDeploymentGroupsRequest request = + ListDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + configClient.listDeploymentGroupsPagedCallable().futureCall(request); + // Do something. + for (DeploymentGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroups_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/AsyncListDeploymentGroupsPaged.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/AsyncListDeploymentGroupsPaged.java new file mode 100644 index 000000000000..4d0e2d36666f --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/AsyncListDeploymentGroupsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroups_Paged_async] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.ListDeploymentGroupsRequest; +import com.google.cloud.config.v1.ListDeploymentGroupsResponse; +import com.google.cloud.config.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListDeploymentGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListDeploymentGroupsPaged(); + } + + public static void asyncListDeploymentGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ListDeploymentGroupsRequest request = + ListDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDeploymentGroupsResponse response = + configClient.listDeploymentGroupsCallable().call(request); + for (DeploymentGroup element : response.getDeploymentGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroups_Paged_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroups.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroups.java new file mode 100644 index 000000000000..87eac1e79870 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroups.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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroups_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.ListDeploymentGroupsRequest; +import com.google.cloud.config.v1.LocationName; + +public class SyncListDeploymentGroups { + + public static void main(String[] args) throws Exception { + syncListDeploymentGroups(); + } + + public static void syncListDeploymentGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ListDeploymentGroupsRequest request = + ListDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (DeploymentGroup element : configClient.listDeploymentGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroups_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroupsLocationname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroupsLocationname.java new file mode 100644 index 000000000000..5abf883b3b9a --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroupsLocationname.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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroups_Locationname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.LocationName; + +public class SyncListDeploymentGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListDeploymentGroupsLocationname(); + } + + public static void syncListDeploymentGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DeploymentGroup element : configClient.listDeploymentGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroups_Locationname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroupsString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroupsString.java new file mode 100644 index 000000000000..5a67d46f042d --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listdeploymentgroups/SyncListDeploymentGroupsString.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.config.v1.samples; + +// [START config_v1_generated_Config_ListDeploymentGroups_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.LocationName; + +public class SyncListDeploymentGroupsString { + + public static void main(String[] args) throws Exception { + syncListDeploymentGroupsString(); + } + + public static void syncListDeploymentGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DeploymentGroup element : configClient.listDeploymentGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListDeploymentGroups_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/AsyncProvisionDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/AsyncProvisionDeploymentGroup.java new file mode 100644 index 000000000000..096188fc5190 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/AsyncProvisionDeploymentGroup.java @@ -0,0 +1,55 @@ +/* + * 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.config.v1.samples; + +// [START config_v1_generated_Config_ProvisionDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentSpec; +import com.google.cloud.config.v1.ProvisionDeploymentGroupRequest; +import com.google.longrunning.Operation; +import java.util.HashMap; + +public class AsyncProvisionDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncProvisionDeploymentGroup(); + } + + public static void asyncProvisionDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ProvisionDeploymentGroupRequest request = + ProvisionDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .putAllDeploymentSpecs(new HashMap()) + .build(); + ApiFuture future = + configClient.provisionDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END config_v1_generated_Config_ProvisionDeploymentGroup_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/AsyncProvisionDeploymentGroupLRO.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/AsyncProvisionDeploymentGroupLRO.java new file mode 100644 index 000000000000..ececcb3c29b2 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/AsyncProvisionDeploymentGroupLRO.java @@ -0,0 +1,56 @@ +/* + * 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.config.v1.samples; + +// [START config_v1_generated_Config_ProvisionDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentSpec; +import com.google.cloud.config.v1.OperationMetadata; +import com.google.cloud.config.v1.ProvisionDeploymentGroupRequest; +import java.util.HashMap; + +public class AsyncProvisionDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncProvisionDeploymentGroupLRO(); + } + + public static void asyncProvisionDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ProvisionDeploymentGroupRequest request = + ProvisionDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .putAllDeploymentSpecs(new HashMap()) + .build(); + OperationFuture future = + configClient.provisionDeploymentGroupOperationCallable().futureCall(request); + // Do something. + DeploymentGroup response = future.get(); + } + } +} +// [END config_v1_generated_Config_ProvisionDeploymentGroup_LRO_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroup.java new file mode 100644 index 000000000000..c5afdf4baa65 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_ProvisionDeploymentGroup_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; +import com.google.cloud.config.v1.DeploymentSpec; +import com.google.cloud.config.v1.ProvisionDeploymentGroupRequest; +import java.util.HashMap; + +public class SyncProvisionDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncProvisionDeploymentGroup(); + } + + public static void syncProvisionDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + ProvisionDeploymentGroupRequest request = + ProvisionDeploymentGroupRequest.newBuilder() + .setName( + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]") + .toString()) + .putAllDeploymentSpecs(new HashMap()) + .build(); + DeploymentGroup response = configClient.provisionDeploymentGroupAsync(request).get(); + } + } +} +// [END config_v1_generated_Config_ProvisionDeploymentGroup_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroupDeploymentgroupname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroupDeploymentgroupname.java new file mode 100644 index 000000000000..002249732e51 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroupDeploymentgroupname.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.config.v1.samples; + +// [START config_v1_generated_Config_ProvisionDeploymentGroup_Deploymentgroupname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncProvisionDeploymentGroupDeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncProvisionDeploymentGroupDeploymentgroupname(); + } + + public static void syncProvisionDeploymentGroupDeploymentgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeploymentGroupName name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]"); + DeploymentGroup response = configClient.provisionDeploymentGroupAsync(name).get(); + } + } +} +// [END config_v1_generated_Config_ProvisionDeploymentGroup_Deploymentgroupname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroupString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroupString.java new file mode 100644 index 000000000000..e88581fd07d5 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/provisiondeploymentgroup/SyncProvisionDeploymentGroupString.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.config.v1.samples; + +// [START config_v1_generated_Config_ProvisionDeploymentGroup_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.DeploymentGroupName; + +public class SyncProvisionDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncProvisionDeploymentGroupString(); + } + + public static void syncProvisionDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + String name = + DeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_GROUP]").toString(); + DeploymentGroup response = configClient.provisionDeploymentGroupAsync(name).get(); + } + } +} +// [END config_v1_generated_Config_ProvisionDeploymentGroup_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/AsyncUpdateDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/AsyncUpdateDeploymentGroup.java new file mode 100644 index 000000000000..dc2b39f29c1d --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/AsyncUpdateDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_UpdateDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.UpdateDeploymentGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateDeploymentGroup(); + } + + public static void asyncUpdateDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + UpdateDeploymentGroupRequest request = + UpdateDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + configClient.updateDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END config_v1_generated_Config_UpdateDeploymentGroup_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/AsyncUpdateDeploymentGroupLRO.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/AsyncUpdateDeploymentGroupLRO.java new file mode 100644 index 000000000000..887a62866325 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/AsyncUpdateDeploymentGroupLRO.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.config.v1.samples; + +// [START config_v1_generated_Config_UpdateDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.OperationMetadata; +import com.google.cloud.config.v1.UpdateDeploymentGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateDeploymentGroupLRO(); + } + + public static void asyncUpdateDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + UpdateDeploymentGroupRequest request = + UpdateDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + configClient.updateDeploymentGroupOperationCallable().futureCall(request); + // Do something. + DeploymentGroup response = future.get(); + } + } +} +// [END config_v1_generated_Config_UpdateDeploymentGroup_LRO_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/SyncUpdateDeploymentGroup.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/SyncUpdateDeploymentGroup.java new file mode 100644 index 000000000000..16969d300b33 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/SyncUpdateDeploymentGroup.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.config.v1.samples; + +// [START config_v1_generated_Config_UpdateDeploymentGroup_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.UpdateDeploymentGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncUpdateDeploymentGroup(); + } + + public static void syncUpdateDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + UpdateDeploymentGroupRequest request = + UpdateDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DeploymentGroup response = configClient.updateDeploymentGroupAsync(request).get(); + } + } +} +// [END config_v1_generated_Config_UpdateDeploymentGroup_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/SyncUpdateDeploymentGroupDeploymentgroupFieldmask.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/SyncUpdateDeploymentGroupDeploymentgroupFieldmask.java new file mode 100644 index 000000000000..056fbeb53e25 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/updatedeploymentgroup/SyncUpdateDeploymentGroupDeploymentgroupFieldmask.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.config.v1.samples; + +// [START config_v1_generated_Config_UpdateDeploymentGroup_DeploymentgroupFieldmask_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeploymentGroupDeploymentgroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDeploymentGroupDeploymentgroupFieldmask(); + } + + public static void syncUpdateDeploymentGroupDeploymentgroupFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfigClient configClient = ConfigClient.create()) { + DeploymentGroup deploymentGroup = DeploymentGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DeploymentGroup response = + configClient.updateDeploymentGroupAsync(deploymentGroup, updateMask).get(); + } + } +} +// [END config_v1_generated_Config_UpdateDeploymentGroup_DeploymentgroupFieldmask_sync] diff --git a/java-iot/.OwlBot-hermetic.yaml b/java-iot/.OwlBot-hermetic.yaml index f156847e861f..3f3d084a78d2 100644 --- a/java-iot/.OwlBot-hermetic.yaml +++ b/java-iot/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-iot/google-.*/src" deep-preserve-regex: -- "/java-iot/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/it/ITSystemTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-cloud-iot/src/test/java/com/google/cloud/iot/v1/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/iot/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-iot/README.md b/java-iot/README.md index 59ac689c7647..50eba8972001 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.88.0' +implementation 'com.google.cloud:google-cloud-iot:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml b/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml index 91f8b62ebf5f..4c537d62342e 100644 --- a/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml +++ b/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-java-shopping-merchant-issue-resolution/samples/snippets/generated" deep-preserve-regex: -- "/java-java-shopping-merchant-issue-resolution/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index d0b442d97747..d7c068b3ddce 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-issue-resolution - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.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-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml b/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml index 1bbf170a9355..676275b6ffed 100644 --- a/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml +++ b/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-java-shopping-merchant-order-tracking/samples/snippets/generated" deep-preserve-regex: -- "/java-java-shopping-merchant-order-tracking/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index 4b778bc1b5ee..2fe3141db582 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-order-tracking - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.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-kms/.OwlBot-hermetic.yaml b/java-kms/.OwlBot-hermetic.yaml index 7ea6f453adfe..ae489e0d9529 100644 --- a/java-kms/.OwlBot-hermetic.yaml +++ b/java-kms/.OwlBot-hermetic.yaml @@ -20,12 +20,13 @@ deep-remove-regex: - "/java-kms/google-.*/src" deep-preserve-regex: -- "/java-kms/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UntypedKeyName.java" -- "/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyName.java" -- "/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyNames.java" -- "/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/it/ITKmsTest.java" -- "/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyPathName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UntypedKeyName.java" +- "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyName.java" +- "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyNames.java" +- "/.*google-cloud-kms/src/test/java/com/google/cloud/kms/it/ITKmsTest.java" +- "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyPathName.java" deep-copy-regex: - source: "/google/cloud/kms/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-kms/README.md b/java-kms/README.md index 800647a9c8ea..03ed2443cfe6 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.91.0 + 2.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.91.0' +implementation 'com.google.cloud:google-cloud-kms:2.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.93.0" ``` ## Authentication @@ -175,7 +175,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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java index 203bddc979b1..4a725ad9223d 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java @@ -137,8 +137,10 @@ * * *

    ListLocations - *

    Lists information about the supported locations for this service.This method can be called in two ways: - *

    * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

    This method lists locations based on the resource scope provided inthe [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.

    *
      @@ -655,13 +657,20 @@ public final ShowEffectiveAutokeyConfigResponse showEffectiveAutokeyConfig( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

      * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

      This method lists locations based on the resource scope provided inthe + * [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: * @@ -694,13 +703,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

      * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

      * **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: * @@ -734,13 +750,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

      This method lists locations based on the resource scope provided inthe + * [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. * - *

      * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java index cd35ce6107f1..6dc91122d7f7 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java @@ -150,8 +150,10 @@ * * *

      ListLocations - *

      Lists information about the supported locations for this service.This method can be called in two ways: - *

      * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

      This method lists locations based on the resource scope provided inthe [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.

      *
        @@ -825,13 +827,20 @@ public final ListKeyHandlesPagedResponse listKeyHandles(ListKeyHandlesRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

        * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

        This method lists locations based on the resource scope provided inthe + * [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: * @@ -864,13 +873,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

        * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

        * **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: * @@ -903,13 +919,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

        This method lists locations based on the resource scope provided inthe + * [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. * - *

        * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java index 0a96233b1d72..34ca64bf4d33 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java @@ -212,8 +212,10 @@ * * *

        ListLocations - *

        Lists information about the supported locations for this service.This method can be called in two ways: - *

        * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

        This method lists locations based on the resource scope provided inthe [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.

        *
          @@ -1252,13 +1254,20 @@ public final VerifyConnectivityResponse verifyConnectivity(VerifyConnectivityReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

          * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

          This method lists locations based on the resource scope provided inthe + * [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: * @@ -1291,13 +1300,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

          * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

          * **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: * @@ -1331,13 +1347,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

          This method lists locations based on the resource scope provided inthe + * [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. * - *

          * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java index b9cb6b9a7e84..4de01d9fedf8 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java @@ -264,8 +264,10 @@ * * *

          ListLocations - *

          Lists information about the supported locations for this service.This method can be called in two ways: - *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

          This method lists locations based on the resource scope provided inthe [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.

          *
            @@ -2053,13 +2055,20 @@ public final void deleteSingleTenantHsmInstanceProposal( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

            * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

            This method lists locations based on the resource scope provided inthe + * [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: * @@ -2092,13 +2101,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

            * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

            * **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: * @@ -2132,13 +2148,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

            This method lists locations based on the resource scope provided inthe + * [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. * - *

            * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java index 9d0054e3455a..ac1c4de2caef 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -716,8 +716,10 @@ * * *

            ListLocations - *

            Lists information about the supported locations for this service.This method can be called in two ways: - *

            * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

            This method lists locations based on the resource scope provided inthe [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.

            *
              @@ -5812,13 +5814,20 @@ public final GenerateRandomBytesResponse generateRandomBytes(GenerateRandomBytes // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

              * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

              This method lists locations based on the resource scope provided inthe + * [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: * @@ -5852,13 +5861,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

              * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

              * **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: * @@ -5893,13 +5909,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

              This method lists locations based on the resource scope provided inthe + * [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. * - *

              * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientHttpJsonTest.java b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientHttpJsonTest.java index f20ff8089f6f..0407df3dc31f 100644 --- a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientHttpJsonTest.java +++ b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientHttpJsonTest.java @@ -216,6 +216,7 @@ public void getSingleTenantHsmInstanceTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -270,6 +271,7 @@ public void getSingleTenantHsmInstanceTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -324,6 +326,7 @@ public void createSingleTenantHsmInstanceTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -393,6 +396,7 @@ public void createSingleTenantHsmInstanceTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientTest.java b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientTest.java index 2a8b71f25511..bee94d937062 100644 --- a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientTest.java +++ b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/HsmManagementClientTest.java @@ -215,6 +215,7 @@ public void getSingleTenantHsmInstanceTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); mockHsmManagement.addResponse(expectedResponse); @@ -264,6 +265,7 @@ public void getSingleTenantHsmInstanceTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); mockHsmManagement.addResponse(expectedResponse); @@ -311,6 +313,7 @@ public void createSingleTenantHsmInstanceTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -380,6 +383,7 @@ public void createSingleTenantHsmInstanceTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setUnrefreshedDurationUntilDisable(Duration.newBuilder().build()) .setDisableTime(Timestamp.newBuilder().build()) + .setKeyPortabilityEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java index 15161d0390ba..b8dab8607194 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java @@ -1246,6 +1246,10 @@ public com.google.protobuf.ByteString getCryptoKeyBackendBytes() { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -1271,6 +1275,10 @@ public boolean hasKeyAccessJustificationsPolicy() { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -1298,6 +1306,10 @@ public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy getKeyAccessJustifi * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4406,6 +4418,10 @@ public Builder setCryptoKeyBackendBytes(com.google.protobuf.ByteString value) { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4430,6 +4446,10 @@ public boolean hasKeyAccessJustificationsPolicy() { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4461,6 +4481,10 @@ public boolean hasKeyAccessJustificationsPolicy() { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4494,6 +4518,10 @@ public Builder setKeyAccessJustificationsPolicy( * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4524,6 +4552,10 @@ public Builder setKeyAccessJustificationsPolicy( * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4563,6 +4595,10 @@ public Builder mergeKeyAccessJustificationsPolicy( * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4592,6 +4628,10 @@ public Builder clearKeyAccessJustificationsPolicy() { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4617,6 +4657,10 @@ public Builder clearKeyAccessJustificationsPolicy() { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -4646,6 +4690,10 @@ public Builder clearKeyAccessJustificationsPolicy() { * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java index 068d138fde6a..8b8a27a2f8b0 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java @@ -620,6 +620,10 @@ java.lang.String getLabelsOrDefault( * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -642,6 +646,10 @@ java.lang.String getLabelsOrDefault( * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * @@ -664,6 +672,10 @@ java.lang.String getLabelsOrDefault( * justification codes. * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes * By default, this field is absent, and all justification codes are allowed. + * If the + * `key_access_justifications_policy.allowed_access_reasons` + * is empty (zero allowed justification code), all encrypt, decrypt, and sign + * operations will fail. * * * diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java index e393d6b76be6..32d7923877f7 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java @@ -78,6 +78,7 @@ public enum DigestCase SHA256(1), SHA384(2), SHA512(3), + EXTERNAL_MU(4), DIGEST_NOT_SET(0); private final int value; @@ -103,6 +104,8 @@ public static DigestCase forNumber(int value) { return SHA384; case 3: return SHA512; + case 4: + return EXTERNAL_MU; case 0: return DIGEST_NOT_SET; default: @@ -230,6 +233,49 @@ public com.google.protobuf.ByteString getSha512() { return com.google.protobuf.ByteString.EMPTY; } + public static final int EXTERNAL_MU_FIELD_NUMBER = 4; + + /** + * + * + *

              +   * A message digest produced with SHAKE-256, to be used with ML-DSA
              +   * external-μ algorithms only. See "message representative" note in
              +   * section 6.2, algorithm 7 of the FIPS-204 standard:
              +   * https://doi.org/10.6028/nist.fips.204
              +   * 
              + * + * bytes external_mu = 4; + * + * @return Whether the externalMu field is set. + */ + @java.lang.Override + public boolean hasExternalMu() { + return digestCase_ == 4; + } + + /** + * + * + *
              +   * A message digest produced with SHAKE-256, to be used with ML-DSA
              +   * external-μ algorithms only. See "message representative" note in
              +   * section 6.2, algorithm 7 of the FIPS-204 standard:
              +   * https://doi.org/10.6028/nist.fips.204
              +   * 
              + * + * bytes external_mu = 4; + * + * @return The externalMu. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalMu() { + if (digestCase_ == 4) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -253,6 +299,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (digestCase_ == 3) { output.writeBytes(3, (com.google.protobuf.ByteString) digest_); } + if (digestCase_ == 4) { + output.writeBytes(4, (com.google.protobuf.ByteString) digest_); + } getUnknownFields().writeTo(output); } @@ -277,6 +326,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeBytesSize( 3, (com.google.protobuf.ByteString) digest_); } + if (digestCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 4, (com.google.protobuf.ByteString) digest_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -303,6 +357,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getSha512().equals(other.getSha512())) return false; break; + case 4: + if (!getExternalMu().equals(other.getExternalMu())) return false; + break; case 0: default: } @@ -330,6 +387,10 @@ public int hashCode() { hash = (37 * hash) + SHA512_FIELD_NUMBER; hash = (53 * hash) + getSha512().hashCode(); break; + case 4: + hash = (37 * hash) + EXTERNAL_MU_FIELD_NUMBER; + hash = (53 * hash) + getExternalMu().hashCode(); + break; case 0: default: } @@ -542,6 +603,11 @@ public Builder mergeFrom(com.google.cloud.kms.v1.Digest other) { setSha512(other.getSha512()); break; } + case EXTERNAL_MU: + { + setExternalMu(other.getExternalMu()); + break; + } case DIGEST_NOT_SET: { break; @@ -591,6 +657,12 @@ public Builder mergeFrom( digestCase_ = 3; break; } // case 26 + case 34: + { + digest_ = input.readBytes(); + digestCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -849,6 +921,93 @@ public Builder clearSha512() { return this; } + /** + * + * + *
              +     * A message digest produced with SHAKE-256, to be used with ML-DSA
              +     * external-μ algorithms only. See "message representative" note in
              +     * section 6.2, algorithm 7 of the FIPS-204 standard:
              +     * https://doi.org/10.6028/nist.fips.204
              +     * 
              + * + * bytes external_mu = 4; + * + * @return Whether the externalMu field is set. + */ + public boolean hasExternalMu() { + return digestCase_ == 4; + } + + /** + * + * + *
              +     * A message digest produced with SHAKE-256, to be used with ML-DSA
              +     * external-μ algorithms only. See "message representative" note in
              +     * section 6.2, algorithm 7 of the FIPS-204 standard:
              +     * https://doi.org/10.6028/nist.fips.204
              +     * 
              + * + * bytes external_mu = 4; + * + * @return The externalMu. + */ + public com.google.protobuf.ByteString getExternalMu() { + if (digestCase_ == 4) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
              +     * A message digest produced with SHAKE-256, to be used with ML-DSA
              +     * external-μ algorithms only. See "message representative" note in
              +     * section 6.2, algorithm 7 of the FIPS-204 standard:
              +     * https://doi.org/10.6028/nist.fips.204
              +     * 
              + * + * bytes external_mu = 4; + * + * @param value The externalMu to set. + * @return This builder for chaining. + */ + public Builder setExternalMu(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + digestCase_ = 4; + digest_ = value; + onChanged(); + return this; + } + + /** + * + * + *
              +     * A message digest produced with SHAKE-256, to be used with ML-DSA
              +     * external-μ algorithms only. See "message representative" note in
              +     * section 6.2, algorithm 7 of the FIPS-204 standard:
              +     * https://doi.org/10.6028/nist.fips.204
              +     * 
              + * + * bytes external_mu = 4; + * + * @return This builder for chaining. + */ + public Builder clearExternalMu() { + if (digestCase_ == 4) { + digestCase_ = 0; + digest_ = null; + onChanged(); + } + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.Digest) } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java index 8e91d87ae4ac..afe87a7ee65c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java @@ -104,5 +104,37 @@ public interface DigestOrBuilder */ com.google.protobuf.ByteString getSha512(); + /** + * + * + *
              +   * A message digest produced with SHAKE-256, to be used with ML-DSA
              +   * external-μ algorithms only. See "message representative" note in
              +   * section 6.2, algorithm 7 of the FIPS-204 standard:
              +   * https://doi.org/10.6028/nist.fips.204
              +   * 
              + * + * bytes external_mu = 4; + * + * @return Whether the externalMu field is set. + */ + boolean hasExternalMu(); + + /** + * + * + *
              +   * A message digest produced with SHAKE-256, to be used with ML-DSA
              +   * external-μ algorithms only. See "message representative" note in
              +   * section 6.2, algorithm 7 of the FIPS-204 standard:
              +   * https://doi.org/10.6028/nist.fips.204
              +   * 
              + * + * bytes external_mu = 4; + * + * @return The externalMu. + */ + com.google.protobuf.ByteString getExternalMu(); + com.google.cloud.kms.v1.Digest.DigestCase getDigestCase(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/HsmManagementProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/HsmManagementProto.java index 206170c8d2b9..44807b5b6c53 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/HsmManagementProto.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/HsmManagementProto.java @@ -184,7 +184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032#google/longrunning/o" + "perations.proto\032\036google/protobuf/duratio" - + "n.proto\032\033google/protobuf/empty.proto\032\037google/protobuf/timestamp.proto\"\251\007\n" + + "n.proto\032\033google/protobuf/empty.proto\032\037google/protobuf/timestamp.proto\"\322\007\n" + "\027SingleTenantHsmInstance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022F\n" @@ -196,7 +196,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"unrefreshed_duration_until_disable\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0225\n" + "\014disable_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032~\n\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\'\n" + + "\027key_portability_enabled\030\010 \001(\010B\006\340A\001\340A\005\032~\n\n" + "QuorumAuth\022!\n" + "\024total_approver_count\030\001 \001(\005B\003\340A\002\022$\n" + "\027required_approver_count\030\002 \001(\005B\003\340A\003\022\'\n" @@ -211,42 +212,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\006\022\013\n" + "\007DELETED\020\007\022\n\n" + "\006FAILED\020\010:\307\001\352A\303\001\n" - + "/cloudkms.googleapis.com/SingleTenantHsmInstance\022]projects/{proje" - + "ct}/locations/{location}/singleTenantHsmInstances/{single_tenant_hsm_instance}*\030" - + "singleTenantHsmInstances2\027singleTenantHsmInstance\"\231\025\n" + + "/cloudkms.googleapis.com/SingleTenantHsmInstance\022]projects/{proj" + + "ect}/locations/{location}/singleTenantHsmInstances/{single_tenant_hsm_instance}*" + + "\030singleTenantHsmInstances2\027singleTenantHsmInstance\"\231\025\n" + "\037SingleTenantHsmInstanceProposal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" - + "\005state\030\003 \001(\0162:.google.cloud.kms.v1.Sing" - + "leTenantHsmInstanceProposal.StateB\003\340A\003\022\033\n" + + "\005state\030\003 \001(\0162:.google.cloud.kms.v1.Sin" + + "gleTenantHsmInstanceProposal.StateB\003\340A\003\022\033\n" + "\016failure_reason\030\004 \001(\tB\003\340A\003\022g\n" - + "\021quorum_parameters\030\005 \001(\0132E.google.cloud.kms.v1.Sin" - + "gleTenantHsmInstanceProposal.QuorumParametersB\003\340A\003H\000\022\205\001\n" - + "!required_action_quorum_parameters\030\016 \001(\0132S.google.cloud.kms.v1.S" - + "ingleTenantHsmInstanceProposal.RequiredActionQuorumParametersB\003\340A\003H\000\0221\n" + + "\021quorum_parameters\030\005 \001(\0132E.google.cloud.kms.v1.Si" + + "ngleTenantHsmInstanceProposal.QuorumParametersB\003\340A\003H\000\022\205\001\n" + + "!required_action_quorum_parameters\030\016 \001(\0132S.google.cloud.kms.v1." + + "SingleTenantHsmInstanceProposal.RequiredActionQuorumParametersB\003\340A\003H\000\0221\n" + "\013expire_time\030\006 \001(\0132\032.google.protobuf.TimestampH\001\022-\n" + "\003ttl\030\007 \001(\0132\031.google.protobuf.DurationB\003\340A\004H\001\0224\n" + "\013delete_time\030\017" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n\n" + "purge_time\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022w\n" - + "\035register_two_factor_auth_keys\030\010 \001(\0132N.googl" - + "e.cloud.kms.v1.SingleTenantHsmInstanceProposal.RegisterTwoFactorAuthKeysH\002\022\201\001\n" - + "\"disable_single_tenant_hsm_instance\030\t \001(\0132" - + "S.google.cloud.kms.v1.SingleTenantHsmIns" - + "tanceProposal.DisableSingleTenantHsmInstanceH\002\022\177\n" + + "\035register_two_factor_auth_keys\030\010 \001(\0132N.goog" + + "le.cloud.kms.v1.SingleTenantHsmInstanceProposal.RegisterTwoFactorAuthKeysH\002\022\201\001\n" + + "\"disable_single_tenant_hsm_instance\030\t \001(\013" + + "2S.google.cloud.kms.v1.SingleTenantHsmIn" + + "stanceProposal.DisableSingleTenantHsmInstanceH\002\022\177\n" + "!enable_single_tenant_hsm_instance\030\n" - + " \001(\0132R.google.cloud.kms.v1.SingleTe" - + "nantHsmInstanceProposal.EnableSingleTenantHsmInstanceH\002\022\177\n" - + "!delete_single_tenant_hsm_instance\030\013 \001(\0132R.google.cloud.kms.v1" - + ".SingleTenantHsmInstanceProposal.DeleteSingleTenantHsmInstanceH\002\022a\n" - + "\021add_quorum_member\030\014 \001(\0132D.google.cloud.kms.v1.Single" - + "TenantHsmInstanceProposal.AddQuorumMemberH\002\022g\n" + + " \001(\0132R.google.cloud.kms.v1.SingleT" + + "enantHsmInstanceProposal.EnableSingleTenantHsmInstanceH\002\022\177\n" + + "!delete_single_tenant_hsm_instance\030\013 \001(\0132R.google.cloud.kms.v" + + "1.SingleTenantHsmInstanceProposal.DeleteSingleTenantHsmInstanceH\002\022a\n" + + "\021add_quorum_member\030\014 \001(\0132D.google.cloud.kms.v1.Singl" + + "eTenantHsmInstanceProposal.AddQuorumMemberH\002\022g\n" + "\024remove_quorum_member\030\r" - + " \001(\0132G.goog" - + "le.cloud.kms.v1.SingleTenantHsmInstanceProposal.RemoveQuorumMemberH\002\022\201\001\n" - + "\"refresh_single_tenant_hsm_instance\030\021 \001(\0132S.goog" - + "le.cloud.kms.v1.SingleTenantHsmInstanceP" - + "roposal.RefreshSingleTenantHsmInstanceH\002\032\243\001\n" + + " \001(\0132G.goo" + + "gle.cloud.kms.v1.SingleTenantHsmInstanceProposal.RemoveQuorumMemberH\002\022\201\001\n" + + "\"refresh_single_tenant_hsm_instance\030\021 \001(\0132S.goo" + + "gle.cloud.kms.v1.SingleTenantHsmInstance" + + "Proposal.RefreshSingleTenantHsmInstanceH\002\032\243\001\n" + "\020QuorumParameters\022$\n" + "\027required_approver_count\030\001 \001(\005B\003\340A\003\0227\n\n" + "challenges\030\002 \003(\0132\036.google.cloud.kms.v1.ChallengeB\003\340A\003\0220\n" @@ -278,9 +279,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSUCCEEDED\020\005\022\n\n" + "\006FAILED\020\006\022\013\n" + "\007DELETED\020\007:\364\001\352A\360\001\n" - + "7cloudkms.googleapis.com/SingleTenantHsmInst" - + "anceProposal\022rprojects/{project}/locations/{location}/singleTenantHsmInstances/{" - + "single_tenant_hsm_instance}/proposals/{proposal}*" + + "7cloudkms.googleapis.com/SingleTenantHsmInstanceProposal\022rprojects/{project}/locati" + + "ons/{location}/singleTenantHsmInstances/" + + "{single_tenant_hsm_instance}/proposals/{proposal}*" + " singleTenantHsmInstanceProposals2\037singleTenantHsmInstanceProposalB\025\n" + "\023approval_parametersB\014\n\n" + "expirationB\013\n" @@ -302,8 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$ListSingleTenantHsmInstancesResponse\022Q\n" + "\033single_tenant_hsm_instances\030\001" + " \003(\0132,.google.cloud.kms.v1.SingleTenantHsmInstance\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\022\n" - + "\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + "total_size\030\003 \001(\005\"j\n" + "!GetSingleTenantHsmInstanceRequest\022E\n" + "\004name\030\001 \001(\tB7\340A\002\372A1\n" @@ -328,10 +328,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-ApproveSingleTenantHsmInstanceProposalRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7cloudkms.googleapis.com/SingleTenantHsmInstanceProposal\022k\n" - + "\014quorum_reply\030\002 \001(\0132N.google.cloud.kms.v1.ApproveSingleTena" - + "ntHsmInstanceProposalRequest.QuorumReplyB\003\340A\002H\000\022\211\001\n" - + "\034required_action_quorum_reply\030\003 \001(\0132\\.google.cloud.kms.v1.ApproveSing" - + "leTenantHsmInstanceProposalRequest.RequiredActionQuorumReplyB\003\340A\002H\000\032R\n" + + "\014quorum_reply\030\002 \001(\0132N.google.cloud.kms.v1.ApproveSingleTen" + + "antHsmInstanceProposalRequest.QuorumReplyB\003\340A\002H\000\022\211\001\n" + + "\034required_action_quorum_reply\030\003 \001(\0132\\.google.cloud.kms.v1.ApproveSin" + + "gleTenantHsmInstanceProposalRequest.RequiredActionQuorumReplyB\003\340A\002H\000\032R\n" + "\013QuorumReply\022C\n" + "\021challenge_replies\030\001" + " \003(\0132#.google.cloud.kms.v1.ChallengeReplyB\003\340A\002\032\265\001\n" @@ -362,59 +362,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "total_size\030\003 \001(\005\"}\n" + ",DeleteSingleTenantHsmInstanceProposalRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" - + "7cloudkms.googleapis.com/SingleTenantHsmInstanceProposal2\243\025\n\r" + + "7cloudkms.googleapis.com/SingleTenantHsmInstanceProposal2\243\025\n" + + "\r" + "HsmManagement\022\342\001\n" - + "\034ListSingleTenantHsmInstances\0228.google.cloud.kms.v1.ListSingleT" - + "enantHsmInstancesRequest\0329.google.cloud.kms.v1.ListSingleTenantHsmInstancesRespo" - + "nse\"M\332A\006parent\202\323\344\223\002>\022\022.google.c" - + "loud.kms.v1.GetSingleTenantHsmInstanceProposalRequest\0324.google.cloud.kms.v1.Sing" - + "leTenantHsmInstanceProposal\"W\332A\004name\202\323\344\223" - + "\002J\022H/v1/{name=projects/*/locations/*/singleTenantHsmInstances/*/proposals/*}\022\206\002\n" - + "$ListSingleTenantHsmInstanceProposals\022@.google.cloud.kms.v1.ListSingleTenantHsmI" - + "nstanceProposalsRequest\032A.google.cloud.kms.v1.ListSingleTenantHsmInstanceProposa" - + "lsResponse\"Y\332A\006parent\202\323\344\223\002J\022H/v1/{parent" - + "=projects/*/locations/*/singleTenantHsmInstances/*}/proposals\022\333\001\n" - + "%DeleteSingleTenantHsmInstanceProposal\022A.google.cloud.k" - + "ms.v1.DeleteSingleTenantHsmInstancePropo" - + "salRequest\032\026.google.protobuf.Empty\"W\332A\004n" - + "ame\202\323\344\223\002J*H/v1/{name=projects/*/location" - + "s/*/singleTenantHsmInstances/*/proposals" - + "/*}\032t\312A\027cloudkms.googleapis.com\322AWhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/cloudkmsB\206\001\n" - + "\027com.google.cloud.kms.v1B\022HsmManagementProtoP\001Z)cloud.google.com/go/kms/api" - + "v1/kmspb;kmspb\252\002\023Google.Cloud.Kms.V1\312\002\023G" - + "oogle\\Cloud\\Kms\\V1b\006proto3" + + "\034ListSingleTenantHsmInstances\0228.google.cloud.kms.v1.ListSingle" + + "TenantHsmInstancesRequest\0329.google.cloud.kms.v1.ListSingleTenantHsmInstancesResp" + + "onse\"M\332A\006parent\202\323\344\223\002>\022\022.google." + + "cloud.kms.v1.GetSingleTenantHsmInstanceProposalRequest\0324.google.cloud.kms.v1.Sin" + + "gleTenantHsmInstanceProposal\"W\332A\004name\202\323\344" + + "\223\002J\022H/v1/{name=projects/*/locations/*/si" + + "ngleTenantHsmInstances/*/proposals/*}\022\206\002\n" + + "$ListSingleTenantHsmInstanceProposals\022@.google.cloud.kms.v1.ListSingleTenantHsm" + + "InstanceProposalsRequest\032A.google.cloud.kms.v1.ListSingleTenantHsmInstancePropos" + + "alsResponse\"Y\332A\006parent\202\323\344\223\002J\022H/v1/{paren" + + "t=projects/*/locations/*/singleTenantHsmInstances/*}/proposals\022\333\001\n" + + "%DeleteSingleTenantHsmInstanceProposal\022A.google.cloud." + + "kms.v1.DeleteSingleTenantHsmInstanceProp" + + "osalRequest\032\026.google.protobuf.Empty\"W\332A\004" + + "name\202\323\344\223\002J*H/v1/{name=projects/*/locatio" + + "ns/*/singleTenantHsmInstances/*/proposal" + + "s/*}\032t\312A\027cloudkms.googleapis.com\322AWhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/cloudkmsB\206\001\n" + + "\027com.google.cloud.kms.v1B\022HsmManagementProtoP\001Z)cloud.google.com/go/kms/ap" + + "iv1/kmspb;kmspb\252\002\023Google.Cloud.Kms.V1\312\002\023" + + "Google\\Cloud\\Kms\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -442,6 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeleteTime", "UnrefreshedDurationUntilDisable", "DisableTime", + "KeyPortabilityEnabled", }); internal_static_google_cloud_kms_v1_SingleTenantHsmInstance_QuorumAuth_descriptor = internal_static_google_cloud_kms_v1_SingleTenantHsmInstance_descriptor.getNestedType(0); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java index 80ef90d10e99..3cdcd9491733 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java @@ -28,7 +28,9 @@ * [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy] * specifies zero or more allowed * [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt, - * and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey] or + * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig] + * (the default Key Access Justifications policy). * * * Protobuf type {@code google.cloud.kms.v1.KeyAccessJustificationsPolicy} @@ -96,10 +98,12 @@ public com.google.cloud.kms.v1.AccessReason convert(int from) { * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -117,10 +121,12 @@ public java.util.List getAllowedAccessReas * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -137,10 +143,12 @@ public int getAllowedAccessReasonsCount() { * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -158,10 +166,12 @@ public com.google.cloud.kms.v1.AccessReason getAllowedAccessReasons(int index) { * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -178,10 +188,12 @@ public java.util.List getAllowedAccessReasonsValueList() { * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -383,7 +395,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy] * specifies zero or more allowed * [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt, - * and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey] or + * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig] + * (the default Key Access Justifications policy). * * * Protobuf type {@code google.cloud.kms.v1.KeyAccessJustificationsPolicy} @@ -562,10 +576,12 @@ private void ensureAllowedAccessReasonsIsMutable() { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -582,10 +598,12 @@ public java.util.List getAllowedAccessReas * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -601,10 +619,12 @@ public int getAllowedAccessReasonsCount() { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -621,10 +641,12 @@ public com.google.cloud.kms.v1.AccessReason getAllowedAccessReasons(int index) { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -648,10 +670,12 @@ public Builder setAllowedAccessReasons(int index, com.google.cloud.kms.v1.Access * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -674,10 +698,12 @@ public Builder addAllowedAccessReasons(com.google.cloud.kms.v1.AccessReason valu * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -700,10 +726,12 @@ public Builder addAllAllowedAccessReasons( * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -722,10 +750,12 @@ public Builder clearAllowedAccessReasons() { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -742,10 +772,12 @@ public java.util.List getAllowedAccessReasonsValueList() { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -762,10 +794,12 @@ public int getAllowedAccessReasonsValue(int index) { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -786,10 +820,12 @@ public Builder setAllowedAccessReasonsValue(int index, int value) { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -809,10 +845,12 @@ public Builder addAllowedAccessReasonsValue(int value) { * *
                    * The list of allowed reasons for access to a
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -     * means all encrypt, decrypt, and sign operations for the
              -     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -     * fail.
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +     * allowed_access_reasons has a different meaning depending on where this
              +     * message appears. If this is under
              +     * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +     * it means allow-all. If this is under
              +     * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                    * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java index 8ac288c7b3a1..d763c8e17df3 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java @@ -31,10 +31,12 @@ public interface KeyAccessJustificationsPolicyOrBuilder * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -48,10 +50,12 @@ public interface KeyAccessJustificationsPolicyOrBuilder * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -65,10 +69,12 @@ public interface KeyAccessJustificationsPolicyOrBuilder * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -83,10 +89,12 @@ public interface KeyAccessJustificationsPolicyOrBuilder * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; @@ -100,10 +108,12 @@ public interface KeyAccessJustificationsPolicyOrBuilder * *
                  * The list of allowed reasons for access to a
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
              -   * means all encrypt, decrypt, and sign operations for the
              -   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
              -   * fail.
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
              +   * allowed_access_reasons has a different meaning depending on where this
              +   * message appears. If this is under
              +   * [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
              +   * it means allow-all. If this is under
              +   * [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
                  * 
              * * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java index 3beacfd90fa1..a64931121968 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java @@ -556,11 +556,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_shared_secret_crc32c\"]\n" + "\033GenerateRandomBytesResponse\022\014\n" + "\004data\030\001 \001(\014\0220\n" - + "\013data_crc32c\030\003 \001(\0132\033.google.protobuf.Int64Value\"H\n" + + "\013data_crc32c\030\003 \001(\0132\033.google.protobuf.Int64Value\"_\n" + "\006Digest\022\020\n" + "\006sha256\030\001 \001(\014H\000\022\020\n" + "\006sha384\030\002 \001(\014H\000\022\020\n" - + "\006sha512\030\003 \001(\014H\000B\010\n" + + "\006sha512\030\003 \001(\014H\000\022\025\n" + + "\013external_mu\030\004 \001(\014H\000B\010\n" + "\006digest\"e\n" + "\020LocationMetadata\022\025\n\r" + "hsm_available\030\001 \001(\010\022\025\n\r" @@ -571,154 +572,156 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'cloudkms.googleapis.com/RetiredResource\" \n" + "\036DeleteCryptoKeyVersionMetadata2\2646\n" + "\024KeyManagementService\022\242\001\n" - + "\014ListKeyRings\022(.google.cloud.kms.v1.ListKeyRingsRequest" - + "\032).google.cloud.kms.v1.ListKeyRingsRespo" - + "nse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/keyRings\022\265\001\n" - + "\016ListCryptoKeys\022*.google.cloud.kms.v1.ListCryptoKe" - + "ysRequest\032+.google.cloud.kms.v1.ListCryp" - + "toKeysResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{pa" - + "rent=projects/*/locations/*/keyRings/*}/cryptoKeys\022\336\001\n" - + "\025ListCryptoKeyVersions\0221.google.cloud.kms.v1.ListCryptoKeyVersions" - + "Request\0322.google.cloud.kms.v1.ListCrypto" - + "KeyVersionsResponse\"^\332A\006parent\202\323\344\223\002O\022M/v" - + "1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions\022\265\001\n" - + "\016ListImportJobs\022*.google.cloud.kms.v1.Lis" - + "tImportJobsRequest\032+.google.cloud.kms.v1" - + ".ListImportJobsResponse\"J\332A\006parent\202\323\344\223\002;" - + "\0229/v1/{parent=projects/*/locations/*/keyRings/*}/importJobs\022\302\001\n" - + "\024ListRetiredResources\0220.google.cloud.kms.v1.ListRetiredRe" - + "sourcesRequest\0321.google.cloud.kms.v1.Lis" - + "tRetiredResourcesResponse\"E\332A\006parent\202\323\344\223" - + "\0026\0224/v1/{parent=projects/*/locations/*}/retiredResources\022\217\001\n\n" - + "GetKeyRing\022&.google.cloud.kms.v1.GetKeyRingRequest\032\034.google" - + ".cloud.kms.v1.KeyRing\";\332A\004name\202\323\344\223\002.\022,/v" - + "1/{name=projects/*/locations/*/keyRings/*}\022\242\001\n" - + "\014GetCryptoKey\022(.google.cloud.kms.v1.GetCryptoKeyRequest\032\036.google.cloud.kms" - + ".v1.CryptoKey\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=" - + "projects/*/locations/*/keyRings/*/cryptoKeys/*}\022\313\001\n" - + "\023GetCryptoKeyVersion\022/.google.cloud.kms.v1.GetCryptoKeyVersionRequest" - + "\032%.google.cloud.kms.v1.CryptoKeyVersion\"" - + "\\\332A\004name\202\323\344\223\002O\022M/v1/{name=projects/*/loc" - + "ations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}\022\300\001\n" - + "\014GetPublicKey\022(.google.cloud.kms.v1.GetPublicKeyRequest\032\036.googl" - + "e.cloud.kms.v1.PublicKey\"f\332A\004name\202\323\344\223\002Y\022" - + "W/v1/{name=projects/*/locations/*/keyRin" - + "gs/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey\022\242\001\n" - + "\014GetImportJob\022(.google.cloud.kms.v1.GetImportJobRequest\032\036.google.clo" - + "ud.kms.v1.ImportJob\"H\332A\004name\202\323\344\223\002;\0229/v1/" - + "{name=projects/*/locations/*/keyRings/*/importJobs/*}\022\257\001\n" - + "\022GetRetiredResource\022..google.cloud.kms.v1.GetRetiredResourceReq" - + "uest\032$.google.cloud.kms.v1.RetiredResour" - + "ce\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/retiredResources/*}\022\266\001\n\r" - + "CreateKeyRing\022).google.cloud.kms.v1.CreateKe" - + "yRingRequest\032\034.google.cloud.kms.v1.KeyRi" - + "ng\"\\\332A\033parent,key_ring_id,key_ring\202\323\344\223\0028" - + "\",/v1/{parent=projects/*/locations/*}/keyRings:\010key_ring\022\317\001\n" - + "\017CreateCryptoKey\022+.google.cloud.kms.v1.CreateCryptoKeyReques" - + "t\032\036.google.cloud.kms.v1.CryptoKey\"o\332A\037pa" - + "rent,crypto_key_id,crypto_key\202\323\344\223\002G\"9/v1" - + "/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\n" + + "\014ListKeyRings\022(.google.cloud.kms.v1.ListKeyRingsRequest\032).google.cloud.k" + + "ms.v1.ListKeyRingsResponse\"=\332A\006parent\202\323\344" + + "\223\002.\022,/v1/{parent=projects/*/locations/*}/keyRings\022\265\001\n" + + "\016ListCryptoKeys\022*.google.cloud.kms.v1.ListCryptoKeysRequest\032+.googl" + + "e.cloud.kms.v1.ListCryptoKeysResponse\"J\332" + + "A\006parent\202\323\344\223\002;\0229/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys\022\336\001\n" + + "\025ListCryptoKeyVersions\0221.google.cloud.kms.v" + + "1.ListCryptoKeyVersionsRequest\0322.google.cloud.kms.v1.ListCryptoKeyVersionsRespon" + + "se\"^\332A\006parent\202\323\344\223\002O\022M/v1/{parent=project" + + "s/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions\022\265\001\n" + + "\016ListImportJobs\022*.google.cloud.kms.v1.ListImportJobsReques" + + "t\032+.google.cloud.kms.v1.ListImportJobsRe" + + "sponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=pro" + + "jects/*/locations/*/keyRings/*}/importJobs\022\302\001\n" + + "\024ListRetiredResources\0220.google.cloud.kms.v1.ListRetiredResourcesRequest\0321." + + "google.cloud.kms.v1.ListRetiredResources" + + "Response\"E\332A\006parent\202\323\344\223\0026\0224/v1/{parent=p" + + "rojects/*/locations/*}/retiredResources\022\217\001\n\n" + + "GetKeyRing\022&.google.cloud.kms.v1.GetKeyRingRequest\032\034.google.cloud.kms.v1.Key" + + "Ring\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/keyRings/*}\022\242\001\n" + + "\014GetCryptoKey\022(.google.cloud.kms.v1.GetCryptoKeyReq" + + "uest\032\036.google.cloud.kms.v1.CryptoKey\"H\332A" + + "\004name\202\323\344\223\002;\0229/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}\022\313\001\n" + + "\023GetCryptoKeyVersion\022/.google.cloud.kms.v1.Get" + + "CryptoKeyVersionRequest\032%.google.cloud.k" + + "ms.v1.CryptoKeyVersion\"\\\332A\004name\202\323\344\223\002O\022M/" + + "v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}\022\300\001\n" + + "\014GetPublicKey\022(.google.cloud.kms.v1.GetP" + + "ublicKeyRequest\032\036.google.cloud.kms.v1.Pu" + + "blicKey\"f\332A\004name\202\323\344\223\002Y\022W/v1/{name=projec" + + "ts/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey\022\242\001\n" + + "\014GetImportJob\022(.google.cloud.kms.v1.GetImport" + + "JobRequest\032\036.google.cloud.kms.v1.ImportJ" + + "ob\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*/locations/*/keyRings/*/importJobs/*}\022\257\001\n" + + "\022GetRetiredResource\022..google.cloud.kms.v" + + "1.GetRetiredResourceRequest\032$.google.clo" + + "ud.kms.v1.RetiredResource\"C\332A\004name\202\323\344\223\0026" + + "\0224/v1/{name=projects/*/locations/*/retiredResources/*}\022\266\001\n\r" + + "CreateKeyRing\022).google.cloud.kms.v1.CreateKeyRingRequest\032\034.go" + + "ogle.cloud.kms.v1.KeyRing\"\\\332A\033parent,key" + + "_ring_id,key_ring\202\323\344\223\0028\",/v1/{parent=pro" + + "jects/*/locations/*}/keyRings:\010key_ring\022\317\001\n" + + "\017CreateCryptoKey\022+.google.cloud.kms.v" + + "1.CreateCryptoKeyRequest\032\036.google.cloud." + + "kms.v1.CryptoKey\"o\332A\037parent,crypto_key_i" + + "d,crypto_key\202\323\344\223\002G\"9/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\n" + "crypto_key\022\373\001\n" - + "\026CreateCryptoKeyVersion\0222.google.cloud.kms.v1.Crea" - + "teCryptoKeyVersionRequest\032%.google.cloud" - + ".kms.v1.CryptoKeyVersion\"\205\001\332A\031parent,cry" - + "pto_key_version\202\323\344\223\002c\"M/v1/{parent=proje" - + "cts/*/locations/*/keyRings/*/cryptoKeys/" - + "*}/cryptoKeyVersions:\022crypto_key_version\022\332\001\n" - + "\017DeleteCryptoKey\022+.google.cloud.kms." - + "v1.DeleteCryptoKeyRequest\032\035.google.longrunning.Operation\"{\312A0\n" - + "\025google.protobuf.Empty\022\027DeleteCryptoKeyMetadata\332A\004name\202\323\344\223" - + "\002;*9/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}\022\204\002\n" - + "\026DeleteCryptoKeyVersion\0222.google.cloud.kms.v1.DeleteCry" - + "ptoKeyVersionRequest\032\035.google.longrunning.Operation\"\226\001\312A7\n" - + "\025google.protobuf.Empty\022\036DeleteCryptoKeyVersionMetadata\332A\004name\202" - + "\323\344\223\002O*M/v1/{name=projects/*/locations/*/" - + "keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}\022\324\001\n" - + "\026ImportCryptoKeyVersion\0222.google.cloud.kms.v1.ImportCryptoKeyVersionRequ" - + "est\032%.google.cloud.kms.v1.CryptoKeyVersi" - + "on\"_\202\323\344\223\002Y\"T/v1/{parent=projects/*/locat" - + "ions/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions:import:\001*\022\317\001\n" - + "\017CreateImportJob\022+.google.cloud.kms.v1.CreateImportJobReq" - + "uest\032\036.google.cloud.kms.v1.ImportJob\"o\332A" - + "\037parent,import_job_id,import_job\202\323\344\223\002G\"9" - + "/v1/{parent=projects/*/locations/*/keyRings/*}/importJobs:\n" + + "\026CreateCryptoKeyVersion\0222.google.cloud.kms.v1.CreateCryptoKeyVersio" + + "nRequest\032%.google.cloud.kms.v1.CryptoKey" + + "Version\"\205\001\332A\031parent,crypto_key_version\202\323" + + "\344\223\002c\"M/v1/{parent=projects/*/locations/*" + + "/keyRings/*/cryptoKeys/*}/cryptoKeyVersions:\022crypto_key_version\022\332\001\n" + + "\017DeleteCryptoKey\022+.google.cloud.kms.v1.DeleteCryptoKe" + + "yRequest\032\035.google.longrunning.Operation\"{\312A0\n" + + "\025google.protobuf.Empty\022\027DeleteCrypt" + + "oKeyMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=pro" + + "jects/*/locations/*/keyRings/*/cryptoKeys/*}\022\204\002\n" + + "\026DeleteCryptoKeyVersion\0222.google.cloud.kms.v1.DeleteCryptoKeyVersionRequ" + + "est\032\035.google.longrunning.Operation\"\226\001\312A7\n" + + "\025google.protobuf.Empty\022\036DeleteCryptoKey" + + "VersionMetadata\332A\004name\202\323\344\223\002O*M/v1/{name=" + + "projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}\022\324\001\n" + + "\026ImportCryptoKeyVersion\0222.google.cloud.kms.v1.Imp" + + "ortCryptoKeyVersionRequest\032%.google.clou" + + "d.kms.v1.CryptoKeyVersion\"_\202\323\344\223\002Y\"T/v1/{" + + "parent=projects/*/locations/*/keyRings/*" + + "/cryptoKeys/*}/cryptoKeyVersions:import:\001*\022\317\001\n" + + "\017CreateImportJob\022+.google.cloud.kms.v1.CreateImportJobRequest\032\036.google.clo" + + "ud.kms.v1.ImportJob\"o\332A\037parent,import_jo" + + "b_id,import_job\202\323\344\223\002G\"9/v1/{parent=proje" + + "cts/*/locations/*/keyRings/*}/importJobs:\n" + "import_job\022\321\001\n" - + "\017UpdateCryptoKey\022+.google.cloud.kms.v1.UpdateCr" - + "yptoKeyRequest\032\036.google.cloud.kms.v1.Cry" - + "ptoKey\"q\332A\026crypto_key,update_mask\202\323\344\223\002R2" - + "D/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:\n" + + "\017UpdateCryptoKey\022+.google.cloud.kms.v1.UpdateCryptoKeyRequest\032\036." + + "google.cloud.kms.v1.CryptoKey\"q\332A\026crypto" + + "_key,update_mask\202\323\344\223\002R2D/v1/{crypto_key." + + "name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:\n" + "crypto_key\022\223\002\n" - + "\026UpdateCryptoKeyVersion\0222.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest" - + "\032%.google.cloud.kms.v1.CryptoKeyVersion\"" - + "\235\001\332A\036crypto_key_version,update_mask\202\323\344\223\002" - + "v2`/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/c" - + "ryptoKeyVersions/*}:\022crypto_key_version\022\362\001\n" - + "\035UpdateCryptoKeyPrimaryVersion\0229.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVe" - + "rsionRequest\032\036.google.cloud.kms.v1.Crypt" - + "oKey\"v\332A\032name,crypto_key_version_id\202\323\344\223\002" - + "S\"N/v1/{name=projects/*/locations/*/keyR" - + "ings/*/cryptoKeys/*}:updatePrimaryVersion:\001*\022\336\001\n" - + "\027DestroyCryptoKeyVersion\0223.google.cloud.kms.v1.DestroyCryptoKeyVersionRe" - + "quest\032%.google.cloud.kms.v1.CryptoKeyVer" - + "sion\"g\332A\004name\202\323\344\223\002Z\"U/v1/{name=projects/" - + "*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\001*\022\336\001\n" - + "\027RestoreCryptoKeyVersion\0223.google.cloud.kms.v1." - + "RestoreCryptoKeyVersionRequest\032%.google." - + "cloud.kms.v1.CryptoKeyVersion\"g\332A\004name\202\323" - + "\344\223\002Z\"U/v1/{name=projects/*/locations/*/k" - + "eyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore:\001*\022\264\001\n" - + "\007Encrypt\022#.google.cloud.kms.v1.EncryptRequest\032$.google.cloud.k" - + "ms.v1.EncryptResponse\"^\332A\016name,plaintext" - + "\202\323\344\223\002G\"B/v1/{name=projects/*/locations/*" - + "/keyRings/*/cryptoKeys/**}:encrypt:\001*\022\264\001\n" - + "\007Decrypt\022#.google.cloud.kms.v1.DecryptR" - + "equest\032$.google.cloud.kms.v1.DecryptResp" - + "onse\"^\332A\017name,ciphertext\202\323\344\223\002F\"A/v1/{nam" - + "e=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt:\001*\022\302\001\n\n" - + "RawEncrypt\022&.google.cloud.kms.v1.RawEncryptRequest\032\'.go" - + "ogle.cloud.kms.v1.RawEncryptResponse\"c\202\323" - + "\344\223\002]\"X/v1/{name=projects/*/locations/*/k" - + "eyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:rawEncrypt:\001*\022\302\001\n\n" - + "RawDecrypt\022&.google.cloud.kms.v1.RawDecryptRequest\032\'.googl" - + "e.cloud.kms.v1.RawDecryptResponse\"c\202\323\344\223\002" - + "]\"X/v1/{name=projects/*/locations/*/keyR" - + "ings/*/cryptoKeys/*/cryptoKeyVersions/*}:rawDecrypt:\001*\022\340\001\n" - + "\016AsymmetricSign\022*.google.cloud.kms.v1.AsymmetricSignRequest\032+." - + "google.cloud.kms.v1.AsymmetricSignRespon" - + "se\"u\332A\013name,digest\202\323\344\223\002a\"\\/v1/{name=proj" + + "\026UpdateCryptoKeyVersion\0222.google.cloud.kms.v1.Update" + + "CryptoKeyVersionRequest\032%.google.cloud.k" + + "ms.v1.CryptoKeyVersion\"\235\001\332A\036crypto_key_v" + + "ersion,update_mask\202\323\344\223\002v2`/v1/{crypto_ke" + + "y_version.name=projects/*/locations/*/ke" + + "yRings/*/cryptoKeys/*/cryptoKeyVersions/*}:\022crypto_key_version\022\362\001\n" + + "\035UpdateCryptoKeyPrimaryVersion\0229.google.cloud.kms.v1.U" + + "pdateCryptoKeyPrimaryVersionRequest\032\036.go" + + "ogle.cloud.kms.v1.CryptoKey\"v\332A\032name,cry" + + "pto_key_version_id\202\323\344\223\002S\"N/v1/{name=proj" + + "ects/*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion:\001*\022\336\001\n" + + "\027DestroyCryptoKeyVersion\0223.google.cloud.kms.v1.De" + + "stroyCryptoKeyVersionRequest\032%.google.cl" + + "oud.kms.v1.CryptoKeyVersion\"g\332A\004name\202\323\344\223" + + "\002Z\"U/v1/{name=projects/*/locations/*/key" + + "Rings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\001*\022\336\001\n" + + "\027RestoreCryptoKeyVersion\0223.google.cloud.kms.v1.RestoreCryptoKeyV" + + "ersionRequest\032%.google.cloud.kms.v1.Cryp" + + "toKeyVersion\"g\332A\004name\202\323\344\223\002Z\"U/v1/{name=p" + + "rojects/*/locations/*/keyRings/*/cryptoK" + + "eys/*/cryptoKeyVersions/*}:restore:\001*\022\264\001\n" + + "\007Encrypt\022#.google.cloud.kms.v1.EncryptR" + + "equest\032$.google.cloud.kms.v1.EncryptResp" + + "onse\"^\332A\016name,plaintext\202\323\344\223\002G\"B/v1/{name" + + "=projects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt:\001*\022\264\001\n" + + "\007Decrypt\022#.google.cloud.kms.v1.DecryptRequest\032$.google.c" + + "loud.kms.v1.DecryptResponse\"^\332A\017name,cip" + + "hertext\202\323\344\223\002F\"A/v1/{name=projects/*/loca" + + "tions/*/keyRings/*/cryptoKeys/*}:decrypt:\001*\022\302\001\n\n" + + "RawEncrypt\022&.google.cloud.kms.v1.RawEncryptRequest\032\'.google.cloud.kms.v1" + + ".RawEncryptResponse\"c\202\323\344\223\002]\"X/v1/{name=p" + + "rojects/*/locations/*/keyRings/*/cryptoK" + + "eys/*/cryptoKeyVersions/*}:rawEncrypt:\001*\022\302\001\n\n" + + "RawDecrypt\022&.google.cloud.kms.v1.RawDecryptRequest\032\'.google.cloud.kms.v1.Ra" + + "wDecryptResponse\"c\202\323\344\223\002]\"X/v1/{name=proj" + "ects/*/locations/*/keyRings/*/cryptoKeys" - + "/*/cryptoKeyVersions/*}:asymmetricSign:\001*\022\360\001\n" - + "\021AsymmetricDecrypt\022-.google.cloud.kms.v1.AsymmetricDecryptRequest\032..google." - + "cloud.kms.v1.AsymmetricDecryptResponse\"|" - + "\332A\017name,ciphertext\202\323\344\223\002d\"_/v1/{name=proj" - + "ects/*/locations/*/keyRings/*/cryptoKeys" - + "/*/cryptoKeyVersions/*}:asymmetricDecrypt:\001*\022\302\001\n" - + "\007MacSign\022#.google.cloud.kms.v1.M" - + "acSignRequest\032$.google.cloud.kms.v1.MacSignResponse\"l\332A" - + "\tname,data\202\323\344\223\002Z\"U/v1/{name=projects/*/locations/*/keyRings/*/cry" - + "ptoKeys/*/cryptoKeyVersions/*}:macSign:\001*\022\316\001\n" - + "\tMacVerify\022%.google.cloud.kms.v1.Ma" - + "cVerifyRequest\032&.google.cloud.kms.v1.MacVerifyResponse\"r\332A\r" - + "name,data,mac\202\323\344\223\002\\\"W/v1/{name=projects/*/locations/*/keyRing" - + "s/*/cryptoKeys/*/cryptoKeyVersions/*}:macVerify:\001*\022\306\001\n" - + "\013Decapsulate\022\'.google.clou", - "d.kms.v1.DecapsulateRequest\032(.google.clo" - + "ud.kms.v1.DecapsulateResponse\"d\202\323\344\223\002^\"Y/" - + "v1/{name=projects/*/locations/*/keyRings" - + "/*/cryptoKeys/*/cryptoKeyVersions/*}:dec" - + "apsulate:\001*\022\347\001\n\023GenerateRandomBytes\022/.go" - + "ogle.cloud.kms.v1.GenerateRandomBytesReq" - + "uest\0320.google.cloud.kms.v1.GenerateRando" - + "mBytesResponse\"m\332A&location,length_bytes" - + ",protection_level\202\323\344\223\002>\"9/v1/{location=p" - + "rojects/*/locations/*}:generateRandomByt" - + "es:\001*\032t\312A\027cloudkms.googleapis.com\322AWhttp" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm,https://www.googleapis.com/auth/cloud" - + "kmsB|\n\027com.google.cloud.kms.v1B\010KmsProto" - + "P\001Z)cloud.google.com/go/kms/apiv1/kmspb;" - + "kmspb\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Clo" - + "ud\\Kms\\V1b\006proto3" + + "/*/cryptoKeyVersions/*}:rawDecrypt:\001*\022\340\001\n" + + "\016AsymmetricSign\022*.google.cloud.kms.v1.A" + + "symmetricSignRequest\032+.google.cloud.kms." + + "v1.AsymmetricSignResponse\"u\332A\013name,diges" + + "t\202\323\344\223\002a\"\\/v1/{name=projects/*/locations/" + + "*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricSign:\001*\022\360\001\n" + + "\021AsymmetricDecrypt\022-.google.cloud.kms.v1.AsymmetricD" + + "ecryptRequest\032..google.cloud.kms.v1.Asym" + + "metricDecryptResponse\"|\332A\017name,ciphertex" + + "t\202\323\344\223\002d\"_/v1/{name=projects/*/locations/" + + "*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt:\001*\022\302\001\n" + + "\007MacSign\022" + + "#.google.cloud.kms.v1.MacSignRequest\032$.google.cloud.kms.v1.MacSignResponse\"l\332A" + + "\tname,data\202\323\344\223\002Z\"U/v1/{name=projects/*/loc" + + "ations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:macSign:\001*\022\316\001\n" + + "\tMacVerify\022%.google.cloud.kms.v1.MacVerifyRequest\032&." + + "google.cloud.kms.v1.MacVerifyResponse\"r\332A\r" + + "name,data,mac\202\323\344\223\002\\\"W/v1/{name=project" + + "s/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:macVerify:\001*\022\306\001\n" + + "\013De", + "capsulate\022\'.google.cloud.kms.v1.Decapsul" + + "ateRequest\032(.google.cloud.kms.v1.Decapsu" + + "lateResponse\"d\202\323\344\223\002^\"Y/v1/{name=projects" + + "/*/locations/*/keyRings/*/cryptoKeys/*/c" + + "ryptoKeyVersions/*}:decapsulate:\001*\022\347\001\n\023G" + + "enerateRandomBytes\022/.google.cloud.kms.v1" + + ".GenerateRandomBytesRequest\0320.google.clo" + + "ud.kms.v1.GenerateRandomBytesResponse\"m\332" + + "A&location,length_bytes,protection_level" + + "\202\323\344\223\002>\"9/v1/{location=projects/*/locatio" + + "ns/*}:generateRandomBytes:\001*\032t\312A\027cloudkm" + + "s.googleapis.com\322AWhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/cloudkmsB|\n\027com.google" + + ".cloud.kms.v1B\010KmsProtoP\001Z)cloud.google." + + "com/go/kms/apiv1/kmspb;kmspb\252\002\023Google.Cl" + + "oud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1183,7 +1186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_Digest_descriptor, new java.lang.String[] { - "Sha256", "Sha384", "Sha512", "Digest", + "Sha256", "Sha384", "Sha512", "ExternalMu", "Digest", }); internal_static_google_cloud_kms_v1_LocationMetadata_descriptor = getDescriptor().getMessageType(49); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java index c6a5ad50ad60..7bee71dbc708 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java @@ -1901,6 +1901,30 @@ public com.google.protobuf.TimestampOrBuilder getDisableTimeOrBuilder() { return disableTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : disableTime_; } + public static final int KEY_PORTABILITY_ENABLED_FIELD_NUMBER = 8; + private boolean keyPortabilityEnabled_ = false; + + /** + * + * + *
              +   * Optional. Immutable. Indicates whether key portability is enabled for the
              +   * [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance].
              +   * This can only be set at creation time. Key portability features are
              +   * disabled by default and not yet available in GA.
              +   * 
              + * + * + * bool key_portability_enabled = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The keyPortabilityEnabled. + */ + @java.lang.Override + public boolean getKeyPortabilityEnabled() { + return keyPortabilityEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1937,6 +1961,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getDisableTime()); } + if (keyPortabilityEnabled_ != false) { + output.writeBool(8, keyPortabilityEnabled_); + } getUnknownFields().writeTo(output); } @@ -1970,6 +1997,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDisableTime()); } + if (keyPortabilityEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, keyPortabilityEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2010,6 +2040,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDisableTime()) { if (!getDisableTime().equals(other.getDisableTime())) return false; } + if (getKeyPortabilityEnabled() != other.getKeyPortabilityEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2045,6 +2076,8 @@ public int hashCode() { hash = (37 * hash) + DISABLE_TIME_FIELD_NUMBER; hash = (53 * hash) + getDisableTime().hashCode(); } + hash = (37 * hash) + KEY_PORTABILITY_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyPortabilityEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2231,6 +2264,7 @@ public Builder clear() { disableTimeBuilder_.dispose(); disableTimeBuilder_ = null; } + keyPortabilityEnabled_ = false; return this; } @@ -2298,6 +2332,9 @@ private void buildPartial0(com.google.cloud.kms.v1.SingleTenantHsmInstance resul disableTimeBuilder_ == null ? disableTime_ : disableTimeBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.keyPortabilityEnabled_ = keyPortabilityEnabled_; + } result.bitField0_ |= to_bitField0_; } @@ -2337,6 +2374,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.SingleTenantHsmInstance other) if (other.hasDisableTime()) { mergeDisableTime(other.getDisableTime()); } + if (other.getKeyPortabilityEnabled() != false) { + setKeyPortabilityEnabled(other.getKeyPortabilityEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2411,6 +2451,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 64: + { + keyPortabilityEnabled_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3857,6 +3903,77 @@ public com.google.protobuf.TimestampOrBuilder getDisableTimeOrBuilder() { return disableTimeBuilder_; } + private boolean keyPortabilityEnabled_; + + /** + * + * + *
              +     * Optional. Immutable. Indicates whether key portability is enabled for the
              +     * [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance].
              +     * This can only be set at creation time. Key portability features are
              +     * disabled by default and not yet available in GA.
              +     * 
              + * + * + * bool key_portability_enabled = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The keyPortabilityEnabled. + */ + @java.lang.Override + public boolean getKeyPortabilityEnabled() { + return keyPortabilityEnabled_; + } + + /** + * + * + *
              +     * Optional. Immutable. Indicates whether key portability is enabled for the
              +     * [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance].
              +     * This can only be set at creation time. Key portability features are
              +     * disabled by default and not yet available in GA.
              +     * 
              + * + * + * bool key_portability_enabled = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The keyPortabilityEnabled to set. + * @return This builder for chaining. + */ + public Builder setKeyPortabilityEnabled(boolean value) { + + keyPortabilityEnabled_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Immutable. Indicates whether key portability is enabled for the
              +     * [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance].
              +     * This can only be set at creation time. Key portability features are
              +     * disabled by default and not yet available in GA.
              +     * 
              + * + * + * bool key_portability_enabled = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearKeyPortabilityEnabled() { + bitField0_ = (bitField0_ & ~0x00000080); + keyPortabilityEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.SingleTenantHsmInstance) } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java index 1474e107426a..1d2d91238b49 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java @@ -335,4 +335,22 @@ public interface SingleTenantHsmInstanceOrBuilder *
              */ com.google.protobuf.TimestampOrBuilder getDisableTimeOrBuilder(); + + /** + * + * + *
              +   * Optional. Immutable. Indicates whether key portability is enabled for the
              +   * [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance].
              +   * This can only be set at creation time. Key portability features are
              +   * disabled by default and not yet available in GA.
              +   * 
              + * + * + * bool key_portability_enabled = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The keyPortabilityEnabled. + */ + boolean getKeyPortabilityEnabled(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto index dce2f3c0dc51..fb87ef9e6e83 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto @@ -307,6 +307,15 @@ message SingleTenantHsmInstance { // become disabled. google.protobuf.Timestamp disable_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Immutable. Indicates whether key portability is enabled for the + // [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance]. + // This can only be set at creation time. Key portability features are + // disabled by default and not yet available in GA. + bool key_portability_enabled = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; } // A diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto index 347aca03be65..ed59a114e9a1 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto @@ -223,6 +223,10 @@ message CryptoKey { // justification codes. // https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes // By default, this field is absent, and all justification codes are allowed. + // If the + // `key_access_justifications_policy.allowed_access_reasons` + // is empty (zero allowed justification code), all encrypt, decrypt, and sign + // operations will fail. KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(google.api.field_behavior) = OPTIONAL]; } @@ -1056,13 +1060,17 @@ message ExternalProtectionLevelOptions { // [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy] // specifies zero or more allowed // [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt, -// and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey]. +// and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey] or +// [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig] +// (the default Key Access Justifications policy). message KeyAccessJustificationsPolicy { // The list of allowed reasons for access to a - // [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons - // means all encrypt, decrypt, and sign operations for the - // [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will - // fail. + // [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty + // allowed_access_reasons has a different meaning depending on where this + // message appears. If this is under + // [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig], + // it means allow-all. If this is under + // [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all. repeated AccessReason allowed_access_reasons = 1; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto index 858cff51e126..2688ee0c62dc 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto @@ -2335,6 +2335,12 @@ message Digest { // A message digest produced with the SHA-512 algorithm. bytes sha512 = 3; + + // A message digest produced with SHAKE-256, to be used with ML-DSA + // external-μ algorithms only. See "message representative" note in + // section 6.2, algorithm 7 of the FIPS-204 standard: + // https://doi.org/10.6028/nist.fips.204 + bytes external_mu = 4; } } diff --git a/java-kmsinventory/.OwlBot-hermetic.yaml b/java-kmsinventory/.OwlBot-hermetic.yaml index d225e80565d2..7cf69b4cf3e8 100644 --- a/java-kmsinventory/.OwlBot-hermetic.yaml +++ b/java-kmsinventory/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-kmsinventory/samples/snippets/generated" deep-preserve-regex: -- "/java-kmsinventory/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/kms/inventory/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index fa91f765863d..e8a65274055a 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.77.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.77.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.79.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-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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/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-language/.OwlBot-hermetic.yaml b/java-language/.OwlBot-hermetic.yaml index c09db13526e1..3575314d1c5e 100644 --- a/java-language/.OwlBot-hermetic.yaml +++ b/java-language/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-language/proto-google-.*/src" - "/java-language/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/language/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-language/$1/proto-google-cloud-language-$1/src" diff --git a/java-language/README.md b/java-language/README.md index 284c9ca83ffc..6418c207fbc9 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.89.0' +implementation 'com.google.cloud:google-cloud-language:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.91.0" ``` ## Authentication @@ -207,7 +207,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-licensemanager/.OwlBot-hermetic.yaml index 08c791e8342c..54141164978a 100644 --- a/java-licensemanager/.OwlBot-hermetic.yaml +++ b/java-licensemanager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-licensemanager/samples/snippets/generated" deep-preserve-regex: -- "/java-licensemanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/licensemanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md index 0f035bab6d4d..827a9643e829 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 0.21.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-licensemanager:0.21.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.23.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-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.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/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-life-sciences/.OwlBot-hermetic.yaml b/java-life-sciences/.OwlBot-hermetic.yaml index a460bb6e6100..ff8f09839eca 100644 --- a/java-life-sciences/.OwlBot-hermetic.yaml +++ b/java-life-sciences/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-life-sciences/proto-google-.*/src" - "/java-life-sciences/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/lifesciences/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-life-sciences/$1/proto-google-cloud-life-sciences-$1/src" diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 43ad2b94c453..b08a9be17fec 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.90.0 + 0.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.90.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.92.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-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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/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-locationfinder/.OwlBot-hermetic.yaml b/java-locationfinder/.OwlBot-hermetic.yaml index 71625d7391f2..531e37fe2169 100644 --- a/java-locationfinder/.OwlBot-hermetic.yaml +++ b/java-locationfinder/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-locationfinder/samples/snippets/generated" deep-preserve-regex: -- "/java-locationfinder/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/locationfinder/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-locationfinder/README.md b/java-locationfinder/README.md index 5ac633a3e9af..fba63e03c9f8 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.13.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.13.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.15.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-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.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-logging/.OwlBot-hermetic.yaml index 146fffa7eccd..1d47ff31bd4f 100644 --- a/java-logging/.OwlBot-hermetic.yaml +++ b/java-logging/.OwlBot-hermetic.yaml @@ -17,7 +17,8 @@ deep-remove-regex: - /java-logging/proto-google-.*/src - /java-logging/google-.*/src/v.* deep-preserve-regex: -- /java-logging/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java +- /.*google-.*/src/main/java/.*/stub/Version.java +- /.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java deep-copy-regex: - source: /google/logging/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-logging/$1/proto-google-cloud-logging-$1/src diff --git a/java-logging/README.md b/java-logging/README.md index 7faa1a42374f..77214ed2b32a 100644 --- a/java-logging/README.md +++ b/java-logging/README.md @@ -58,13 +58,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.29.0' +implementation 'com.google.cloud:google-cloud-logging:3.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.31.0" ``` ## Authentication @@ -444,7 +444,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.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-lustre/.OwlBot-hermetic.yaml b/java-lustre/.OwlBot-hermetic.yaml index 35149925295a..3c2b5a3e7c13 100644 --- a/java-lustre/.OwlBot-hermetic.yaml +++ b/java-lustre/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-lustre/samples/snippets/generated" deep-preserve-regex: -- "/java-lustre/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/lustre/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-lustre/README.md b/java-lustre/README.md index c63a52eddb5f..fcc82aec2bdd 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 0.28.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.28.0' +implementation 'com.google.cloud:google-cloud-lustre:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.30.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-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.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/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-maintenance/.OwlBot-hermetic.yaml b/java-maintenance/.OwlBot-hermetic.yaml index 52ef638c91c4..b2f51e965a8b 100644 --- a/java-maintenance/.OwlBot-hermetic.yaml +++ b/java-maintenance/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maintenance/samples/snippets/generated" deep-preserve-regex: -- "/java-maintenance/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/maintenance/api/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maintenance/README.md b/java-maintenance/README.md index 410205d049ef..64c4c9d44990 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.22.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.22.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.24.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-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.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/.OwlBot-hermetic.yaml b/java-managed-identities/.OwlBot-hermetic.yaml index d6847a83b50f..d6211988d561 100644 --- a/java-managed-identities/.OwlBot-hermetic.yaml +++ b/java-managed-identities/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-managed-identities/google-.*/src" deep-preserve-regex: -- "/java-managed-identities/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/managedidentities/(v\\d)/.*-java/proto-google-.*/src" diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 79e83c6bab6e..73f4e577f117 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.86.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.86.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.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-managedkafka/.OwlBot-hermetic.yaml b/java-managedkafka/.OwlBot-hermetic.yaml index ec0b04f715bc..fe5fb3a73323 100644 --- a/java-managedkafka/.OwlBot-hermetic.yaml +++ b/java-managedkafka/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-managedkafka/samples/snippets/generated" deep-preserve-regex: -- "/java-managedkafka/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/managedkafka/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 6ee263822c5f..c6ca9bb935b7 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.44.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.44.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.46.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-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.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/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-maps-addressvalidation/.OwlBot-hermetic.yaml b/java-maps-addressvalidation/.OwlBot-hermetic.yaml index 6a923403e131..6beb4c93ba5b 100644 --- a/java-maps-addressvalidation/.OwlBot-hermetic.yaml +++ b/java-maps-addressvalidation/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-addressvalidation/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-addressvalidation/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/addressvalidation/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 52d6d001b8c4..c8d2fcaf7b0f 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-addressvalidation - 0.82.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.82.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.82.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.84.0" ``` ## Authentication @@ -158,7 +158,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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/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-maps-area-insights/.OwlBot-hermetic.yaml b/java-maps-area-insights/.OwlBot-hermetic.yaml index 3fbcb9bee13b..8cec6d3a27e9 100644 --- a/java-maps-area-insights/.OwlBot-hermetic.yaml +++ b/java-maps-area-insights/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-area-insights/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-area-insights/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/areainsights/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index 0eaaf9fd7df5..33dc24e887da 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-area-insights - 0.39.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.39.0' +implementation 'com.google.maps:google-maps-area-insights:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.39.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.41.0" ``` ## Authentication @@ -158,7 +158,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.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/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-maps-fleetengine-delivery/.OwlBot-hermetic.yaml b/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml index 309a1cfd5d27..d708960cb963 100644 --- a/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml +++ b/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-fleetengine-delivery/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-fleetengine-delivery/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index d7f1e8c4d9cf..b4b40ea6c7d5 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine-delivery - 0.35.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.35.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.35.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.37.0" ``` ## Authentication @@ -158,7 +158,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.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-maps-fleetengine/.OwlBot-hermetic.yaml index 6248bc68e648..fc575f9d47a9 100644 --- a/java-maps-fleetengine/.OwlBot-hermetic.yaml +++ b/java-maps-fleetengine/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-fleetengine/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-fleetengine/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/fleetengine/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index 967e999a9ecc..81baf839e8a9 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine - 0.35.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.35.0' +implementation 'com.google.maps:google-maps-fleetengine:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.35.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.37.0" ``` ## Authentication @@ -158,7 +158,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.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-maps-geocode/.OwlBot-hermetic.yaml index 337c1b77e975..0eb3d1729c18 100644 --- a/java-maps-geocode/.OwlBot-hermetic.yaml +++ b/java-maps-geocode/.OwlBot-hermetic.yaml @@ -20,8 +20,8 @@ deep-remove-regex: - "/java-maps-geocode/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-geocode/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-maps-geocode/google-.*/src/main/java/com/google/cloud/.*/v.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" deep-copy-regex: - source: "/google/maps/geocode/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-geocode/README.md b/java-maps-geocode/README.md index fd2afdb420dc..1feb6efec198 100644 --- a/java-maps-geocode/README.md +++ b/java-maps-geocode/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-geocode - 0.0.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-geocode:0.0.0' +implementation 'com.google.maps:google-maps-geocode:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.0.0" +libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.2.0" ``` ## Authentication @@ -158,7 +158,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.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml b/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml index 6bee7d9b0bba..048353339568 100644 --- a/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml +++ b/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-mapsplatformdatasets/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 314460321d6f..ebe078ce44aa 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapsplatformdatasets - 0.77.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.77.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.77.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.79.0" ``` ## Authentication @@ -159,7 +159,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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/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-maps-places/.OwlBot-hermetic.yaml b/java-maps-places/.OwlBot-hermetic.yaml index 66a8e8214a5f..d0d48165c534 100644 --- a/java-maps-places/.OwlBot-hermetic.yaml +++ b/java-maps-places/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-places/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-places/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/places/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-places/README.md b/java-maps-places/README.md index c657f92f649c..a39d3b563a40 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-places - 0.59.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.59.0' +implementation 'com.google.maps:google-maps-places:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.59.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.61.0" ``` ## Authentication @@ -162,7 +162,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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.61.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-maps-routeoptimization/.OwlBot-hermetic.yaml index e83512f9377b..e05ba15b2aa4 100644 --- a/java-maps-routeoptimization/.OwlBot-hermetic.yaml +++ b/java-maps-routeoptimization/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-routeoptimization/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-routeoptimization/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/routeoptimization/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index a4228e90c138..7cc682737ec5 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routeoptimization - 0.46.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.46.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.46.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.48.0" ``` ## Authentication @@ -158,7 +158,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.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/.OwlBot-hermetic.yaml b/java-maps-routing/.OwlBot-hermetic.yaml index fa373f0b66eb..75058a8ea00d 100644 --- a/java-maps-routing/.OwlBot-hermetic.yaml +++ b/java-maps-routing/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-routing/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-routing/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/routing/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 6d0ac9dbc6cc..8f44e38671e7 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routing - 1.73.0 + 1.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.73.0' +implementation 'com.google.maps:google-maps-routing:1.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.73.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.75.0" ``` ## Authentication @@ -152,7 +152,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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-maps-solar/.OwlBot-hermetic.yaml index ace323a1443c..3939a2705e84 100644 --- a/java-maps-solar/.OwlBot-hermetic.yaml +++ b/java-maps-solar/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-maps-solar/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-solar/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/maps/solar/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 40b4d31042ae..5081b487578d 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-solar - 0.47.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.47.0' +implementation 'com.google.maps:google-maps-solar:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.47.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.49.0" ``` ## Authentication @@ -158,7 +158,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.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/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-marketingplatformadminapi/.OwlBot-hermetic.yaml b/java-marketingplatformadminapi/.OwlBot-hermetic.yaml index d07fb81d9208..4634763f98b4 100644 --- a/java-marketingplatformadminapi/.OwlBot-hermetic.yaml +++ b/java-marketingplatformadminapi/.OwlBot-hermetic.yaml @@ -16,11 +16,12 @@ deep-remove-regex: - "/java-marketingplatformadminapi/grpc-google-.*/src" - "/java-marketingplatformadminapi/proto-google-.*/src" -- "/java-marketingplatformadminapi/google-.*/src" +- "/java-marketingplatformadminapi/admin/src" - "/java-marketingplatformadminapi/samples/snippets/generated" deep-preserve-regex: -- "/java-marketingplatformadminapi/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*admin.*/src/main/java/.*/stub/Version.java" +- "/.*admin.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/marketingplatform/admin/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index b6a6ee06dd51..cee34700fad7 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.ads-marketingplatform admin - 0.37.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.37.0' +implementation 'com.google.ads-marketingplatform:admin:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.37.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.39.0" ``` ## Authentication @@ -158,7 +158,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.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-mediatranslation/.OwlBot-hermetic.yaml index e7038eab169a..2f0f15ea1354 100644 --- a/java-mediatranslation/.OwlBot-hermetic.yaml +++ b/java-mediatranslation/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-mediatranslation/proto-google-.*/src" - "/java-mediatranslation/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/mediatranslation/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-mediatranslation/$1/proto-google-cloud-mediatranslation-$1/src" diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index dc4712a7256b..4c939b5c13c7 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.94.0 + 0.96.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.94.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.96.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-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.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/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-meet/.OwlBot-hermetic.yaml b/java-meet/.OwlBot-hermetic.yaml index f719201f48e6..98c1a22ecfae 100644 --- a/java-meet/.OwlBot-hermetic.yaml +++ b/java-meet/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-meet/samples/snippets/generated" deep-preserve-regex: -- "/java-meet/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/apps/meet/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-meet/README.md b/java-meet/README.md index 0825d5e522e8..2254d00ed749 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.55.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.55.0' +implementation 'com.google.cloud:google-cloud-meet:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.57.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-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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/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-memcache/.OwlBot-hermetic.yaml b/java-memcache/.OwlBot-hermetic.yaml index 74461111285a..e8277f172055 100644 --- a/java-memcache/.OwlBot-hermetic.yaml +++ b/java-memcache/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-memcache/google-.*/src" deep-preserve-regex: -- "/java-memcache/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/memcache/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-memcache/README.md b/java-memcache/README.md index 5562001fc2d4..3c5c08058e1f 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.88.0' +implementation 'com.google.cloud:google-cloud-memcache:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-migrationcenter/.OwlBot-hermetic.yaml index 653bc889f6d1..4b7671f76131 100644 --- a/java-migrationcenter/.OwlBot-hermetic.yaml +++ b/java-migrationcenter/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-migrationcenter/samples/snippets/generated" deep-preserve-regex: -- "/java-migrationcenter/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/migrationcenter/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index c676f3f475ba..a134f7a8f824 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.70.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.70.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.72.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-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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/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-modelarmor/.OwlBot-hermetic.yaml b/java-modelarmor/.OwlBot-hermetic.yaml index ac6592d56062..5d05fe9ead89 100644 --- a/java-modelarmor/.OwlBot-hermetic.yaml +++ b/java-modelarmor/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-modelarmor/samples/snippets/generated" deep-preserve-regex: -- "/java-modelarmor/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/modelarmor/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-modelarmor/README.md b/java-modelarmor/README.md index 4cb75a4368be..16b626f7bb63 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 0.29.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.29.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.31.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-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.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-dashboards/.OwlBot-hermetic.yaml b/java-monitoring-dashboards/.OwlBot-hermetic.yaml index 36da9fb3ef32..2324e9bb2d73 100644 --- a/java-monitoring-dashboards/.OwlBot-hermetic.yaml +++ b/java-monitoring-dashboards/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-monitoring-dashboards/samples/snippets/generated" deep-preserve-regex: -- "/java-monitoring-dashboards/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/monitoring/dashboard/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index e4f3e41487c7..3e3f72fa28ca 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.90.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.90.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.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-monitoring-metricsscope/.OwlBot-hermetic.yaml b/java-monitoring-metricsscope/.OwlBot-hermetic.yaml index e4f089b55c70..4b49090291c1 100644 --- a/java-monitoring-metricsscope/.OwlBot-hermetic.yaml +++ b/java-monitoring-metricsscope/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-monitoring-metricsscope/samples/snippets/generated" deep-preserve-regex: -- "/java-monitoring-metricsscope/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/monitoring/metricsscope/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index c3d2364f184c..e95173ebfbd6 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.82.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.82.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.84.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-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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/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-monitoring/.OwlBot-hermetic.yaml b/java-monitoring/.OwlBot-hermetic.yaml index d7b4fa1f3ae4..c840ec761edc 100644 --- a/java-monitoring/.OwlBot-hermetic.yaml +++ b/java-monitoring/.OwlBot-hermetic.yaml @@ -20,8 +20,9 @@ deep-remove-regex: - "/java-monitoring/samples/snippets/generated" deep-preserve-regex: -- "/java-monitoring/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ITVPCServiceControlTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ITVPCServiceControlTest.java" deep-copy-regex: - source: "/google/monitoring/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-monitoring/README.md b/java-monitoring/README.md index c38339ddc31a..49c747087c69 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.89.0 + 3.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.89.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-netapp/.OwlBot-hermetic.yaml index 6edf9dd80757..a6e9ede88ec3 100644 --- a/java-netapp/.OwlBot-hermetic.yaml +++ b/java-netapp/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-netapp/samples/snippets/generated" deep-preserve-regex: -- "/java-netapp/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/netapp/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-netapp/README.md b/java-netapp/README.md index 87e6fb493c64..b9897b7cadf5 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.67.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.67.0' +implementation 'com.google.cloud:google-cloud-netapp:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.69.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-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.69.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-network-management/.OwlBot-hermetic.yaml index 6a1f3a7ef361..0bf790166b3b 100644 --- a/java-network-management/.OwlBot-hermetic.yaml +++ b/java-network-management/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-network-management/google-.*/src" deep-preserve-regex: -- "/java-network-management/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/networkmanagement/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-network-management/README.md b/java-network-management/README.md index 2080f5b20c04..1394d3b30b2f 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.89.0 + 1.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.89.0' +implementation 'com.google.cloud:google-cloud-network-management:1.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java index a4eade5aee3c..2b5526f54ba9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java @@ -572,7 +572,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=886 + * See google/cloud/networkmanagement/v1/trace.proto;l=888 * @return The healthCheckUri. */ @java.lang.Override @@ -601,7 +601,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=886 + * See google/cloud/networkmanagement/v1/trace.proto;l=888 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1377,7 +1377,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=886 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=888 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1405,7 +1405,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=886 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=888 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1433,7 +1433,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=886 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=888 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1460,7 +1460,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=886 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=888 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1483,7 +1483,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=886 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=888 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java index f800dade26b0..3a467c83dcab 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java @@ -68,7 +68,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=886 + * See google/cloud/networkmanagement/v1/trace.proto;l=888 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -86,7 +86,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=886 + * See google/cloud/networkmanagement/v1/trace.proto;l=888 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java index f890e3bef868..460fa633d84d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java @@ -1261,7 +1261,9 @@ public com.google.protobuf.ByteString getUriBytes() { *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -1287,7 +1289,9 @@ public java.lang.String getRegion() { *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -1377,7 +1381,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @return The nextHop. */ @java.lang.Override @@ -1406,7 +1410,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @return The bytes for nextHop. */ @java.lang.Override @@ -2055,7 +2059,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2078,7 +2082,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2109,7 +2113,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3910,7 +3914,9 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -3935,7 +3941,9 @@ public java.lang.String getRegion() { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -3960,7 +3968,9 @@ public com.google.protobuf.ByteString getRegionBytes() { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -3984,7 +3994,9 @@ public Builder setRegion(java.lang.String value) { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -4004,7 +4016,9 @@ public Builder clearRegion() { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -4148,7 +4162,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @return The nextHop. */ @java.lang.Deprecated @@ -4176,7 +4190,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4204,7 +4218,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4231,7 +4245,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4254,7 +4268,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5692,7 +5706,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5714,7 +5728,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5744,7 +5758,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5774,7 +5788,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5803,7 +5817,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5828,7 +5842,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @param value The bytes for advertisedRouteNextHopUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java index 68e0ce176d6a..fc75c0e5370d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java @@ -176,7 +176,9 @@ public interface RouteInfoOrBuilder *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -191,7 +193,9 @@ public interface RouteInfoOrBuilder *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -238,7 +242,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @return The nextHop. */ @java.lang.Deprecated @@ -256,7 +260,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=693 + * google/cloud/networkmanagement/v1/trace.proto;l=695 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -683,7 +687,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -703,7 +707,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -723,7 +727,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=733 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto index eeaba9cb7ced..78794b6348ee 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto @@ -682,7 +682,9 @@ message RouteInfo { // Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED // routes only. If set for POLICY_BASED route, this is a region of VLAN - // attachments for Cloud Interconnect the route applies to. + // attachments for Cloud Interconnect the route applies to. If set to "all" + // for POLICY_BASED route, the route applies to VLAN attachments of Cloud + // Interconnect in all regions. string region = 19; // Destination IP range of the route. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java index 6fbf89f6b8b5..01ff048aeb52 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java @@ -572,7 +572,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @return The healthCheckUri. */ @java.lang.Override @@ -601,7 +601,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1381,7 +1381,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1409,7 +1409,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1437,7 +1437,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1464,7 +1464,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1487,7 +1487,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java index e7bdd9609c28..68b5c3d59b2c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java @@ -69,7 +69,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -87,7 +87,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=890 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=892 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java index 07dade497619..aa026dfd306f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java @@ -1267,7 +1267,9 @@ public com.google.protobuf.ByteString getUriBytes() { *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -1293,7 +1295,9 @@ public java.lang.String getRegion() { *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -1383,7 +1387,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @return The nextHop. */ @java.lang.Override @@ -1412,7 +1416,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @return The bytes for nextHop. */ @java.lang.Override @@ -2061,7 +2065,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2084,7 +2088,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2115,7 +2119,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3920,7 +3924,9 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -3945,7 +3951,9 @@ public java.lang.String getRegion() { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -3970,7 +3978,9 @@ public com.google.protobuf.ByteString getRegionBytes() { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -3994,7 +4004,9 @@ public Builder setRegion(java.lang.String value) { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -4014,7 +4026,9 @@ public Builder clearRegion() { *
                    * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                    * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -     * attachments for Cloud Interconnect the route applies to.
              +     * attachments for Cloud Interconnect the route applies to. If set to "all"
              +     * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +     * Interconnect in all regions.
                    * 
              * * string region = 19; @@ -4158,7 +4172,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @return The nextHop. */ @java.lang.Deprecated @@ -4186,7 +4200,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4214,7 +4228,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4241,7 +4255,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4264,7 +4278,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5702,7 +5716,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5724,7 +5738,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5754,7 +5768,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5784,7 +5798,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5813,7 +5827,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5838,7 +5852,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @param value The bytes for advertisedRouteNextHopUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java index effe1b60db95..69a2e051ea02 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java @@ -176,7 +176,9 @@ public interface RouteInfoOrBuilder *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -191,7 +193,9 @@ public interface RouteInfoOrBuilder *
                  * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
                  * routes only. If set for POLICY_BASED route, this is a region of VLAN
              -   * attachments for Cloud Interconnect the route applies to.
              +   * attachments for Cloud Interconnect the route applies to. If set to "all"
              +   * for POLICY_BASED route, the route applies to VLAN attachments of Cloud
              +   * Interconnect in all regions.
                  * 
              * * string region = 19; @@ -238,7 +242,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @return The nextHop. */ @java.lang.Deprecated @@ -256,7 +260,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=697 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=699 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -683,7 +687,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -703,7 +707,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -723,7 +727,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=737 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=739 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto index bd1feefbda57..8c0d21d8922a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto @@ -686,7 +686,9 @@ message RouteInfo { // Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED // routes only. If set for POLICY_BASED route, this is a region of VLAN - // attachments for Cloud Interconnect the route applies to. + // attachments for Cloud Interconnect the route applies to. If set to "all" + // for POLICY_BASED route, the route applies to VLAN attachments of Cloud + // Interconnect in all regions. string region = 19; // Destination IP range of the route. diff --git a/java-network-security/.OwlBot-hermetic.yaml b/java-network-security/.OwlBot-hermetic.yaml index 397dd1072244..c4f54c956193 100644 --- a/java-network-security/.OwlBot-hermetic.yaml +++ b/java-network-security/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-network-security/google-.*/src" deep-preserve-regex: -- "/java-network-security/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/networksecurity/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-network-security/README.md b/java-network-security/README.md index 79f7ca4d8ad7..fa0851f52d36 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.91.0 + 0.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.91.0' +implementation 'com.google.cloud:google-cloud-network-security:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.93.0" ``` ## Authentication @@ -175,7 +175,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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-networkconnectivity/.OwlBot-hermetic.yaml index 8b235eb60811..caf9c6a0961f 100644 --- a/java-networkconnectivity/.OwlBot-hermetic.yaml +++ b/java-networkconnectivity/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-networkconnectivity/google-.*/src" deep-preserve-regex: -- "/java-networkconnectivity/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/networkconnectivity/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 7a02ac421c60..0ca8a41e4ade 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.87.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.87.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.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-networkservices/.OwlBot-hermetic.yaml b/java-networkservices/.OwlBot-hermetic.yaml index b6224346ef7f..c8fc49ee0d72 100644 --- a/java-networkservices/.OwlBot-hermetic.yaml +++ b/java-networkservices/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-networkservices/samples/snippets/generated" deep-preserve-regex: -- "/java-networkservices/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/networkservices/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 354289f9334e..814da30a9af6 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.44.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.44.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.46.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-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.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/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-notebooks/.OwlBot-hermetic.yaml b/java-notebooks/.OwlBot-hermetic.yaml index 53d18b47fe4b..b27fb18c1f19 100644 --- a/java-notebooks/.OwlBot-hermetic.yaml +++ b/java-notebooks/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-notebooks/google-.*/src" deep-preserve-regex: -- "/java-notebooks/google-.*/src/test/java/com/google/cloud/.*/v.*/it/.*.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/.*.java" deep-copy-regex: - source: "/google/cloud/notebooks/(v.*)/.*-java/gapic-google-.*/src" diff --git a/java-notebooks/README.md b/java-notebooks/README.md index f1df1f6e780d..18c53dc33177 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.86.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.86.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.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-notification/.OwlBot-hermetic.yaml b/java-notification/.OwlBot-hermetic.yaml index 2906c97a8942..0ede688209b9 100644 --- a/java-notification/.OwlBot-hermetic.yaml +++ b/java-notification/.OwlBot-hermetic.yaml @@ -14,3 +14,6 @@ api-name: notification +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + diff --git a/java-optimization/.OwlBot-hermetic.yaml b/java-optimization/.OwlBot-hermetic.yaml index a711794f312a..5a09812f1ae0 100644 --- a/java-optimization/.OwlBot-hermetic.yaml +++ b/java-optimization/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-optimization/google-.*/src" deep-preserve-regex: -- "/java-optimization/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/optimization/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-optimization/README.md b/java-optimization/README.md index 7c08b651aa79..59c9c550c09e 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.86.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.86.0' +implementation 'com.google.cloud:google-cloud-optimization:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.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-oracledatabase/.OwlBot-hermetic.yaml b/java-oracledatabase/.OwlBot-hermetic.yaml index 2f4c13082edf..37dfe543f944 100644 --- a/java-oracledatabase/.OwlBot-hermetic.yaml +++ b/java-oracledatabase/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-oracledatabase/samples/snippets/generated" deep-preserve-regex: -- "/java-oracledatabase/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/oracledatabase/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index 571977f3271f..f4f03662cb76 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.37.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.37.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.39.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-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.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-orchestration-airflow/.OwlBot-hermetic.yaml index 063a3825823a..ddfd96e63ec0 100644 --- a/java-orchestration-airflow/.OwlBot-hermetic.yaml +++ b/java-orchestration-airflow/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-orchestration-airflow/google-.*/src" deep-preserve-regex: -- "/java-orchestration-airflow/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index aa3f15e2cdf9..701e8ca848c2 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.88.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-orgpolicy/.OwlBot-hermetic.yaml index a2bcfb3f9580..437136e05bc4 100644 --- a/java-orgpolicy/.OwlBot-hermetic.yaml +++ b/java-orgpolicy/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-orgpolicy/google-.*/src" deep-preserve-regex: -- "/java-orgpolicy/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/orgpolicy/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 012e8b56429c..90f6a5ef827b 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.88.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-os-config/.OwlBot-hermetic.yaml index 505e516c70bc..efe2c1a78e2a 100644 --- a/java-os-config/.OwlBot-hermetic.yaml +++ b/java-os-config/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-os-config/proto-google-.*/src" - "/java-os-config/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/osconfig/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-os-config/$1/proto-google-cloud-os-config-$1/src" diff --git a/java-os-config/README.md b/java-os-config/README.md index 6b5424599e54..4c73b63e3113 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.90.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.90.0' +implementation 'com.google.cloud:google-cloud-os-config:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.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-os-login/.OwlBot-hermetic.yaml b/java-os-login/.OwlBot-hermetic.yaml index d1743df772cd..aab0a7cbc0b7 100644 --- a/java-os-login/.OwlBot-hermetic.yaml +++ b/java-os-login/.OwlBot-hermetic.yaml @@ -20,13 +20,14 @@ deep-remove-regex: - "/java-os-login/samples/snippets/generated" deep-preserve-regex: -- "/java-os-login/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/FingerprintName.java" -- "/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/ProjectName.java" -- "/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/FingerprintName.java" -- "/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/PosixAccountName.java" -- "/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ProjectName.java" -- "/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/SshPublicKeyName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/FingerprintName.java" +- "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/ProjectName.java" +- "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/FingerprintName.java" +- "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/PosixAccountName.java" +- "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ProjectName.java" +- "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/SshPublicKeyName.java" deep-copy-regex: - source: "/google/cloud/oslogin/(v\\d)/.*-java/proto-google-.*/src" diff --git a/java-os-login/README.md b/java-os-login/README.md index 642d9f65405d..194f08801b06 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.87.0 + 2.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.87.0' +implementation 'com.google.cloud:google-cloud-os-login:2.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.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-parallelstore/.OwlBot-hermetic.yaml b/java-parallelstore/.OwlBot-hermetic.yaml index 5b03a0d61bdf..b3da915e88a5 100644 --- a/java-parallelstore/.OwlBot-hermetic.yaml +++ b/java-parallelstore/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-parallelstore/samples/snippets/generated" deep-preserve-regex: -- "/java-parallelstore/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/parallelstore/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index a3d72249ff74..635877eff409 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.51.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.51.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.53.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-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.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/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-parametermanager/.OwlBot-hermetic.yaml b/java-parametermanager/.OwlBot-hermetic.yaml index 8ae16323164e..00211c303626 100644 --- a/java-parametermanager/.OwlBot-hermetic.yaml +++ b/java-parametermanager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-parametermanager/samples/snippets/generated" deep-preserve-regex: -- "/java-parametermanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/parametermanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-parametermanager/README.md b/java-parametermanager/README.md index 3d47eb712cb4..1ff901558782 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.32.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.32.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.34.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-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.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/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-phishingprotection/.OwlBot-hermetic.yaml b/java-phishingprotection/.OwlBot-hermetic.yaml index 3a6d488687a2..141ac0ffafed 100644 --- a/java-phishingprotection/.OwlBot-hermetic.yaml +++ b/java-phishingprotection/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-phishingprotection/google-.*/src" deep-preserve-regex: -- "/java-phishingprotection/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/phishingprotection/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 8e31d7de92a4..8f37e99a03a7 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.119.0 + 0.121.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.119.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.121.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.119.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.121.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-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.119.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.121.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-policy-troubleshooter/.OwlBot-hermetic.yaml index 59332efef862..f71b01061bdd 100644 --- a/java-policy-troubleshooter/.OwlBot-hermetic.yaml +++ b/java-policy-troubleshooter/.OwlBot-hermetic.yaml @@ -24,7 +24,8 @@ deep-remove-regex: - "/java-policy-troubleshooter/iam/google-.*/src" deep-preserve-regex: -- "/java-policy-troubleshooter/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index f28d96f3b131..6efc2d200bb9 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.87.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.87.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.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-policysimulator/.OwlBot-hermetic.yaml b/java-policysimulator/.OwlBot-hermetic.yaml index f7d95f431009..7e9118fd3106 100644 --- a/java-policysimulator/.OwlBot-hermetic.yaml +++ b/java-policysimulator/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-policysimulator/samples/snippets/generated" deep-preserve-regex: -- "/java-policysimulator/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/policysimulator/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index f0c220a3dd7e..3b398d9fca99 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.67.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.67.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.69.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-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.69.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-private-catalog/.OwlBot-hermetic.yaml index 52b0b4ae1544..9551923182c5 100644 --- a/java-private-catalog/.OwlBot-hermetic.yaml +++ b/java-private-catalog/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-private-catalog/proto-google-.*/src" - "/java-private-catalog/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/privatecatalog/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-private-catalog/$1/proto-google-cloud-private-catalog-$1/src" diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 329bee8b2066..b696b72b40df 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.90.0 + 0.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.90.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.92.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-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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/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-privilegedaccessmanager/.OwlBot-hermetic.yaml b/java-privilegedaccessmanager/.OwlBot-hermetic.yaml index 8f4403e6bbd9..87b05f09c97c 100644 --- a/java-privilegedaccessmanager/.OwlBot-hermetic.yaml +++ b/java-privilegedaccessmanager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-privilegedaccessmanager/samples/snippets/generated" deep-preserve-regex: -- "/java-privilegedaccessmanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index e822780e3662..9fffe73d4d74 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.42.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.42.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.44.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-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.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/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-profiler/.OwlBot-hermetic.yaml b/java-profiler/.OwlBot-hermetic.yaml index 80776a92f7bc..6e89cccb43a8 100644 --- a/java-profiler/.OwlBot-hermetic.yaml +++ b/java-profiler/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-profiler/samples/snippets/generated" deep-preserve-regex: -- "/java-profiler/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/devtools/cloudprofiler/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-profiler/README.md b/java-profiler/README.md index 2be68f47fa5a..1e22ac32328e 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.88.0' +implementation 'com.google.cloud:google-cloud-profiler:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-publicca/.OwlBot-hermetic.yaml index 4ad1c0a1b3c3..812ff0774bef 100644 --- a/java-publicca/.OwlBot-hermetic.yaml +++ b/java-publicca/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-publicca/samples/snippets/generated" deep-preserve-regex: -- "/java-publicca/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/security/publicca/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-publicca/README.md b/java-publicca/README.md index a41785a97d28..7729ba6b3468 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.85.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.85.0' +implementation 'com.google.cloud:google-cloud-publicca:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.87.0" ``` ## Authentication @@ -175,7 +175,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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-rapidmigrationassessment/.OwlBot-hermetic.yaml index 6ebc94376c5c..d18e49ea762b 100644 --- a/java-rapidmigrationassessment/.OwlBot-hermetic.yaml +++ b/java-rapidmigrationassessment/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-rapidmigrationassessment/samples/snippets/generated" deep-preserve-regex: -- "/java-rapidmigrationassessment/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index fcc974b42e9c..d173527445a4 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.71.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.71.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.73.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-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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.73.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-recaptchaenterprise/.OwlBot-hermetic.yaml index 21453b9228af..bb5926bac69a 100644 --- a/java-recaptchaenterprise/.OwlBot-hermetic.yaml +++ b/java-recaptchaenterprise/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-recaptchaenterprise/google-.*/src" deep-preserve-regex: -- "/java-recaptchaenterprise/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 1c0d3e25b183..7f24e4358c4e 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.85.0 + 3.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.85.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.87.0" ``` ## Authentication @@ -175,7 +175,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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-recommendations-ai/.OwlBot-hermetic.yaml index 5543b204a570..4ccc8487eb32 100644 --- a/java-recommendations-ai/.OwlBot-hermetic.yaml +++ b/java-recommendations-ai/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-recommendations-ai/google-.*/src" deep-preserve-regex: -- "/java-recommendations-ai/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/recommendationengine/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index db7eea8e885d..a19c465755ca 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -46,20 +46,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.95.0 + 0.97.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.95.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.97.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-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.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/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-recommender/.OwlBot-hermetic.yaml b/java-recommender/.OwlBot-hermetic.yaml index 45a48b96a293..db000cc53ca4 100644 --- a/java-recommender/.OwlBot-hermetic.yaml +++ b/java-recommender/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-recommender/google-.*/src" deep-preserve-regex: -- "/java-recommender/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/recommender/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-recommender/README.md b/java-recommender/README.md index da5490342bda..f32b19665eaf 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.90.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.90.0' +implementation 'com.google.cloud:google-cloud-recommender:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.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-redis-cluster/.OwlBot-hermetic.yaml b/java-redis-cluster/.OwlBot-hermetic.yaml index 5c7b69d775ca..87d1431b9b08 100644 --- a/java-redis-cluster/.OwlBot-hermetic.yaml +++ b/java-redis-cluster/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-redis-cluster/samples/snippets/generated" deep-preserve-regex: -- "/java-redis-cluster/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/redis/cluster/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index ce263eb40d12..a0c38fb3fef1 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.60.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.60.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.62.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-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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-redis/.OwlBot-hermetic.yaml index 5c1ce263986d..72c59c860a4e 100644 --- a/java-redis/.OwlBot-hermetic.yaml +++ b/java-redis/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-redis/google-.*/src" deep-preserve-regex: -- "/java-redis/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/redis/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-redis/README.md b/java-redis/README.md index 682a0ea30499..a400b314802f 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.91.0 + 2.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.91.0' +implementation 'com.google.cloud:google-cloud-redis:2.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.93.0" ``` ## Authentication @@ -175,7 +175,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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-resourcemanager/.OwlBot-hermetic.yaml index 163455c2603c..7ea3b55c29f1 100644 --- a/java-resourcemanager/.OwlBot-hermetic.yaml +++ b/java-resourcemanager/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-resourcemanager/proto-google-.*/src" - "/java-resourcemanager/google-.*/src/main/java/com/google/cloud/resourcemanager/v3/" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/resourcemanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-resourcemanager/$1/proto-google-cloud-resourcemanager-$1/src" diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 90c33256ea5d..b0d69f35db4b 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.90.0 + 1.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.90.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.92.0" ``` ## Authentication @@ -316,7 +316,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.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-retail/.OwlBot-hermetic.yaml b/java-retail/.OwlBot-hermetic.yaml index b4c0d914e966..8d86aea4aea3 100644 --- a/java-retail/.OwlBot-hermetic.yaml +++ b/java-retail/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-retail/google-.*/src" deep-preserve-regex: -- "/java-retail/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/retail/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-retail/README.md b/java-retail/README.md index 1fece3c228ff..266d8303cb3b 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.90.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.90.0' +implementation 'com.google.cloud:google-cloud-retail:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.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-run/.OwlBot-hermetic.yaml b/java-run/.OwlBot-hermetic.yaml index 55e292b0e443..c87b38d3872e 100644 --- a/java-run/.OwlBot-hermetic.yaml +++ b/java-run/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-run/google-.*/src" deep-preserve-regex: -- "/java-run/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/run/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-run/README.md b/java-run/README.md index e4a1787e9c49..bac87cea008c 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.88.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.88.0' +implementation 'com.google.cloud:google-cloud-run:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.90.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-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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-saasservicemgmt/.OwlBot-hermetic.yaml index 4d9c39b3550c..c8a8bce6df2f 100644 --- a/java-saasservicemgmt/.OwlBot-hermetic.yaml +++ b/java-saasservicemgmt/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-saasservicemgmt/samples/snippets/generated" deep-preserve-regex: -- "/java-saasservicemgmt/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index db4d3e6204f8..f57be0815f5b 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 0.18.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.18.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.20.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-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.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/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-scheduler/.OwlBot-hermetic.yaml b/java-scheduler/.OwlBot-hermetic.yaml index 7eecb8d50138..d918ac117207 100644 --- a/java-scheduler/.OwlBot-hermetic.yaml +++ b/java-scheduler/.OwlBot-hermetic.yaml @@ -20,9 +20,10 @@ deep-remove-regex: - "/java-scheduler/google-.*/src" deep-preserve-regex: -- "/java-scheduler/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java" -- "/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java" +- "/.*proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java" deep-copy-regex: - source: "/google/cloud/scheduler/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-scheduler/README.md b/java-scheduler/README.md index 8d5feda70e96..b67e5045e1e2 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.88.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-secretmanager/.OwlBot-hermetic.yaml index ff10158479a3..8b7f3693af79 100644 --- a/java-secretmanager/.OwlBot-hermetic.yaml +++ b/java-secretmanager/.OwlBot-hermetic.yaml @@ -20,8 +20,9 @@ deep-remove-regex: - "/java-secretmanager/google-.*/src" deep-preserve-regex: -- "/java-secretmanager/google-.*/src/test/java/com/google/cloud/.*/v1/it/IT.*Test.java" -- "/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v1/it/IT.*Test.java" +- "/.*proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicName.java" deep-copy-regex: diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 6ec222ce8edd..fa9fa1bea7b5 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.88.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-securesourcemanager/.OwlBot-hermetic.yaml index eef3dd9ebf2b..d428f4797afd 100644 --- a/java-securesourcemanager/.OwlBot-hermetic.yaml +++ b/java-securesourcemanager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-securesourcemanager/samples/snippets/generated" deep-preserve-regex: -- "/java-securesourcemanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/securesourcemanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 6212f2e2a9e1..ef7ecf3b13ec 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.58.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.58.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.60.0" ``` ## Authentication @@ -176,7 +176,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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-security-private-ca/.OwlBot-hermetic.yaml index ab86c46ae4b0..ebe9982eff85 100644 --- a/java-security-private-ca/.OwlBot-hermetic.yaml +++ b/java-security-private-ca/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-security-private-ca/proto-google-.*/src" - "/java-security-private-ca/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/security/privateca/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-security-private-ca/$1/proto-google-cloud-security-private-ca-$1/src" diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index 4d21e11e6d01..84f3ac2eb11c 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.90.0 + 2.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.90.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.92.0" ``` ## Authentication @@ -175,7 +175,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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.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-securitycenter-settings/.OwlBot-hermetic.yaml b/java-securitycenter-settings/.OwlBot-hermetic.yaml index c277b69faed5..b7a7fea9c7b1 100644 --- a/java-securitycenter-settings/.OwlBot-hermetic.yaml +++ b/java-securitycenter-settings/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-securitycenter-settings/samples/snippets/generated" deep-preserve-regex: -- "/java-securitycenter-settings/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index 2050e2325ed9..fe085548a40f 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.91.0 + 0.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.91.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.93.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-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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-securitycenter/.OwlBot-hermetic.yaml index 1f0dae8f99a5..887a17fde535 100644 --- a/java-securitycenter/.OwlBot-hermetic.yaml +++ b/java-securitycenter/.OwlBot-hermetic.yaml @@ -20,12 +20,13 @@ deep-remove-regex: - "/java-securitycenter/google-.*/src" deep-preserve-regex: -- "/java-securitycenter/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java" -- "/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksNames.java" -- "/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksName.java" -- "/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingSecurityMarksName.java" -- "/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetSecurityMarksName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java" +- "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksNames.java" +- "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksName.java" +- "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingSecurityMarksName.java" +- "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetSecurityMarksName.java" deep-copy-regex: - source: "/google/cloud/securitycenter/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index eec6de6a21f2..2c2747653c2b 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.96.0 + 2.98.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.96.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.98.0" ``` ## Authentication @@ -175,7 +175,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.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.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-securitycentermanagement/.OwlBot-hermetic.yaml b/java-securitycentermanagement/.OwlBot-hermetic.yaml index 1a2e4b597259..111d059bd078 100644 --- a/java-securitycentermanagement/.OwlBot-hermetic.yaml +++ b/java-securitycentermanagement/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-securitycentermanagement/samples/snippets/generated" deep-preserve-regex: -- "/java-securitycentermanagement/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index c30137a76feb..01f9f3609be8 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.56.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.56.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.58.0" ``` ## Authentication @@ -175,7 +175,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.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/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-securityposture/.OwlBot-hermetic.yaml b/java-securityposture/.OwlBot-hermetic.yaml index cfd403b5c0a9..157dd1ca34bf 100644 --- a/java-securityposture/.OwlBot-hermetic.yaml +++ b/java-securityposture/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-securityposture/samples/snippets/generated" deep-preserve-regex: -- "/java-securityposture/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/securityposture/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 86183577b22f..b9ead3c4b47b 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.53.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.53.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.55.0" ``` ## Authentication @@ -175,7 +175,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.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/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-service-control/.OwlBot-hermetic.yaml b/java-service-control/.OwlBot-hermetic.yaml index b7a7bb2e45f9..b1ab44a4737e 100644 --- a/java-service-control/.OwlBot-hermetic.yaml +++ b/java-service-control/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-service-control/samples/snippets/generated" deep-preserve-regex: -- "/java-service-control/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/api/servicecontrol/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-service-control/README.md b/java-service-control/README.md index d94a8233f6c2..cdcac6c7584a 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.88.0' +implementation 'com.google.cloud:google-cloud-service-control:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-service-management/.OwlBot-hermetic.yaml index b16eb3ac3c5b..c436920dc409 100644 --- a/java-service-management/.OwlBot-hermetic.yaml +++ b/java-service-management/.OwlBot-hermetic.yaml @@ -20,8 +20,9 @@ deep-remove-regex: - "/java-service-management/samples/snippets/generated" deep-preserve-regex: -- "/java-service-management/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-service-management/google-cloud-service-management/src/test/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClientHttpJsonTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-service-management/src/test/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClientHttpJsonTest.java" deep-copy-regex: - source: "/google/api/servicemanagement/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-service-management/README.md b/java-service-management/README.md index 39e4d9bab9e4..9ef047f3857a 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.86.0 + 3.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.86.0' +implementation 'com.google.cloud:google-cloud-service-management:3.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.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-service-usage/.OwlBot-hermetic.yaml b/java-service-usage/.OwlBot-hermetic.yaml index 454ac292383a..67c408dc52ab 100644 --- a/java-service-usage/.OwlBot-hermetic.yaml +++ b/java-service-usage/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-service-usage/google-.*/src" - "/java-service-usage/samples/snippets/generated" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/api/serviceusage/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-service-usage/$1/proto-google-cloud-service-usage-$1/src" diff --git a/java-service-usage/README.md b/java-service-usage/README.md index d6bf6ead3efe..eed403715960 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.88.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-servicedirectory/.OwlBot-hermetic.yaml index c22cd6e7da5b..868555902c36 100644 --- a/java-servicedirectory/.OwlBot-hermetic.yaml +++ b/java-servicedirectory/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-servicedirectory/proto-google-.*/src" - "/java-servicedirectory/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/servicedirectory/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-servicedirectory/$1/proto-google-cloud-servicedirectory-$1/src" diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 5d84968e3588..d89dbb1d0a4f 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.89.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-servicehealth/.OwlBot-hermetic.yaml index 6e6b51e795da..b6a92928c1f7 100644 --- a/java-servicehealth/.OwlBot-hermetic.yaml +++ b/java-servicehealth/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-servicehealth/samples/snippets/generated" deep-preserve-regex: -- "/java-servicehealth/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/servicehealth/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 0b2b71d1431f..1fee3c903280 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.55.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.55.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.57.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-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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/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-shell/.OwlBot-hermetic.yaml b/java-shell/.OwlBot-hermetic.yaml index 4ca8614c1cd7..eb45f01c0d80 100644 --- a/java-shell/.OwlBot-hermetic.yaml +++ b/java-shell/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-shell/proto-google-.*/src" - "/java-shell/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/shell/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shell/$1/proto-google-cloud-shell-$1/src" diff --git a/java-shell/README.md b/java-shell/README.md index 2bc2083a34ec..d407459fde61 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.87.0 + 2.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.87.0' +implementation 'com.google.cloud:google-cloud-shell:2.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.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-shopping-css/.OwlBot-hermetic.yaml b/java-shopping-css/.OwlBot-hermetic.yaml index ee0891140016..85dc9638c585 100644 --- a/java-shopping-css/.OwlBot-hermetic.yaml +++ b/java-shopping-css/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-css/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-css/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/css/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index 712b5508fe7e..853914afeb0e 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-css - 0.56.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.56.0' +implementation 'com.google.shopping:google-shopping-css:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.56.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.58.0" ``` ## Authentication @@ -158,7 +158,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.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/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-shopping-merchant-accounts/.OwlBot-hermetic.yaml b/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml index 88b213eca6bd..9625b0161907 100644 --- a/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-accounts/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-accounts/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/accounts/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 32f44f2f97ca..c7e413999ffe 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-accounts - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.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-shopping-merchant-conversions/.OwlBot-hermetic.yaml b/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml index d39eaa52b245..f3dd37243f40 100644 --- a/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-conversions/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-conversions/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/conversions/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 575a06eeb02a..90c1e7752f28 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-conversions - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.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-shopping-merchant-datasources/.OwlBot-hermetic.yaml b/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml index 9b5f5dc5f187..bd1291e3f8c9 100644 --- a/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-datasources/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-datasources/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/datasources/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 27fbd1b5855b..293bcc95c115 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-datasources - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.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-shopping-merchant-inventories/.OwlBot-hermetic.yaml b/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml index 50236b200274..aa2ed61270d0 100644 --- a/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-inventories/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-inventories/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/inventories/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 8c973a091038..bcdae582d18d 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-inventories - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.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-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java index 21c300dfe584..0aa25d439eef 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java @@ -260,6 +260,28 @@ public LocalInventoryServiceStub getStub() { * * @param parent Required. The `name` of the parent product to list local inventories for. Format: * `accounts/{account}/products/{product}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result in the + * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of + * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the `{product}` segment must be + * the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full + * resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLocalInventoriesPagedResponse listLocalInventories(ProductName parent) { @@ -298,6 +320,28 @@ public final ListLocalInventoriesPagedResponse listLocalInventories(ProductName * * @param parent Required. The `name` of the parent product to list local inventories for. Format: * `accounts/{account}/products/{product}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result in the + * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of + * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the `{product}` segment must be + * the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full + * resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLocalInventoriesPagedResponse listLocalInventories(String parent) { @@ -527,6 +571,29 @@ public final LocalInventory insertLocalInventory(InsertLocalInventoryRequest req * * @param name Required. The name of the local inventory for the given product to delete. Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result in the + * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of + * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for `store_code` "store123", the + * `{product}` segment must be the unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteLocalInventory(LocalInventoryName name) { @@ -561,6 +628,29 @@ public final void deleteLocalInventory(LocalInventoryName name) { * * @param name Required. The name of the local inventory for the given product to delete. Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result in the + * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of + * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for `store_code` "store123", the + * `{product}` segment must be the unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteLocalInventory(String name) { diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java index 46edc7e6d2b2..f8e29838c14b 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java @@ -263,6 +263,28 @@ public RegionalInventoryServiceStub getStub() { * * @param parent Required. The `name` of the parent product to list `RegionalInventory` resources * for. Format: `accounts/{account}/products/{product}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an **unpadded + * base64url** encoded string (RFC 4648 Section 5). The decoded string must result in + * the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any + * part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or + * `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product}` segment + * must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The + * full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRegionalInventoriesPagedResponse listRegionalInventories(ProductName parent) { @@ -301,6 +323,28 @@ public final ListRegionalInventoriesPagedResponse listRegionalInventories(Produc * * @param parent Required. The `name` of the parent product to list `RegionalInventory` resources * for. Format: `accounts/{account}/products/{product}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an **unpadded + * base64url** encoded string (RFC 4648 Section 5). The decoded string must result in + * the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any + * part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or + * `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product}` segment + * must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The + * full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRegionalInventoriesPagedResponse listRegionalInventories(String parent) { @@ -530,6 +574,29 @@ public final RegionalInventory insertRegionalInventory(InsertRegionalInventoryRe * * @param name Required. The name of the `RegionalInventory` resource to delete. Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an **unpadded + * base64url** encoded string (RFC 4648 Section 5). The decoded string must result in + * the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any + * part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or + * `~`. * Example: To represent the product ID `en~US~sku/123` for `region` "region123", + * the `{product}` segment must be the unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteRegionalInventory(RegionalInventoryName name) { @@ -564,6 +631,29 @@ public final void deleteRegionalInventory(RegionalInventoryName name) { * * @param name Required. The name of the `RegionalInventory` resource to delete. Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + *

              The `{product}` segment is a unique identifier for the product. This identifier must be + * unique within a merchant account and generally follows the structure: + * `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, + * the structure is: `local~content_language~feed_label~offer_id`. Example: + * `local~en~US~sku123` + *

              The format of the `{product}` segment in the URL is automatically detected by the + * server, supporting two options: + *

              1. **Encoded Format**: The `{product}` segment is an **unpadded + * base64url** encoded string (RFC 4648 Section 5). The decoded string must result in + * the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any + * part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or + * `~`. * Example: To represent the product ID `en~US~sku/123` for `region` "region123", + * the `{product}` segment must be the unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + *

              2. **Plain Format**: The `{product}` segment is the tilde-separated + * string `content_language~feed_label~offer_id`. This format is suitable only when + * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters + * like `/`, `%`, or `~`. + *

              We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The presence of tilde + * (`~`) characters in the `{product}` segment is used to differentiate between the two + * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteRegionalInventory(String name) { diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1/reflect-config.json b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1/reflect-config.json index 8e705a20245c..32386a01fc7b 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1/reflect-config.json +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1/reflect-config.json @@ -1394,6 +1394,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.inventories.v1.ListLocalInventoriesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientHttpJsonTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientHttpJsonTest.java index 5a49c1071f6d..892394bcc3c7 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientHttpJsonTest.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientHttpJsonTest.java @@ -181,6 +181,7 @@ public void insertLocalInventoryTest() throws Exception { LocalInventory expectedResponse = LocalInventory.newBuilder() .setName(LocalInventoryName.of("[ACCOUNT]", "[PRODUCT]", "[STORE_CODE]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setAccount(-1177318867) .setStoreCode("storeCode1691468398") .setLocalInventoryAttributes(LocalInventoryAttributes.newBuilder().build()) diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientTest.java index 294d496be16b..659879a5bc68 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientTest.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClientTest.java @@ -175,6 +175,7 @@ public void insertLocalInventoryTest() throws Exception { LocalInventory expectedResponse = LocalInventory.newBuilder() .setName(LocalInventoryName.of("[ACCOUNT]", "[PRODUCT]", "[STORE_CODE]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setAccount(-1177318867) .setStoreCode("storeCode1691468398") .setLocalInventoryAttributes(LocalInventoryAttributes.newBuilder().build()) diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientHttpJsonTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientHttpJsonTest.java index 8c9c8b9c9dd1..738954ff93e4 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientHttpJsonTest.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientHttpJsonTest.java @@ -181,6 +181,7 @@ public void insertRegionalInventoryTest() throws Exception { RegionalInventory expectedResponse = RegionalInventory.newBuilder() .setName(RegionalInventoryName.of("[ACCOUNT]", "[PRODUCT]", "[REGION]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setAccount(-1177318867) .setRegion("region-934795532") .setRegionalInventoryAttributes(RegionalInventoryAttributes.newBuilder().build()) diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientTest.java index 951cbce630ee..05480132d528 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientTest.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClientTest.java @@ -175,6 +175,7 @@ public void insertRegionalInventoryTest() throws Exception { RegionalInventory expectedResponse = RegionalInventory.newBuilder() .setName(RegionalInventoryName.of("[ACCOUNT]", "[PRODUCT]", "[REGION]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setAccount(-1177318867) .setRegion("region-934795532") .setRegionalInventoryAttributes(RegionalInventoryAttributes.newBuilder().build()) diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequest.java index dfd9328f15e9..536989faeb5c 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequest.java @@ -82,6 +82,37 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -110,6 +141,37 @@ public java.lang.String getName() { * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -462,6 +524,37 @@ public Builder mergeFrom( * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -489,6 +582,37 @@ public java.lang.String getName() { * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -516,6 +640,37 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -542,6 +697,37 @@ public Builder setName(java.lang.String value) { * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -564,6 +750,37 @@ public Builder clearName() { * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequestOrBuilder.java index de44800c72a5..831caf33dc5e 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteLocalInventoryRequestOrBuilder.java @@ -33,6 +33,37 @@ public interface DeleteLocalInventoryRequestOrBuilder * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -50,6 +81,37 @@ public interface DeleteLocalInventoryRequestOrBuilder * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequest.java index 8251315fac54..1b495d57b530 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequest.java @@ -83,6 +83,38 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -111,6 +143,38 @@ public java.lang.String getName() { * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -470,6 +534,38 @@ public Builder mergeFrom( * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -497,6 +593,38 @@ public java.lang.String getName() { * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -524,6 +652,38 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -550,6 +710,38 @@ public Builder setName(java.lang.String value) { * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -572,6 +764,38 @@ public Builder clearName() { * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequestOrBuilder.java index 3e81c275db25..dda1650411ec 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/DeleteRegionalInventoryRequestOrBuilder.java @@ -33,6 +33,38 @@ public interface DeleteRegionalInventoryRequestOrBuilder * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -50,6 +82,38 @@ public interface DeleteRegionalInventoryRequestOrBuilder * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an + * **unpadded base64url** encoded string (RFC 4648 Section 5). The + * decoded string + * must result in the `content_language~feed_label~offer_id` structure. + * This encoding MUST be used if any part of the product identifier (like + * `offer_id`) contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `region` "region123", the `{product}` segment must be the + * unpadded base64url encoding of this string, which is + * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + * inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequest.java index 239ac625343e..e4256ef32092 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequest.java @@ -82,6 +82,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *

                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +   * encoded string (RFC 4648 Section 5). The decoded string must result
              +   * in the `content_language~feed_label~offer_id` structure. This encoding
              +   * MUST be used if any part of the product identifier (like `offer_id`)
              +   * contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -109,6 +139,36 @@ public java.lang.String getParent() { *
                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +   * encoded string (RFC 4648 Section 5). The decoded string must result
              +   * in the `content_language~feed_label~offer_id` structure. This encoding
              +   * MUST be used if any part of the product identifier (like `offer_id`)
              +   * contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -571,6 +631,36 @@ public Builder mergeFrom( *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +     * encoded string (RFC 4648 Section 5). The decoded string must result
              +     * in the `content_language~feed_label~offer_id` structure. This encoding
              +     * MUST be used if any part of the product identifier (like `offer_id`)
              +     * contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -597,6 +687,36 @@ public java.lang.String getParent() { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +     * encoded string (RFC 4648 Section 5). The decoded string must result
              +     * in the `content_language~feed_label~offer_id` structure. This encoding
              +     * MUST be used if any part of the product identifier (like `offer_id`)
              +     * contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -623,6 +743,36 @@ public com.google.protobuf.ByteString getParentBytes() { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +     * encoded string (RFC 4648 Section 5). The decoded string must result
              +     * in the `content_language~feed_label~offer_id` structure. This encoding
              +     * MUST be used if any part of the product identifier (like `offer_id`)
              +     * contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -648,6 +798,36 @@ public Builder setParent(java.lang.String value) { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +     * encoded string (RFC 4648 Section 5). The decoded string must result
              +     * in the `content_language~feed_label~offer_id` structure. This encoding
              +     * MUST be used if any part of the product identifier (like `offer_id`)
              +     * contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -669,6 +849,36 @@ public Builder clearParent() { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +     * encoded string (RFC 4648 Section 5). The decoded string must result
              +     * in the `content_language~feed_label~offer_id` structure. This encoding
              +     * MUST be used if any part of the product identifier (like `offer_id`)
              +     * contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequestOrBuilder.java index b2ebce3c0ccd..c42940a09d64 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertLocalInventoryRequestOrBuilder.java @@ -32,6 +32,36 @@ public interface InsertLocalInventoryRequestOrBuilder *
                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +   * encoded string (RFC 4648 Section 5). The decoded string must result
              +   * in the `content_language~feed_label~offer_id` structure. This encoding
              +   * MUST be used if any part of the product identifier (like `offer_id`)
              +   * contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -48,6 +78,36 @@ public interface InsertLocalInventoryRequestOrBuilder *
                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an unpadded base64url
              +   * encoded string (RFC 4648 Section 5). The decoded string must result
              +   * in the `content_language~feed_label~offer_id` structure. This encoding
              +   * MUST be used if any part of the product identifier (like `offer_id`)
              +   * contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequest.java index b8ee541e5ce0..6d49d8f58c66 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequest.java @@ -83,6 +83,37 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -110,6 +141,37 @@ public java.lang.String getParent() { *
                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -581,6 +643,37 @@ public Builder mergeFrom( *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -607,6 +700,37 @@ public java.lang.String getParent() { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -633,6 +757,37 @@ public com.google.protobuf.ByteString getParentBytes() { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -658,6 +813,37 @@ public Builder setParent(java.lang.String value) { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -679,6 +865,37 @@ public Builder clearParent() { *
                    * Required. The account and product where this inventory will be inserted.
                    * Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequestOrBuilder.java index f8f0545d8ce1..76b697e475f0 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InsertRegionalInventoryRequestOrBuilder.java @@ -32,6 +32,37 @@ public interface InsertRegionalInventoryRequestOrBuilder *
                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -48,6 +79,37 @@ public interface InsertRegionalInventoryRequestOrBuilder *
                  * Required. The account and product where this inventory will be inserted.
                  * Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoriesCommonProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoriesCommonProto.java index 7b2d23f16ffe..206599860bd3 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoriesCommonProto.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoriesCommonProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_merchant_inventories_v1_LocalInventoryAttributes_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_shopping_merchant_inventories_v1_LocalInventoryAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_inventories_v1_RegionalInventoryAttributes_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -57,57 +61,90 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n@google/shopping/merchant/inventories/v" - + "1/inventories_common.proto\022\'google.shopp" - + "ing.merchant.inventories.v1\032\037google/api/" - + "field_behavior.proto\032 google/shopping/ty" - + "pe/types.proto\032\032google/type/interval.pro" - + "to\"\322\010\n\030LocalInventoryAttributes\022/\n\005price" - + "\030\001 \001(\0132\033.google.shopping.type.PriceB\003\340A\001" - + "\0224\n\nsale_price\030\002 \001(\0132\033.google.shopping.t" - + "ype.PriceB\003\340A\001\022=\n\031sale_price_effective_d" - + "ate\030\003 \001(\0132\025.google.type.IntervalB\003\340A\001\022i\n" + "\n" + + "@google/shopping/merchant/inventories/v1/inventories_common.proto\022\'google.shopp" + + "ing.merchant.inventories.v1\032\037google/api/field_behavior.proto\032" + + " google/shopping/type/types.proto\032\032google/type/interval.proto\"\263\t\n" + + "\030LocalInventoryAttributes\022/\n" + + "\005price\030\001 \001(\0132\033.google.shopping.type.PriceB\003\340A\001\0224\n\n" + + "sale_price\030\002 \001(\0132\033.google.shopping.type.PriceB\003\340A\001\022=\n" + + "\031sale_price_effective_date\030\003" + + " \001(\0132\025.google.type.IntervalB\003\340A\001\022i\n" + "\014availability\030\004 \001(\0162N.google.shopping.me" - + "rchant.inventories.v1.LocalInventoryAttr" - + "ibutes.AvailabilityH\000\210\001\001\022\032\n\010quantity\030\005 \001" - + "(\003B\003\340A\001H\001\210\001\001\022o\n\rpickup_method\030\006 \001(\0162N.go" - + "ogle.shopping.merchant.inventories.v1.Lo" - + "calInventoryAttributes.PickupMethodB\003\340A\001" - + "H\002\210\001\001\022i\n\npickup_sla\030\007 \001(\0162K.google.shopp" - + "ing.merchant.inventories.v1.LocalInvento" - + "ryAttributes.PickupSlaB\003\340A\001H\003\210\001\001\022*\n\030inst" - + "ore_product_location\030\010 \001(\tB\003\340A\001H\004\210\001\001\"\217\001\n" - + "\014Availability\022,\n(LOCAL_INVENTORY_AVAILAB" - + "ILITY_UNSPECIFIED\020\000\022\014\n\010IN_STOCK\020\001\022\030\n\024LIM" - + "ITED_AVAILABILITY\020\002\022\027\n\023ON_DISPLAY_TO_ORD" - + "ER\020\003\022\020\n\014OUT_OF_STOCK\020\004\"i\n\014PickupMethod\022\035" - + "\n\031PICKUP_METHOD_UNSPECIFIED\020\000\022\007\n\003BUY\020\001\022\013" - + "\n\007RESERVE\020\002\022\021\n\rSHIP_TO_STORE\020\003\022\021\n\rNOT_SU" - + "PPORTED\020\004\"\247\001\n\tPickupSla\022\032\n\026PICKUP_SLA_UN" - + "SPECIFIED\020\000\022\014\n\010SAME_DAY\020\001\022\014\n\010NEXT_DAY\020\002\022" - + "\013\n\007TWO_DAY\020\003\022\r\n\tTHREE_DAY\020\004\022\014\n\010FOUR_DAY\020" - + "\005\022\014\n\010FIVE_DAY\020\006\022\013\n\007SIX_DAY\020\007\022\r\n\tSEVEN_DA" - + "Y\020\010\022\016\n\nMULTI_WEEK\020\tB\017\n\r_availabilityB\013\n\t" - + "_quantityB\020\n\016_pickup_methodB\r\n\013_pickup_s" - + "laB\033\n\031_instore_product_location\"\250\003\n\033Regi" - + "onalInventoryAttributes\022/\n\005price\030\001 \001(\0132\033" - + ".google.shopping.type.PriceB\003\340A\001\0224\n\nsale" - + "_price\030\002 \001(\0132\033.google.shopping.type.Pric" - + "eB\003\340A\001\022=\n\031sale_price_effective_date\030\003 \001(" - + "\0132\025.google.type.IntervalB\003\340A\001\022q\n\014availab" - + "ility\030\004 \001(\0162Q.google.shopping.merchant.i" - + "nventories.v1.RegionalInventoryAttribute" - + "s.AvailabilityB\003\340A\001H\000\210\001\001\"_\n\014Availability" - + "\022/\n+REGIONAL_INVENTORY_AVAILABILITY_UNSP" - + "ECIFIED\020\000\022\014\n\010IN_STOCK\020\001\022\020\n\014OUT_OF_STOCK\020" - + "\002B\017\n\r_availabilityB\236\002\n+com.google.shoppi" - + "ng.merchant.inventories.v1B\026InventoriesC" - + "ommonProtoP\001ZScloud.google.com/go/shoppi" - + "ng/merchant/inventories/apiv1/inventorie" - + "spb;inventoriespb\252\002\'Google.Shopping.Merc" - + "hant.Inventories.V1\312\002\'Google\\Shopping\\Me" - + "rchant\\Inventories\\V1\352\002+Google::Shopping" - + "::Merchant::Inventories::V1b\006proto3" + + "rchant.inventories.v1.LocalInventoryAttributes.AvailabilityH\000\210\001\001\022\032\n" + + "\010quantity\030\005 \001(\003B\003\340A\001H\001\210\001\001\022o\n\r" + + "pickup_method\030\006 \001(\0162N.google.shopping.merchant.inventories.v1.Lo" + + "calInventoryAttributes.PickupMethodB\003\340A\001H\002\210\001\001\022i\n\n" + + "pickup_sla\030\007 \001(\0162K.google.shopp" + + "ing.merchant.inventories.v1.LocalInventoryAttributes.PickupSlaB\003\340A\001H\003\210\001\001\022*\n" + + "\030instore_product_location\030\010 \001(\tB\003\340A\001H\004\210\001\001\022_\n" + + "\020loyalty_programs\030\n" + + " \003(\0132@.google.shopping" + + ".merchant.inventories.v1.InventoryLoyaltyProgramB\003\340A\001\"\217\001\n" + + "\014Availability\022,\n" + + "(LOCAL_INVENTORY_AVAILABILITY_UNSPECIFIED\020\000\022\014\n" + + "\010IN_STOCK\020\001\022\030\n" + + "\024LIMITED_AVAILABILITY\020\002\022\027\n" + + "\023ON_DISPLAY_TO_ORDER\020\003\022\020\n" + + "\014OUT_OF_STOCK\020\004\"i\n" + + "\014PickupMethod\022\035\n" + + "\031PICKUP_METHOD_UNSPECIFIED\020\000\022\007\n" + + "\003BUY\020\001\022\013\n" + + "\007RESERVE\020\002\022\021\n\r" + + "SHIP_TO_STORE\020\003\022\021\n\r" + + "NOT_SUPPORTED\020\004\"\247\001\n" + + "\tPickupSla\022\032\n" + + "\026PICKUP_SLA_UNSPECIFIED\020\000\022\014\n" + + "\010SAME_DAY\020\001\022\014\n" + + "\010NEXT_DAY\020\002\022\013\n" + + "\007TWO_DAY\020\003\022\r\n" + + "\tTHREE_DAY\020\004\022\014\n" + + "\010FOUR_DAY\020\005\022\014\n" + + "\010FIVE_DAY\020\006\022\013\n" + + "\007SIX_DAY\020\007\022\r\n" + + "\tSEVEN_DAY\020\010\022\016\n\n" + + "MULTI_WEEK\020\tB\017\n\r" + + "_availabilityB\013\n" + + "\t_quantityB\020\n" + + "\016_pickup_methodB\r\n" + + "\013_pickup_slaB\033\n" + + "\031_instore_product_location\"\322\003\n" + + "\027InventoryLoyaltyProgram\022\032\n\r" + + "program_label\030\001 \001(\tH\000\210\001\001\022\027\n\n" + + "tier_label\030\002 \001(\tH\001\210\001\001\022/\n" + + "\005price\030\003 \001(\0132\033.google.shopping.type.PriceH\002\210\001\001\022A\n" + + "\027cashback_for_future_use\030\004" + + " \001(\0132\033.google.shopping.type.PriceH\003\210\001\001\022\033\n" + + "\016loyalty_points\030\005 \001(\003H\004\210\001\001\022C\n" + + "\037member_price_effective_interval\030\006" + + " \001(\0132\025.google.type.IntervalH\005\210\001\001\022\033\n" + + "\016shipping_label\030\007 \001(\tH\006\210\001\001B\020\n" + + "\016_program_labelB\r\n" + + "\013_tier_labelB\010\n" + + "\006_priceB\032\n" + + "\030_cashback_for_future_useB\021\n" + + "\017_loyalty_pointsB\"\n" + + " _member_price_effective_intervalB\021\n" + + "\017_shipping_label\"\211\004\n" + + "\033RegionalInventoryAttributes\022/\n" + + "\005price\030\001 \001(\0132\033.google.shopping.type.PriceB\003\340A\001\0224\n\n" + + "sale_price\030\002 \001(\0132\033.google.shopping.type.PriceB\003\340A\001\022=\n" + + "\031sale_price_effective_date\030\003" + + " \001(\0132\025.google.type.IntervalB\003\340A\001\022q\n" + + "\014availability\030\004 \001(\0162Q.google.shopping.merc" + + "hant.inventories.v1.RegionalInventoryAttributes.AvailabilityB\003\340A\001H\000\210\001\001\022_\n" + + "\020loyalty_programs\030\005 \003(\0132@.google.shopping.merch" + + "ant.inventories.v1.InventoryLoyaltyProgramB\003\340A\001\"_\n" + + "\014Availability\022/\n" + + "+REGIONAL_INVENTORY_AVAILABILITY_UNSPECIFIED\020\000\022\014\n" + + "\010IN_STOCK\020\001\022\020\n" + + "\014OUT_OF_STOCK\020\002B\017\n\r" + + "_availabilityB\236\002\n" + + "+com.google.shopping.merchant.inventories.v1B\026InventoriesCommonProtoP\001ZSclo" + + "ud.google.com/go/shopping/merchant/inventories/apiv1/inventoriespb;inventoriespb" + + "\252\002\'Google.Shopping.Merchant.Inventories." + + "V1\312\002\'Google\\Shopping\\Merchant\\Inventorie" + + "s\\V1\352\002+Google::Shopping::Merchant::Inventories::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -131,14 +168,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PickupMethod", "PickupSla", "InstoreProductLocation", + "LoyaltyPrograms", }); - internal_static_google_shopping_merchant_inventories_v1_RegionalInventoryAttributes_descriptor = + internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_descriptor = getDescriptor().getMessageType(1); + internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_descriptor, + new java.lang.String[] { + "ProgramLabel", + "TierLabel", + "Price", + "CashbackForFutureUse", + "LoyaltyPoints", + "MemberPriceEffectiveInterval", + "ShippingLabel", + }); + internal_static_google_shopping_merchant_inventories_v1_RegionalInventoryAttributes_descriptor = + getDescriptor().getMessageType(2); internal_static_google_shopping_merchant_inventories_v1_RegionalInventoryAttributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_inventories_v1_RegionalInventoryAttributes_descriptor, new java.lang.String[] { - "Price", "SalePrice", "SalePriceEffectiveDate", "Availability", + "Price", "SalePrice", "SalePriceEffectiveDate", "Availability", "LoyaltyPrograms", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoryLoyaltyProgram.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoryLoyaltyProgram.java new file mode 100644 index 000000000000..5026559e1a0f --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoryLoyaltyProgram.java @@ -0,0 +1,2209 @@ +/* + * 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/shopping/merchant/inventories/v1/inventories_common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.shopping.merchant.inventories.v1; + +/** + * + * + *
              + * A message that represents loyalty program.
              + * 
              + * + * Protobuf type {@code google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram} + */ +@com.google.protobuf.Generated +public final class InventoryLoyaltyProgram extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) + InventoryLoyaltyProgramOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InventoryLoyaltyProgram"); + } + + // Use InventoryLoyaltyProgram.newBuilder() to construct. + private InventoryLoyaltyProgram(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InventoryLoyaltyProgram() { + programLabel_ = ""; + tierLabel_ = ""; + shippingLabel_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1.InventoriesCommonProto + .internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.inventories.v1.InventoriesCommonProto + .internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.class, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder.class); + } + + private int bitField0_; + public static final int PROGRAM_LABEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object programLabel_ = ""; + + /** + * + * + *
              +   * The label of the loyalty program. This is an internal label that uniquely
              +   * identifies the relationship between a business entity and a loyalty
              +   * program entity. The label must be provided if there are multiple loyalty
              +   * programs available for the merchant, so that the system can associate
              +   * the assets below (for example, price and points) with the correct business.
              +   * The corresponding program must be linked to the Merchant Center account.
              +   * 
              + * + * optional string program_label = 1; + * + * @return Whether the programLabel field is set. + */ + @java.lang.Override + public boolean hasProgramLabel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * The label of the loyalty program. This is an internal label that uniquely
              +   * identifies the relationship between a business entity and a loyalty
              +   * program entity. The label must be provided if there are multiple loyalty
              +   * programs available for the merchant, so that the system can associate
              +   * the assets below (for example, price and points) with the correct business.
              +   * The corresponding program must be linked to the Merchant Center account.
              +   * 
              + * + * optional string program_label = 1; + * + * @return The programLabel. + */ + @java.lang.Override + public java.lang.String getProgramLabel() { + java.lang.Object ref = programLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + programLabel_ = s; + return s; + } + } + + /** + * + * + *
              +   * The label of the loyalty program. This is an internal label that uniquely
              +   * identifies the relationship between a business entity and a loyalty
              +   * program entity. The label must be provided if there are multiple loyalty
              +   * programs available for the merchant, so that the system can associate
              +   * the assets below (for example, price and points) with the correct business.
              +   * The corresponding program must be linked to the Merchant Center account.
              +   * 
              + * + * optional string program_label = 1; + * + * @return The bytes for programLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProgramLabelBytes() { + java.lang.Object ref = programLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + programLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIER_LABEL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tierLabel_ = ""; + + /** + * + * + *
              +   * The label of the tier within the loyalty program.
              +   * Must match one of the labels within the program.
              +   * 
              + * + * optional string tier_label = 2; + * + * @return Whether the tierLabel field is set. + */ + @java.lang.Override + public boolean hasTierLabel() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * The label of the tier within the loyalty program.
              +   * Must match one of the labels within the program.
              +   * 
              + * + * optional string tier_label = 2; + * + * @return The tierLabel. + */ + @java.lang.Override + public java.lang.String getTierLabel() { + java.lang.Object ref = tierLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tierLabel_ = s; + return s; + } + } + + /** + * + * + *
              +   * The label of the tier within the loyalty program.
              +   * Must match one of the labels within the program.
              +   * 
              + * + * optional string tier_label = 2; + * + * @return The bytes for tierLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTierLabelBytes() { + java.lang.Object ref = tierLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tierLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRICE_FIELD_NUMBER = 3; + private com.google.shopping.type.Price price_; + + /** + * + * + *
              +   * The price for members of the given tier, that is, the instant discount
              +   * price. Must be smaller or equal to the regular price.
              +   * 
              + * + * optional .google.shopping.type.Price price = 3; + * + * @return Whether the price field is set. + */ + @java.lang.Override + public boolean hasPrice() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * The price for members of the given tier, that is, the instant discount
              +   * price. Must be smaller or equal to the regular price.
              +   * 
              + * + * optional .google.shopping.type.Price price = 3; + * + * @return The price. + */ + @java.lang.Override + public com.google.shopping.type.Price getPrice() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + /** + * + * + *
              +   * The price for members of the given tier, that is, the instant discount
              +   * price. Must be smaller or equal to the regular price.
              +   * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + public static final int CASHBACK_FOR_FUTURE_USE_FIELD_NUMBER = 4; + private com.google.shopping.type.Price cashbackForFutureUse_; + + /** + * + * + *
              +   * The cashback that can be used for future purchases.
              +   * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + * + * @return Whether the cashbackForFutureUse field is set. + */ + @java.lang.Override + public boolean hasCashbackForFutureUse() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +   * The cashback that can be used for future purchases.
              +   * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + * + * @return The cashbackForFutureUse. + */ + @java.lang.Override + public com.google.shopping.type.Price getCashbackForFutureUse() { + return cashbackForFutureUse_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : cashbackForFutureUse_; + } + + /** + * + * + *
              +   * The cashback that can be used for future purchases.
              +   * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getCashbackForFutureUseOrBuilder() { + return cashbackForFutureUse_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : cashbackForFutureUse_; + } + + public static final int LOYALTY_POINTS_FIELD_NUMBER = 5; + private long loyaltyPoints_ = 0L; + + /** + * + * + *
              +   * The amount of loyalty points earned on a purchase.
              +   * 
              + * + * optional int64 loyalty_points = 5; + * + * @return Whether the loyaltyPoints field is set. + */ + @java.lang.Override + public boolean hasLoyaltyPoints() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +   * The amount of loyalty points earned on a purchase.
              +   * 
              + * + * optional int64 loyalty_points = 5; + * + * @return The loyaltyPoints. + */ + @java.lang.Override + public long getLoyaltyPoints() { + return loyaltyPoints_; + } + + public static final int MEMBER_PRICE_EFFECTIVE_INTERVAL_FIELD_NUMBER = 6; + private com.google.type.Interval memberPriceEffectiveInterval_; + + /** + * + * + *
              +   * A date range during which the item is eligible for member price. If not
              +   * specified, the member price is always applicable. The date range is
              +   * represented by a pair of ISO 8601 dates separated by a space,
              +   * comma, or slash.
              +   * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + * + * @return Whether the memberPriceEffectiveInterval field is set. + */ + @java.lang.Override + public boolean hasMemberPriceEffectiveInterval() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
              +   * A date range during which the item is eligible for member price. If not
              +   * specified, the member price is always applicable. The date range is
              +   * represented by a pair of ISO 8601 dates separated by a space,
              +   * comma, or slash.
              +   * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + * + * @return The memberPriceEffectiveInterval. + */ + @java.lang.Override + public com.google.type.Interval getMemberPriceEffectiveInterval() { + return memberPriceEffectiveInterval_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveInterval_; + } + + /** + * + * + *
              +   * A date range during which the item is eligible for member price. If not
              +   * specified, the member price is always applicable. The date range is
              +   * represented by a pair of ISO 8601 dates separated by a space,
              +   * comma, or slash.
              +   * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getMemberPriceEffectiveIntervalOrBuilder() { + return memberPriceEffectiveInterval_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveInterval_; + } + + public static final int SHIPPING_LABEL_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object shippingLabel_ = ""; + + /** + * + * + *
              +   * The label of the shipping benefit. If the field has value, this offer has
              +   * loyalty shipping benefit. If the field value isn't provided, the item is
              +   * not eligible for loyalty shipping for the given loyalty tier.
              +   * 
              + * + * optional string shipping_label = 7; + * + * @return Whether the shippingLabel field is set. + */ + @java.lang.Override + public boolean hasShippingLabel() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
              +   * The label of the shipping benefit. If the field has value, this offer has
              +   * loyalty shipping benefit. If the field value isn't provided, the item is
              +   * not eligible for loyalty shipping for the given loyalty tier.
              +   * 
              + * + * optional string shipping_label = 7; + * + * @return The shippingLabel. + */ + @java.lang.Override + public java.lang.String getShippingLabel() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shippingLabel_ = s; + return s; + } + } + + /** + * + * + *
              +   * The label of the shipping benefit. If the field has value, this offer has
              +   * loyalty shipping benefit. If the field value isn't provided, the item is
              +   * not eligible for loyalty shipping for the given loyalty tier.
              +   * 
              + * + * optional string shipping_label = 7; + * + * @return The bytes for shippingLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShippingLabelBytes() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shippingLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, programLabel_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tierLabel_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPrice()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getCashbackForFutureUse()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, loyaltyPoints_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getMemberPriceEffectiveInterval()); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, shippingLabel_); + } + 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.GeneratedMessage.computeStringSize(1, programLabel_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tierLabel_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrice()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCashbackForFutureUse()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, loyaltyPoints_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getMemberPriceEffectiveInterval()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, shippingLabel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram)) { + return super.equals(obj); + } + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram other = + (com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) obj; + + if (hasProgramLabel() != other.hasProgramLabel()) return false; + if (hasProgramLabel()) { + if (!getProgramLabel().equals(other.getProgramLabel())) return false; + } + if (hasTierLabel() != other.hasTierLabel()) return false; + if (hasTierLabel()) { + if (!getTierLabel().equals(other.getTierLabel())) return false; + } + if (hasPrice() != other.hasPrice()) return false; + if (hasPrice()) { + if (!getPrice().equals(other.getPrice())) return false; + } + if (hasCashbackForFutureUse() != other.hasCashbackForFutureUse()) return false; + if (hasCashbackForFutureUse()) { + if (!getCashbackForFutureUse().equals(other.getCashbackForFutureUse())) return false; + } + if (hasLoyaltyPoints() != other.hasLoyaltyPoints()) return false; + if (hasLoyaltyPoints()) { + if (getLoyaltyPoints() != other.getLoyaltyPoints()) return false; + } + if (hasMemberPriceEffectiveInterval() != other.hasMemberPriceEffectiveInterval()) return false; + if (hasMemberPriceEffectiveInterval()) { + if (!getMemberPriceEffectiveInterval().equals(other.getMemberPriceEffectiveInterval())) + return false; + } + if (hasShippingLabel() != other.hasShippingLabel()) return false; + if (hasShippingLabel()) { + if (!getShippingLabel().equals(other.getShippingLabel())) return false; + } + if (!getUnknownFields().equals(other.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 (hasProgramLabel()) { + hash = (37 * hash) + PROGRAM_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getProgramLabel().hashCode(); + } + if (hasTierLabel()) { + hash = (37 * hash) + TIER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getTierLabel().hashCode(); + } + if (hasPrice()) { + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + } + if (hasCashbackForFutureUse()) { + hash = (37 * hash) + CASHBACK_FOR_FUTURE_USE_FIELD_NUMBER; + hash = (53 * hash) + getCashbackForFutureUse().hashCode(); + } + if (hasLoyaltyPoints()) { + hash = (37 * hash) + LOYALTY_POINTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLoyaltyPoints()); + } + if (hasMemberPriceEffectiveInterval()) { + hash = (37 * hash) + MEMBER_PRICE_EFFECTIVE_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getMemberPriceEffectiveInterval().hashCode(); + } + if (hasShippingLabel()) { + hash = (37 * hash) + SHIPPING_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getShippingLabel().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram 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.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + 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.shopping.merchant.inventories.v1.InventoryLoyaltyProgram parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram 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.shopping.merchant.inventories.v1.InventoryLoyaltyProgram prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 that represents loyalty program.
              +   * 
              + * + * Protobuf type {@code google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1.InventoriesCommonProto + .internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.inventories.v1.InventoriesCommonProto + .internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.class, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPriceFieldBuilder(); + internalGetCashbackForFutureUseFieldBuilder(); + internalGetMemberPriceEffectiveIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + programLabel_ = ""; + tierLabel_ = ""; + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + cashbackForFutureUse_ = null; + if (cashbackForFutureUseBuilder_ != null) { + cashbackForFutureUseBuilder_.dispose(); + cashbackForFutureUseBuilder_ = null; + } + loyaltyPoints_ = 0L; + memberPriceEffectiveInterval_ = null; + if (memberPriceEffectiveIntervalBuilder_ != null) { + memberPriceEffectiveIntervalBuilder_.dispose(); + memberPriceEffectiveIntervalBuilder_ = null; + } + shippingLabel_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1.InventoriesCommonProto + .internal_static_google_shopping_merchant_inventories_v1_InventoryLoyaltyProgram_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram build() { + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram buildPartial() { + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram result = + new com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.programLabel_ = programLabel_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tierLabel_ = tierLabel_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cashbackForFutureUse_ = + cashbackForFutureUseBuilder_ == null + ? cashbackForFutureUse_ + : cashbackForFutureUseBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.loyaltyPoints_ = loyaltyPoints_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.memberPriceEffectiveInterval_ = + memberPriceEffectiveIntervalBuilder_ == null + ? memberPriceEffectiveInterval_ + : memberPriceEffectiveIntervalBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.shippingLabel_ = shippingLabel_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram other) { + if (other + == com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .getDefaultInstance()) return this; + if (other.hasProgramLabel()) { + programLabel_ = other.programLabel_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTierLabel()) { + tierLabel_ = other.tierLabel_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPrice()) { + mergePrice(other.getPrice()); + } + if (other.hasCashbackForFutureUse()) { + mergeCashbackForFutureUse(other.getCashbackForFutureUse()); + } + if (other.hasLoyaltyPoints()) { + setLoyaltyPoints(other.getLoyaltyPoints()); + } + if (other.hasMemberPriceEffectiveInterval()) { + mergeMemberPriceEffectiveInterval(other.getMemberPriceEffectiveInterval()); + } + if (other.hasShippingLabel()) { + shippingLabel_ = other.shippingLabel_; + bitField0_ |= 0x00000040; + 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: + { + programLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tierLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCashbackForFutureUseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + loyaltyPoints_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetMemberPriceEffectiveIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + shippingLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object programLabel_ = ""; + + /** + * + * + *
              +     * The label of the loyalty program. This is an internal label that uniquely
              +     * identifies the relationship between a business entity and a loyalty
              +     * program entity. The label must be provided if there are multiple loyalty
              +     * programs available for the merchant, so that the system can associate
              +     * the assets below (for example, price and points) with the correct business.
              +     * The corresponding program must be linked to the Merchant Center account.
              +     * 
              + * + * optional string program_label = 1; + * + * @return Whether the programLabel field is set. + */ + public boolean hasProgramLabel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * The label of the loyalty program. This is an internal label that uniquely
              +     * identifies the relationship between a business entity and a loyalty
              +     * program entity. The label must be provided if there are multiple loyalty
              +     * programs available for the merchant, so that the system can associate
              +     * the assets below (for example, price and points) with the correct business.
              +     * The corresponding program must be linked to the Merchant Center account.
              +     * 
              + * + * optional string program_label = 1; + * + * @return The programLabel. + */ + public java.lang.String getProgramLabel() { + java.lang.Object ref = programLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + programLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * The label of the loyalty program. This is an internal label that uniquely
              +     * identifies the relationship between a business entity and a loyalty
              +     * program entity. The label must be provided if there are multiple loyalty
              +     * programs available for the merchant, so that the system can associate
              +     * the assets below (for example, price and points) with the correct business.
              +     * The corresponding program must be linked to the Merchant Center account.
              +     * 
              + * + * optional string program_label = 1; + * + * @return The bytes for programLabel. + */ + public com.google.protobuf.ByteString getProgramLabelBytes() { + java.lang.Object ref = programLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + programLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * The label of the loyalty program. This is an internal label that uniquely
              +     * identifies the relationship between a business entity and a loyalty
              +     * program entity. The label must be provided if there are multiple loyalty
              +     * programs available for the merchant, so that the system can associate
              +     * the assets below (for example, price and points) with the correct business.
              +     * The corresponding program must be linked to the Merchant Center account.
              +     * 
              + * + * optional string program_label = 1; + * + * @param value The programLabel to set. + * @return This builder for chaining. + */ + public Builder setProgramLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + programLabel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The label of the loyalty program. This is an internal label that uniquely
              +     * identifies the relationship between a business entity and a loyalty
              +     * program entity. The label must be provided if there are multiple loyalty
              +     * programs available for the merchant, so that the system can associate
              +     * the assets below (for example, price and points) with the correct business.
              +     * The corresponding program must be linked to the Merchant Center account.
              +     * 
              + * + * optional string program_label = 1; + * + * @return This builder for chaining. + */ + public Builder clearProgramLabel() { + programLabel_ = getDefaultInstance().getProgramLabel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The label of the loyalty program. This is an internal label that uniquely
              +     * identifies the relationship between a business entity and a loyalty
              +     * program entity. The label must be provided if there are multiple loyalty
              +     * programs available for the merchant, so that the system can associate
              +     * the assets below (for example, price and points) with the correct business.
              +     * The corresponding program must be linked to the Merchant Center account.
              +     * 
              + * + * optional string program_label = 1; + * + * @param value The bytes for programLabel to set. + * @return This builder for chaining. + */ + public Builder setProgramLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + programLabel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tierLabel_ = ""; + + /** + * + * + *
              +     * The label of the tier within the loyalty program.
              +     * Must match one of the labels within the program.
              +     * 
              + * + * optional string tier_label = 2; + * + * @return Whether the tierLabel field is set. + */ + public boolean hasTierLabel() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * The label of the tier within the loyalty program.
              +     * Must match one of the labels within the program.
              +     * 
              + * + * optional string tier_label = 2; + * + * @return The tierLabel. + */ + public java.lang.String getTierLabel() { + java.lang.Object ref = tierLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tierLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * The label of the tier within the loyalty program.
              +     * Must match one of the labels within the program.
              +     * 
              + * + * optional string tier_label = 2; + * + * @return The bytes for tierLabel. + */ + public com.google.protobuf.ByteString getTierLabelBytes() { + java.lang.Object ref = tierLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tierLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * The label of the tier within the loyalty program.
              +     * Must match one of the labels within the program.
              +     * 
              + * + * optional string tier_label = 2; + * + * @param value The tierLabel to set. + * @return This builder for chaining. + */ + public Builder setTierLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tierLabel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The label of the tier within the loyalty program.
              +     * Must match one of the labels within the program.
              +     * 
              + * + * optional string tier_label = 2; + * + * @return This builder for chaining. + */ + public Builder clearTierLabel() { + tierLabel_ = getDefaultInstance().getTierLabel(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The label of the tier within the loyalty program.
              +     * Must match one of the labels within the program.
              +     * 
              + * + * optional string tier_label = 2; + * + * @param value The bytes for tierLabel to set. + * @return This builder for chaining. + */ + public Builder setTierLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tierLabel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.shopping.type.Price price_; + private com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + priceBuilder_; + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + * + * @return Whether the price field is set. + */ + public boolean hasPrice() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + * + * @return The price. + */ + public com.google.shopping.type.Price getPrice() { + if (priceBuilder_ == null) { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } else { + return priceBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + public Builder setPrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + price_ = value; + } else { + priceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (priceBuilder_ == null) { + price_ = builderForValue.build(); + } else { + priceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + public Builder mergePrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && price_ != null + && price_ != com.google.shopping.type.Price.getDefaultInstance()) { + getPriceBuilder().mergeFrom(value); + } else { + price_ = value; + } + } else { + priceBuilder_.mergeFrom(value); + } + if (price_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + public Builder clearPrice() { + bitField0_ = (bitField0_ & ~0x00000004); + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + public com.google.shopping.type.Price.Builder getPriceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + if (priceBuilder_ != null) { + return priceBuilder_.getMessageOrBuilder(); + } else { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + } + + /** + * + * + *
              +     * The price for members of the given tier, that is, the instant discount
              +     * price. Must be smaller or equal to the regular price.
              +     * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + internalGetPriceFieldBuilder() { + if (priceBuilder_ == null) { + priceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getPrice(), getParentForChildren(), isClean()); + price_ = null; + } + return priceBuilder_; + } + + private com.google.shopping.type.Price cashbackForFutureUse_; + private com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + cashbackForFutureUseBuilder_; + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + * + * @return Whether the cashbackForFutureUse field is set. + */ + public boolean hasCashbackForFutureUse() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + * + * @return The cashbackForFutureUse. + */ + public com.google.shopping.type.Price getCashbackForFutureUse() { + if (cashbackForFutureUseBuilder_ == null) { + return cashbackForFutureUse_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : cashbackForFutureUse_; + } else { + return cashbackForFutureUseBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + public Builder setCashbackForFutureUse(com.google.shopping.type.Price value) { + if (cashbackForFutureUseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cashbackForFutureUse_ = value; + } else { + cashbackForFutureUseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + public Builder setCashbackForFutureUse(com.google.shopping.type.Price.Builder builderForValue) { + if (cashbackForFutureUseBuilder_ == null) { + cashbackForFutureUse_ = builderForValue.build(); + } else { + cashbackForFutureUseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + public Builder mergeCashbackForFutureUse(com.google.shopping.type.Price value) { + if (cashbackForFutureUseBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && cashbackForFutureUse_ != null + && cashbackForFutureUse_ != com.google.shopping.type.Price.getDefaultInstance()) { + getCashbackForFutureUseBuilder().mergeFrom(value); + } else { + cashbackForFutureUse_ = value; + } + } else { + cashbackForFutureUseBuilder_.mergeFrom(value); + } + if (cashbackForFutureUse_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + public Builder clearCashbackForFutureUse() { + bitField0_ = (bitField0_ & ~0x00000008); + cashbackForFutureUse_ = null; + if (cashbackForFutureUseBuilder_ != null) { + cashbackForFutureUseBuilder_.dispose(); + cashbackForFutureUseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + public com.google.shopping.type.Price.Builder getCashbackForFutureUseBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCashbackForFutureUseFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + public com.google.shopping.type.PriceOrBuilder getCashbackForFutureUseOrBuilder() { + if (cashbackForFutureUseBuilder_ != null) { + return cashbackForFutureUseBuilder_.getMessageOrBuilder(); + } else { + return cashbackForFutureUse_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : cashbackForFutureUse_; + } + } + + /** + * + * + *
              +     * The cashback that can be used for future purchases.
              +     * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + internalGetCashbackForFutureUseFieldBuilder() { + if (cashbackForFutureUseBuilder_ == null) { + cashbackForFutureUseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getCashbackForFutureUse(), getParentForChildren(), isClean()); + cashbackForFutureUse_ = null; + } + return cashbackForFutureUseBuilder_; + } + + private long loyaltyPoints_; + + /** + * + * + *
              +     * The amount of loyalty points earned on a purchase.
              +     * 
              + * + * optional int64 loyalty_points = 5; + * + * @return Whether the loyaltyPoints field is set. + */ + @java.lang.Override + public boolean hasLoyaltyPoints() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +     * The amount of loyalty points earned on a purchase.
              +     * 
              + * + * optional int64 loyalty_points = 5; + * + * @return The loyaltyPoints. + */ + @java.lang.Override + public long getLoyaltyPoints() { + return loyaltyPoints_; + } + + /** + * + * + *
              +     * The amount of loyalty points earned on a purchase.
              +     * 
              + * + * optional int64 loyalty_points = 5; + * + * @param value The loyaltyPoints to set. + * @return This builder for chaining. + */ + public Builder setLoyaltyPoints(long value) { + + loyaltyPoints_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The amount of loyalty points earned on a purchase.
              +     * 
              + * + * optional int64 loyalty_points = 5; + * + * @return This builder for chaining. + */ + public Builder clearLoyaltyPoints() { + bitField0_ = (bitField0_ & ~0x00000010); + loyaltyPoints_ = 0L; + onChanged(); + return this; + } + + private com.google.type.Interval memberPriceEffectiveInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + memberPriceEffectiveIntervalBuilder_; + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + * + * @return Whether the memberPriceEffectiveInterval field is set. + */ + public boolean hasMemberPriceEffectiveInterval() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + * + * @return The memberPriceEffectiveInterval. + */ + public com.google.type.Interval getMemberPriceEffectiveInterval() { + if (memberPriceEffectiveIntervalBuilder_ == null) { + return memberPriceEffectiveInterval_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveInterval_; + } else { + return memberPriceEffectiveIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + public Builder setMemberPriceEffectiveInterval(com.google.type.Interval value) { + if (memberPriceEffectiveIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + memberPriceEffectiveInterval_ = value; + } else { + memberPriceEffectiveIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + public Builder setMemberPriceEffectiveInterval( + com.google.type.Interval.Builder builderForValue) { + if (memberPriceEffectiveIntervalBuilder_ == null) { + memberPriceEffectiveInterval_ = builderForValue.build(); + } else { + memberPriceEffectiveIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + public Builder mergeMemberPriceEffectiveInterval(com.google.type.Interval value) { + if (memberPriceEffectiveIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && memberPriceEffectiveInterval_ != null + && memberPriceEffectiveInterval_ != com.google.type.Interval.getDefaultInstance()) { + getMemberPriceEffectiveIntervalBuilder().mergeFrom(value); + } else { + memberPriceEffectiveInterval_ = value; + } + } else { + memberPriceEffectiveIntervalBuilder_.mergeFrom(value); + } + if (memberPriceEffectiveInterval_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + public Builder clearMemberPriceEffectiveInterval() { + bitField0_ = (bitField0_ & ~0x00000020); + memberPriceEffectiveInterval_ = null; + if (memberPriceEffectiveIntervalBuilder_ != null) { + memberPriceEffectiveIntervalBuilder_.dispose(); + memberPriceEffectiveIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + public com.google.type.Interval.Builder getMemberPriceEffectiveIntervalBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetMemberPriceEffectiveIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + public com.google.type.IntervalOrBuilder getMemberPriceEffectiveIntervalOrBuilder() { + if (memberPriceEffectiveIntervalBuilder_ != null) { + return memberPriceEffectiveIntervalBuilder_.getMessageOrBuilder(); + } else { + return memberPriceEffectiveInterval_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveInterval_; + } + } + + /** + * + * + *
              +     * A date range during which the item is eligible for member price. If not
              +     * specified, the member price is always applicable. The date range is
              +     * represented by a pair of ISO 8601 dates separated by a space,
              +     * comma, or slash.
              +     * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + internalGetMemberPriceEffectiveIntervalFieldBuilder() { + if (memberPriceEffectiveIntervalBuilder_ == null) { + memberPriceEffectiveIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getMemberPriceEffectiveInterval(), getParentForChildren(), isClean()); + memberPriceEffectiveInterval_ = null; + } + return memberPriceEffectiveIntervalBuilder_; + } + + private java.lang.Object shippingLabel_ = ""; + + /** + * + * + *
              +     * The label of the shipping benefit. If the field has value, this offer has
              +     * loyalty shipping benefit. If the field value isn't provided, the item is
              +     * not eligible for loyalty shipping for the given loyalty tier.
              +     * 
              + * + * optional string shipping_label = 7; + * + * @return Whether the shippingLabel field is set. + */ + public boolean hasShippingLabel() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
              +     * The label of the shipping benefit. If the field has value, this offer has
              +     * loyalty shipping benefit. If the field value isn't provided, the item is
              +     * not eligible for loyalty shipping for the given loyalty tier.
              +     * 
              + * + * optional string shipping_label = 7; + * + * @return The shippingLabel. + */ + public java.lang.String getShippingLabel() { + java.lang.Object ref = shippingLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shippingLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * The label of the shipping benefit. If the field has value, this offer has
              +     * loyalty shipping benefit. If the field value isn't provided, the item is
              +     * not eligible for loyalty shipping for the given loyalty tier.
              +     * 
              + * + * optional string shipping_label = 7; + * + * @return The bytes for shippingLabel. + */ + public com.google.protobuf.ByteString getShippingLabelBytes() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shippingLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * The label of the shipping benefit. If the field has value, this offer has
              +     * loyalty shipping benefit. If the field value isn't provided, the item is
              +     * not eligible for loyalty shipping for the given loyalty tier.
              +     * 
              + * + * optional string shipping_label = 7; + * + * @param value The shippingLabel to set. + * @return This builder for chaining. + */ + public Builder setShippingLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shippingLabel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The label of the shipping benefit. If the field has value, this offer has
              +     * loyalty shipping benefit. If the field value isn't provided, the item is
              +     * not eligible for loyalty shipping for the given loyalty tier.
              +     * 
              + * + * optional string shipping_label = 7; + * + * @return This builder for chaining. + */ + public Builder clearShippingLabel() { + shippingLabel_ = getDefaultInstance().getShippingLabel(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The label of the shipping benefit. If the field has value, this offer has
              +     * loyalty shipping benefit. If the field value isn't provided, the item is
              +     * not eligible for loyalty shipping for the given loyalty tier.
              +     * 
              + * + * optional string shipping_label = 7; + * + * @param value The bytes for shippingLabel to set. + * @return This builder for chaining. + */ + public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shippingLabel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) + private static final com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram(); + } + + public static com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InventoryLoyaltyProgram parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoryLoyaltyProgramOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoryLoyaltyProgramOrBuilder.java new file mode 100644 index 000000000000..fb7e3b2c22e1 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/InventoryLoyaltyProgramOrBuilder.java @@ -0,0 +1,318 @@ +/* + * 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/shopping/merchant/inventories/v1/inventories_common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.shopping.merchant.inventories.v1; + +@com.google.protobuf.Generated +public interface InventoryLoyaltyProgramOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The label of the loyalty program. This is an internal label that uniquely
              +   * identifies the relationship between a business entity and a loyalty
              +   * program entity. The label must be provided if there are multiple loyalty
              +   * programs available for the merchant, so that the system can associate
              +   * the assets below (for example, price and points) with the correct business.
              +   * The corresponding program must be linked to the Merchant Center account.
              +   * 
              + * + * optional string program_label = 1; + * + * @return Whether the programLabel field is set. + */ + boolean hasProgramLabel(); + + /** + * + * + *
              +   * The label of the loyalty program. This is an internal label that uniquely
              +   * identifies the relationship between a business entity and a loyalty
              +   * program entity. The label must be provided if there are multiple loyalty
              +   * programs available for the merchant, so that the system can associate
              +   * the assets below (for example, price and points) with the correct business.
              +   * The corresponding program must be linked to the Merchant Center account.
              +   * 
              + * + * optional string program_label = 1; + * + * @return The programLabel. + */ + java.lang.String getProgramLabel(); + + /** + * + * + *
              +   * The label of the loyalty program. This is an internal label that uniquely
              +   * identifies the relationship between a business entity and a loyalty
              +   * program entity. The label must be provided if there are multiple loyalty
              +   * programs available for the merchant, so that the system can associate
              +   * the assets below (for example, price and points) with the correct business.
              +   * The corresponding program must be linked to the Merchant Center account.
              +   * 
              + * + * optional string program_label = 1; + * + * @return The bytes for programLabel. + */ + com.google.protobuf.ByteString getProgramLabelBytes(); + + /** + * + * + *
              +   * The label of the tier within the loyalty program.
              +   * Must match one of the labels within the program.
              +   * 
              + * + * optional string tier_label = 2; + * + * @return Whether the tierLabel field is set. + */ + boolean hasTierLabel(); + + /** + * + * + *
              +   * The label of the tier within the loyalty program.
              +   * Must match one of the labels within the program.
              +   * 
              + * + * optional string tier_label = 2; + * + * @return The tierLabel. + */ + java.lang.String getTierLabel(); + + /** + * + * + *
              +   * The label of the tier within the loyalty program.
              +   * Must match one of the labels within the program.
              +   * 
              + * + * optional string tier_label = 2; + * + * @return The bytes for tierLabel. + */ + com.google.protobuf.ByteString getTierLabelBytes(); + + /** + * + * + *
              +   * The price for members of the given tier, that is, the instant discount
              +   * price. Must be smaller or equal to the regular price.
              +   * 
              + * + * optional .google.shopping.type.Price price = 3; + * + * @return Whether the price field is set. + */ + boolean hasPrice(); + + /** + * + * + *
              +   * The price for members of the given tier, that is, the instant discount
              +   * price. Must be smaller or equal to the regular price.
              +   * 
              + * + * optional .google.shopping.type.Price price = 3; + * + * @return The price. + */ + com.google.shopping.type.Price getPrice(); + + /** + * + * + *
              +   * The price for members of the given tier, that is, the instant discount
              +   * price. Must be smaller or equal to the regular price.
              +   * 
              + * + * optional .google.shopping.type.Price price = 3; + */ + com.google.shopping.type.PriceOrBuilder getPriceOrBuilder(); + + /** + * + * + *
              +   * The cashback that can be used for future purchases.
              +   * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + * + * @return Whether the cashbackForFutureUse field is set. + */ + boolean hasCashbackForFutureUse(); + + /** + * + * + *
              +   * The cashback that can be used for future purchases.
              +   * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + * + * @return The cashbackForFutureUse. + */ + com.google.shopping.type.Price getCashbackForFutureUse(); + + /** + * + * + *
              +   * The cashback that can be used for future purchases.
              +   * 
              + * + * optional .google.shopping.type.Price cashback_for_future_use = 4; + */ + com.google.shopping.type.PriceOrBuilder getCashbackForFutureUseOrBuilder(); + + /** + * + * + *
              +   * The amount of loyalty points earned on a purchase.
              +   * 
              + * + * optional int64 loyalty_points = 5; + * + * @return Whether the loyaltyPoints field is set. + */ + boolean hasLoyaltyPoints(); + + /** + * + * + *
              +   * The amount of loyalty points earned on a purchase.
              +   * 
              + * + * optional int64 loyalty_points = 5; + * + * @return The loyaltyPoints. + */ + long getLoyaltyPoints(); + + /** + * + * + *
              +   * A date range during which the item is eligible for member price. If not
              +   * specified, the member price is always applicable. The date range is
              +   * represented by a pair of ISO 8601 dates separated by a space,
              +   * comma, or slash.
              +   * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + * + * @return Whether the memberPriceEffectiveInterval field is set. + */ + boolean hasMemberPriceEffectiveInterval(); + + /** + * + * + *
              +   * A date range during which the item is eligible for member price. If not
              +   * specified, the member price is always applicable. The date range is
              +   * represented by a pair of ISO 8601 dates separated by a space,
              +   * comma, or slash.
              +   * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + * + * @return The memberPriceEffectiveInterval. + */ + com.google.type.Interval getMemberPriceEffectiveInterval(); + + /** + * + * + *
              +   * A date range during which the item is eligible for member price. If not
              +   * specified, the member price is always applicable. The date range is
              +   * represented by a pair of ISO 8601 dates separated by a space,
              +   * comma, or slash.
              +   * 
              + * + * optional .google.type.Interval member_price_effective_interval = 6; + */ + com.google.type.IntervalOrBuilder getMemberPriceEffectiveIntervalOrBuilder(); + + /** + * + * + *
              +   * The label of the shipping benefit. If the field has value, this offer has
              +   * loyalty shipping benefit. If the field value isn't provided, the item is
              +   * not eligible for loyalty shipping for the given loyalty tier.
              +   * 
              + * + * optional string shipping_label = 7; + * + * @return Whether the shippingLabel field is set. + */ + boolean hasShippingLabel(); + + /** + * + * + *
              +   * The label of the shipping benefit. If the field has value, this offer has
              +   * loyalty shipping benefit. If the field value isn't provided, the item is
              +   * not eligible for loyalty shipping for the given loyalty tier.
              +   * 
              + * + * optional string shipping_label = 7; + * + * @return The shippingLabel. + */ + java.lang.String getShippingLabel(); + + /** + * + * + *
              +   * The label of the shipping benefit. If the field has value, this offer has
              +   * loyalty shipping benefit. If the field value isn't provided, the item is
              +   * not eligible for loyalty shipping for the given loyalty tier.
              +   * 
              + * + * optional string shipping_label = 7; + * + * @return The bytes for shippingLabel. + */ + com.google.protobuf.ByteString getShippingLabelBytes(); +} diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequest.java index 8bfd2a988dd8..0582d1ff51cc 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequest.java @@ -83,6 +83,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -111,6 +141,36 @@ public java.lang.String getParent() { * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -597,6 +657,36 @@ public Builder mergeFrom( * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -624,6 +714,36 @@ public java.lang.String getParent() { * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -651,6 +771,36 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -677,6 +827,36 @@ public Builder setParent(java.lang.String value) { * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -699,6 +879,36 @@ public Builder clearParent() { * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequestOrBuilder.java index 88e3749aa914..89b7047b824b 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListLocalInventoriesRequestOrBuilder.java @@ -33,6 +33,36 @@ public interface ListLocalInventoriesRequestOrBuilder * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * @@ -50,6 +80,36 @@ public interface ListLocalInventoriesRequestOrBuilder * Required. The `name` of the parent product to list local inventories for. * Format: * `accounts/{account}/products/{product}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123`, the + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + * for the product would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequest.java index 036343849fce..9425fb444998 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequest.java @@ -83,6 +83,37 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                  * Required. The `name` of the parent product to list `RegionalInventory`
                  * resources for. Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -110,6 +141,37 @@ public java.lang.String getParent() { *
                  * Required. The `name` of the parent product to list `RegionalInventory`
                  * resources for. Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -602,6 +664,37 @@ public Builder mergeFrom( *
                    * Required. The `name` of the parent product to list `RegionalInventory`
                    * resources for. Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -628,6 +721,37 @@ public java.lang.String getParent() { *
                    * Required. The `name` of the parent product to list `RegionalInventory`
                    * resources for. Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -654,6 +778,37 @@ public com.google.protobuf.ByteString getParentBytes() { *
                    * Required. The `name` of the parent product to list `RegionalInventory`
                    * resources for. Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -679,6 +834,37 @@ public Builder setParent(java.lang.String value) { *
                    * Required. The `name` of the parent product to list `RegionalInventory`
                    * resources for. Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * @@ -700,6 +886,37 @@ public Builder clearParent() { *
                    * Required. The `name` of the parent product to list `RegionalInventory`
                    * resources for. Format: `accounts/{account}/products/{product}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier (like
              +     * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123`, the
              +     * `{product}` segment must be the unpadded base64url encoding of this
              +     * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +     * for the product would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequestOrBuilder.java index 24af130004fe..371e2ebbcd71 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ListRegionalInventoriesRequestOrBuilder.java @@ -32,6 +32,37 @@ public interface ListRegionalInventoriesRequestOrBuilder *
                  * Required. The `name` of the parent product to list `RegionalInventory`
                  * resources for. Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * @@ -48,6 +79,37 @@ public interface ListRegionalInventoriesRequestOrBuilder *
                  * Required. The `name` of the parent product to list `RegionalInventory`
                  * resources for. Format: `accounts/{account}/products/{product}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier (like
              +   * `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123`, the
              +   * `{product}` segment must be the unpadded base64url encoding of this
              +   * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
              +   * for the product would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventory.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventory.java index edfdd6bc5d77..3b8777e813ef 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventory.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventory.java @@ -57,6 +57,7 @@ private LocalInventory(com.google.protobuf.GeneratedMessage.Builder builder) private LocalInventory() { name_ = ""; + base64EncodedName_ = ""; storeCode_ = ""; } @@ -88,6 +89,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -114,6 +145,36 @@ public java.lang.String getName() { * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -133,6 +194,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int BASE64_ENCODED_NAME_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +   * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +   * Can be used directly as input to the API methods that require the local
              +   * product identifier within the local inventory name to be encoded if it
              +   * contains special characters, for example
              +   * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +   * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + @java.lang.Override + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +   * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +   * Can be used directly as input to the API methods that require the local
              +   * product identifier within the local inventory name to be encoded if it
              +   * contains special characters, for example
              +   * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +   * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ACCOUNT_FIELD_NUMBER = 2; private long account_ = 0L; @@ -306,6 +440,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(14, getLocalInventoryAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, base64EncodedName_); + } getUnknownFields().writeTo(output); } @@ -329,6 +466,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, getLocalInventoryAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, base64EncodedName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -346,6 +486,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.shopping.merchant.inventories.v1.LocalInventory) obj; if (!getName().equals(other.getName())) return false; + if (!getBase64EncodedName().equals(other.getBase64EncodedName())) return false; if (getAccount() != other.getAccount()) return false; if (!getStoreCode().equals(other.getStoreCode())) return false; if (hasLocalInventoryAttributes() != other.hasLocalInventoryAttributes()) return false; @@ -365,6 +506,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + BASE64_ENCODED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBase64EncodedName().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAccount()); hash = (37 * hash) + STORE_CODE_FIELD_NUMBER; @@ -528,6 +671,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + base64EncodedName_ = ""; account_ = 0L; storeCode_ = ""; localInventoryAttributes_ = null; @@ -575,13 +719,16 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1.LocalInve result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.account_ = account_; + result.base64EncodedName_ = base64EncodedName_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.account_ = account_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.storeCode_ = storeCode_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.localInventoryAttributes_ = localInventoryAttributesBuilder_ == null ? localInventoryAttributes_ @@ -609,12 +756,17 @@ public Builder mergeFrom(com.google.shopping.merchant.inventories.v1.LocalInvent bitField0_ |= 0x00000001; onChanged(); } + if (!other.getBase64EncodedName().isEmpty()) { + base64EncodedName_ = other.base64EncodedName_; + bitField0_ |= 0x00000002; + onChanged(); + } if (other.getAccount() != 0L) { setAccount(other.getAccount()); } if (!other.getStoreCode().isEmpty()) { storeCode_ = other.storeCode_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasLocalInventoryAttributes()) { @@ -655,13 +807,13 @@ public Builder mergeFrom( case 16: { account_ = input.readInt64(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 16 case 26: { storeCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 114: @@ -669,9 +821,15 @@ public Builder mergeFrom( input.readMessage( internalGetLocalInventoryAttributesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 114 + case 122: + { + base64EncodedName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -700,6 +858,36 @@ public Builder mergeFrom( * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -725,6 +913,36 @@ public java.lang.String getName() { * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -750,6 +968,36 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -774,6 +1022,36 @@ public Builder setName(java.lang.String value) { * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -794,6 +1072,36 @@ public Builder clearName() { * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -812,6 +1120,167 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +     * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +     * Can be used directly as input to the API methods that require the local
              +     * product identifier within the local inventory name to be encoded if it
              +     * contains special characters, for example
              +     * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +     * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +     * Can be used directly as input to the API methods that require the local
              +     * product identifier within the local inventory name to be encoded if it
              +     * contains special characters, for example
              +     * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +     * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +     * Can be used directly as input to the API methods that require the local
              +     * product identifier within the local inventory name to be encoded if it
              +     * contains special characters, for example
              +     * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +     * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +     * Can be used directly as input to the API methods that require the local
              +     * product identifier within the local inventory name to be encoded if it
              +     * contains special characters, for example
              +     * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBase64EncodedName() { + base64EncodedName_ = getDefaultInstance().getBase64EncodedName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +     * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +     * Can be used directly as input to the API methods that require the local
              +     * product identifier within the local inventory name to be encoded if it
              +     * contains special characters, for example
              +     * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private long account_; /** @@ -847,7 +1316,7 @@ public long getAccount() { public Builder setAccount(long value) { account_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -865,7 +1334,7 @@ public Builder setAccount(long value) { * @return This builder for chaining. */ public Builder clearAccount() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); account_ = 0L; onChanged(); return this; @@ -954,7 +1423,7 @@ public Builder setStoreCode(java.lang.String value) { throw new NullPointerException(); } storeCode_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -978,7 +1447,7 @@ public Builder setStoreCode(java.lang.String value) { */ public Builder clearStoreCode() { storeCode_ = getDefaultInstance().getStoreCode(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1007,7 +1476,7 @@ public Builder setStoreCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); storeCode_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1034,7 +1503,7 @@ public Builder setStoreCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the localInventoryAttributes field is set. */ public boolean hasLocalInventoryAttributes() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1083,7 +1552,7 @@ public Builder setLocalInventoryAttributes( } else { localInventoryAttributesBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1107,7 +1576,7 @@ public Builder setLocalInventoryAttributes( } else { localInventoryAttributesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1126,7 +1595,7 @@ public Builder setLocalInventoryAttributes( public Builder mergeLocalInventoryAttributes( com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes value) { if (localInventoryAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && localInventoryAttributes_ != null && localInventoryAttributes_ != com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes @@ -1139,7 +1608,7 @@ public Builder mergeLocalInventoryAttributes( localInventoryAttributesBuilder_.mergeFrom(value); } if (localInventoryAttributes_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1157,7 +1626,7 @@ public Builder mergeLocalInventoryAttributes( *
              */ public Builder clearLocalInventoryAttributes() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); localInventoryAttributes_ = null; if (localInventoryAttributesBuilder_ != null) { localInventoryAttributesBuilder_.dispose(); @@ -1180,7 +1649,7 @@ public Builder clearLocalInventoryAttributes() { */ public com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Builder getLocalInventoryAttributesBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetLocalInventoryAttributesFieldBuilder().getBuilder(); } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributes.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributes.java index 889c21e0cf31..a4eed6b5357d 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributes.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributes.java @@ -56,6 +56,7 @@ private LocalInventoryAttributes() { pickupMethod_ = 0; pickupSla_ = 0; instoreProductLocation_ = ""; + loyaltyPrograms_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1344,6 +1345,167 @@ public com.google.protobuf.ByteString getInstoreProductLocationBytes() { } } + public static final int LOYALTY_PROGRAMS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + loyaltyPrograms_; + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getLoyaltyProgramsList() { + return loyaltyPrograms_; + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + getLoyaltyProgramsOrBuilderList() { + return loyaltyPrograms_; + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getLoyaltyProgramsCount() { + return loyaltyPrograms_.size(); + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram getLoyaltyPrograms( + int index) { + return loyaltyPrograms_.get(index); + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder + getLoyaltyProgramsOrBuilder(int index) { + return loyaltyPrograms_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1382,6 +1544,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, instoreProductLocation_); } + for (int i = 0; i < loyaltyPrograms_.size(); i++) { + output.writeMessage(10, loyaltyPrograms_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1416,6 +1581,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, instoreProductLocation_); } + for (int i = 0; i < loyaltyPrograms_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, loyaltyPrograms_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1464,6 +1632,7 @@ public boolean equals(final java.lang.Object obj) { if (hasInstoreProductLocation()) { if (!getInstoreProductLocation().equals(other.getInstoreProductLocation())) return false; } + if (!getLoyaltyProgramsList().equals(other.getLoyaltyProgramsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1507,6 +1676,10 @@ public int hashCode() { hash = (37 * hash) + INSTORE_PRODUCT_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getInstoreProductLocation().hashCode(); } + if (getLoyaltyProgramsCount() > 0) { + hash = (37 * hash) + LOYALTY_PROGRAMS_FIELD_NUMBER; + hash = (53 * hash) + getLoyaltyProgramsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1654,6 +1827,7 @@ private void maybeForceBuilderInitialization() { internalGetPriceFieldBuilder(); internalGetSalePriceFieldBuilder(); internalGetSalePriceEffectiveDateFieldBuilder(); + internalGetLoyaltyProgramsFieldBuilder(); } } @@ -1681,6 +1855,13 @@ public Builder clear() { pickupMethod_ = 0; pickupSla_ = 0; instoreProductLocation_ = ""; + if (loyaltyProgramsBuilder_ == null) { + loyaltyPrograms_ = java.util.Collections.emptyList(); + } else { + loyaltyPrograms_ = null; + loyaltyProgramsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -1710,6 +1891,7 @@ public com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes buil public com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes buildPartial() { com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes result = new com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1717,6 +1899,19 @@ public com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes buil return result; } + private void buildPartialRepeatedFields( + com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes result) { + if (loyaltyProgramsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + loyaltyPrograms_ = java.util.Collections.unmodifiableList(loyaltyPrograms_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.loyaltyPrograms_ = loyaltyPrograms_; + } else { + result.loyaltyPrograms_ = loyaltyProgramsBuilder_.build(); + } + } + private void buildPartial0( com.google.shopping.merchant.inventories.v1.LocalInventoryAttributes result) { int from_bitField0_ = bitField0_; @@ -1801,6 +1996,33 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; onChanged(); } + if (loyaltyProgramsBuilder_ == null) { + if (!other.loyaltyPrograms_.isEmpty()) { + if (loyaltyPrograms_.isEmpty()) { + loyaltyPrograms_ = other.loyaltyPrograms_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.addAll(other.loyaltyPrograms_); + } + onChanged(); + } + } else { + if (!other.loyaltyPrograms_.isEmpty()) { + if (loyaltyProgramsBuilder_.isEmpty()) { + loyaltyProgramsBuilder_.dispose(); + loyaltyProgramsBuilder_ = null; + loyaltyPrograms_ = other.loyaltyPrograms_; + bitField0_ = (bitField0_ & ~0x00000100); + loyaltyProgramsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLoyaltyProgramsFieldBuilder() + : null; + } else { + loyaltyProgramsBuilder_.addAllMessages(other.loyaltyPrograms_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1878,6 +2100,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 82: + { + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram m = + input.readMessage( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .parser(), + extensionRegistry); + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(m); + } else { + loyaltyProgramsBuilder_.addMessage(m); + } + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3172,6 +3409,690 @@ public Builder setInstoreProductLocationBytes(com.google.protobuf.ByteString val return this; } + private java.util.List + loyaltyPrograms_ = java.util.Collections.emptyList(); + + private void ensureLoyaltyProgramsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + loyaltyPrograms_ = + new java.util.ArrayList< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram>( + loyaltyPrograms_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + loyaltyProgramsBuilder_; + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLoyaltyProgramsList() { + if (loyaltyProgramsBuilder_ == null) { + return java.util.Collections.unmodifiableList(loyaltyPrograms_); + } else { + return loyaltyProgramsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getLoyaltyProgramsCount() { + if (loyaltyProgramsBuilder_ == null) { + return loyaltyPrograms_.size(); + } else { + return loyaltyProgramsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram getLoyaltyPrograms( + int index) { + if (loyaltyProgramsBuilder_ == null) { + return loyaltyPrograms_.get(index); + } else { + return loyaltyProgramsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoyaltyPrograms( + int index, com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram value) { + if (loyaltyProgramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.set(index, value); + onChanged(); + } else { + loyaltyProgramsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoyaltyPrograms( + int index, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + builderForValue) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.set(index, builderForValue.build()); + onChanged(); + } else { + loyaltyProgramsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram value) { + if (loyaltyProgramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(value); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + int index, com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram value) { + if (loyaltyProgramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(index, value); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + builderForValue) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(builderForValue.build()); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + int index, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + builderForValue) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(index, builderForValue.build()); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllLoyaltyPrograms( + java.lang.Iterable< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram> + values) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, loyaltyPrograms_); + onChanged(); + } else { + loyaltyProgramsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLoyaltyPrograms() { + if (loyaltyProgramsBuilder_ == null) { + loyaltyPrograms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + loyaltyProgramsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLoyaltyPrograms(int index) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.remove(index); + onChanged(); + } else { + loyaltyProgramsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + getLoyaltyProgramsBuilder(int index) { + return internalGetLoyaltyProgramsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder + getLoyaltyProgramsOrBuilder(int index) { + if (loyaltyProgramsBuilder_ == null) { + return loyaltyPrograms_.get(index); + } else { + return loyaltyProgramsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + getLoyaltyProgramsOrBuilderList() { + if (loyaltyProgramsBuilder_ != null) { + return loyaltyProgramsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(loyaltyPrograms_); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + addLoyaltyProgramsBuilder() { + return internalGetLoyaltyProgramsFieldBuilder() + .addBuilder( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + addLoyaltyProgramsBuilder(int index) { + return internalGetLoyaltyProgramsFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product at this store.
              +     *
              +     * This field is used to show store-specific member prices on Local
              +     * Inventory Ads (LIA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center. The benefits provided must match the merchant's website and be
              +     * clear to members. This is only applicable for merchants in supported
              +     * countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * For local inventory specific details, see the [Local inventory data
              +     * specification](https://support.google.com/merchants/answer/3061342).
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder> + getLoyaltyProgramsBuilderList() { + return internalGetLoyaltyProgramsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + internalGetLoyaltyProgramsFieldBuilder() { + if (loyaltyProgramsBuilder_ == null) { + loyaltyProgramsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder>( + loyaltyPrograms_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + loyaltyPrograms_ = null; + } + return loyaltyProgramsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1.LocalInventoryAttributes) } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributesOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributesOrBuilder.java index be60dc2ef7d5..191e0f20ba71 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributesOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryAttributesOrBuilder.java @@ -385,4 +385,143 @@ public interface LocalInventoryAttributesOrBuilder * @return The bytes for instoreProductLocation. */ com.google.protobuf.ByteString getInstoreProductLocationBytes(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getLoyaltyProgramsList(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram getLoyaltyPrograms(int index); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLoyaltyProgramsCount(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + getLoyaltyProgramsOrBuilderList(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product at this store.
              +   *
              +   * This field is used to show store-specific member prices on Local
              +   * Inventory Ads (LIA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center. The benefits provided must match the merchant's website and be
              +   * clear to members. This is only applicable for merchants in supported
              +   * countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * For local inventory specific details, see the [Local inventory data
              +   * specification](https://support.google.com/merchants/answer/3061342).
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder + getLoyaltyProgramsOrBuilder(int index); } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryOrBuilder.java index 3f37cfede6c2..84e90d22dcda 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryOrBuilder.java @@ -33,6 +33,36 @@ public interface LocalInventoryOrBuilder * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -48,6 +78,36 @@ public interface LocalInventoryOrBuilder * Output only. The name of the `LocalInventory` resource. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` + * + * The `{product}` segment is a unique identifier for the product. + * This identifier must be unique within a merchant account and generally + * follows the structure: `content_language~feed_label~offer_id`. Example: + * `en~US~sku123` For legacy local products, the structure is: + * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + * + * The format of the `{product}` segment in the URL is automatically detected + * by the server, supporting two options: + * + * 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + * encoded string (RFC 4648 Section 5). The decoded string must result + * in the `content_language~feed_label~offer_id` structure. This encoding + * MUST be used if any part of the product identifier (like `offer_id`) + * contains characters such as `/`, `%`, or `~`. + * * Example: To represent the product ID `en~US~sku/123` for + * `store_code` "store123", the `{product}` segment must be the + * base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + * The full resource name for the local inventory would be + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + * + * 2. **Plain Format**: The `{product}` segment is the tilde-separated string + * `content_language~feed_label~offer_id`. This format is suitable only + * when `content_language`, `feed_label`, and `offer_id` do not contain + * URL-problematic characters like `/`, `%`, or `~`. + * + * We recommend using the **Encoded Format** for all product IDs to ensure + * correct parsing, especially those containing special characters. The + * presence of tilde (`~`) characters in the `{product}` segment is used to + * differentiate between the two formats. * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -56,6 +116,52 @@ public interface LocalInventoryOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +   * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +   * Can be used directly as input to the API methods that require the local
              +   * product identifier within the local inventory name to be encoded if it
              +   * contains special characters, for example
              +   * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +   * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + java.lang.String getBase64EncodedName(); + + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `LocalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/localInventories/{store_code}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for
              +   * the decoded product ID `en~US~sku/123` and `store_code` "store123".
              +   * Can be used directly as input to the API methods that require the local
              +   * product identifier within the local inventory name to be encoded if it
              +   * contains special characters, for example
              +   * [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get).
              +   * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + com.google.protobuf.ByteString getBase64EncodedNameBytes(); + /** * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryProto.java index 818f1a1695cf..e336a690d7d9 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryProto.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryProto.java @@ -75,54 +75,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tations.proto\032\027google/api/client.proto\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\033google/protobuf/empt" - + "y.proto\032@google/shopping/merchant/inventories/v1/inventories_common.proto\"\266\002\n" + + "y.proto\032@google/shopping/merchant/inventories/v1/inventories_common.proto\"\330\002\n" + "\016LocalInventory\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\003\022 \n" + + "\023base64_encoded_name\030\017 \001(\tB\003\340A\003\022\024\n" + "\007account\030\002 \001(\003B\003\340A\003\022\032\n\n" + "store_code\030\003 \001(\tB\006\340A\002\340A\005\022j\n" - + "\032local_inventory_attributes\030\016 \001(\0132A." - + "google.shopping.merchant.inventories.v1.LocalInventoryAttributesB\003\340A\001:s\352Ap\n" - + ")merchantapi.googleapis.com/LocalInventory\022Ca" - + "ccounts/{account}/products/{product}/localInventories/{store_code}\"\207\001\n" + + "\032local_inventory_attributes\030\016 \001(\0132A.google" + + ".shopping.merchant.inventories.v1.LocalInventoryAttributesB\003\340A\001:s\352Ap\n" + + ")merchantapi.googleapis.com/LocalInventory\022Caccount" + + "s/{account}/products/{product}/localInventories/{store_code}\"\207\001\n" + "\033ListLocalInventoriesRequest\022A\n" - + "\006parent\030\001 \001(\tB1\340A\002\372" - + "A+\022)merchantapi.googleapis.com/LocalInventory\022\021\n" + + "\006parent\030\001 \001(\tB1\340A\002\372A+\022)me" + + "rchantapi.googleapis.com/LocalInventory\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\213\001\n" + "\034ListLocalInventoriesResponse\022R\n" - + "\021local_inventories\030\001 \003(\01327.google.shoppi" - + "ng.merchant.inventories.v1.LocalInventory\022\027\n" + + "\021local_inventories\030\001" + + " \003(\01327.google.shopping.merchant.inventories.v1.LocalInventory\022\027\n" + "\017next_page_token\030\002 \001(\t\"\267\001\n" + "\033InsertLocalInventoryRequest\022A\n" - + "\006parent\030\001 \001(\tB1\340A\002\372" - + "A+\022)merchantapi.googleapis.com/LocalInventory\022U\n" - + "\017local_inventory\030\002 \001(\01327.google." - + "shopping.merchant.inventories.v1.LocalInventoryB\003\340A\002\"^\n" + + "\006parent\030\001 \001(\tB1\340A\002\372A+\022)me" + + "rchantapi.googleapis.com/LocalInventory\022U\n" + + "\017local_inventory\030\002 \001(\01327.google.shoppi" + + "ng.merchant.inventories.v1.LocalInventoryB\003\340A\002\"^\n" + "\033DeleteLocalInventoryRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")merchantapi.googleapis.com/LocalInventory2\230\006\n" + "\025LocalInventoryService\022\365\001\n" - + "\024ListLocalInventories\022D.google.shopping.merchant.inventories.v" - + "1.ListLocalInventoriesRequest\032E.google.shopping.merchant.inventories.v1.ListLoca" - + "lInventoriesResponse\"P\332A\006parent\202\323\344\223\002A\022?/" - + "inventories/v1/{parent=accounts/*/products/*}/localInventories\022\366\001\n" - + "\024InsertLocalInventory\022D.google.shopping.merchant.inven" - + "tories.v1.InsertLocalInventoryRequest\0327.google.shopping.merchant.inventories.v1." - + "LocalInventory\"_\202\323\344\223\002Y\"F/inventories/v1/" - + "{parent=accounts/*/products/*}/localInventories:insert:\017local_inventory\022\304\001\n" - + "\024DeleteLocalInventory\022D.google.shopping.merch" - + "ant.inventories.v1.DeleteLocalInventoryR" - + "equest\032\026.google.protobuf.Empty\"N\332A\004name\202" - + "\323\344\223\002A*?/inventories/v1/{name=accounts/*/" - + "products/*/localInventories/*}\032G\312A\032merch" - + "antapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\351\002\n" - + "+com.google.shopping.merchant.inventories.v1B\023LocalIn" - + "ventoryProtoP\001ZScloud.google.com/go/shopping/merchant/inventories/apiv1/inventor" - + "iespb;inventoriespb\252\002\'Google.Shopping.Me" - + "rchant.Inventories.V1\312\002\'Google\\Shopping\\" - + "Merchant\\Inventories\\V1\352\002+Google::Shopping::Merchant::Inventories::V1\352AK\n" - + "\"merchantapi.googleapis.com/Product\022%accounts/{" - + "account}/products/{product}b\006proto3" + + "\024ListLocalInventories\022D.google.shopping.merchant.inventories.v1.List" + + "LocalInventoriesRequest\032E.google.shopping.merchant.inventories.v1.ListLocalInven" + + "toriesResponse\"P\332A\006parent\202\323\344\223\002A\022?/invent" + + "ories/v1/{parent=accounts/*/products/*}/localInventories\022\366\001\n" + + "\024InsertLocalInventory\022D.google.shopping.merchant.inventories" + + ".v1.InsertLocalInventoryRequest\0327.google.shopping.merchant.inventories.v1.LocalI" + + "nventory\"_\202\323\344\223\002Y\"F/inventories/v1/{paren" + + "t=accounts/*/products/*}/localInventories:insert:\017local_inventory\022\304\001\n" + + "\024DeleteLocalInventory\022D.google.shopping.merchant.in" + + "ventories.v1.DeleteLocalInventoryRequest" + + "\032\026.google.protobuf.Empty\"N\332A\004name\202\323\344\223\002A*" + + "?/inventories/v1/{name=accounts/*/produc" + + "ts/*/localInventories/*}\032G\312A\032merchantapi" + + ".googleapis.com\322A\'https://www.googleapis.com/auth/contentB\351\002\n" + + "+com.google.shopping.merchant.inventories.v1B\023LocalInventor" + + "yProtoP\001ZScloud.google.com/go/shopping/merchant/inventories/apiv1/inventoriespb;" + + "inventoriespb\252\002\'Google.Shopping.Merchant" + + ".Inventories.V1\312\002\'Google\\Shopping\\Mercha" + + "nt\\Inventories\\V1\352\002+Google::Shopping::Merchant::Inventories::V1\352AK\n" + + "\"merchantapi.googleapis.com/Product\022%accounts/{accoun" + + "t}/products/{product}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -141,7 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_inventories_v1_LocalInventory_descriptor, new java.lang.String[] { - "Name", "Account", "StoreCode", "LocalInventoryAttributes", + "Name", "Base64EncodedName", "Account", "StoreCode", "LocalInventoryAttributes", }); internal_static_google_shopping_merchant_inventories_v1_ListLocalInventoriesRequest_descriptor = getDescriptor().getMessageType(1); diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventory.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventory.java index 06641d3dac1f..3a9b34ca56d9 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventory.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventory.java @@ -58,6 +58,7 @@ private RegionalInventory(com.google.protobuf.GeneratedMessage.Builder builde private RegionalInventory() { name_ = ""; + base64EncodedName_ = ""; region_ = ""; } @@ -88,7 +89,39 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                  * Output only. The name of the `RegionalInventory` resource.
                  * Format:
              -   * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier
              +   * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123` for
              +   * `region` "region123", the `{product}` segment must be the
              +   * unpadded base64url encoding of this string, which is
              +   * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +   * inventory would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -114,7 +147,39 @@ public java.lang.String getName() { *
                  * Output only. The name of the `RegionalInventory` resource.
                  * Format:
              -   * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier
              +   * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123` for
              +   * `region` "region123", the `{product}` segment must be the
              +   * unpadded base64url encoding of this string, which is
              +   * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +   * inventory would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -134,6 +199,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int BASE64_ENCODED_NAME_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +   * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +   * Can be used directly as input to the API methods that require the product
              +   * identifier within the regional inventory name to be encoded if it contains
              +   * special characters, for example
              +   * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +   * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + @java.lang.Override + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +   * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +   * Can be used directly as input to the API methods that require the product
              +   * identifier within the regional inventory name to be encoded if it contains
              +   * special characters, for example
              +   * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +   * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ACCOUNT_FIELD_NUMBER = 2; private long account_ = 0L; @@ -307,6 +445,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(9, getRegionalInventoryAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, base64EncodedName_); + } getUnknownFields().writeTo(output); } @@ -330,6 +471,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getRegionalInventoryAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, base64EncodedName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -347,6 +491,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.shopping.merchant.inventories.v1.RegionalInventory) obj; if (!getName().equals(other.getName())) return false; + if (!getBase64EncodedName().equals(other.getBase64EncodedName())) return false; if (getAccount() != other.getAccount()) return false; if (!getRegion().equals(other.getRegion())) return false; if (hasRegionalInventoryAttributes() != other.hasRegionalInventoryAttributes()) return false; @@ -367,6 +512,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + BASE64_ENCODED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBase64EncodedName().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAccount()); hash = (37 * hash) + REGION_FIELD_NUMBER; @@ -531,6 +678,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + base64EncodedName_ = ""; account_ = 0L; region_ = ""; regionalInventoryAttributes_ = null; @@ -580,13 +728,16 @@ private void buildPartial0( result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.account_ = account_; + result.base64EncodedName_ = base64EncodedName_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.account_ = account_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.region_ = region_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.regionalInventoryAttributes_ = regionalInventoryAttributesBuilder_ == null ? regionalInventoryAttributes_ @@ -615,12 +766,17 @@ public Builder mergeFrom(com.google.shopping.merchant.inventories.v1.RegionalInv bitField0_ |= 0x00000001; onChanged(); } + if (!other.getBase64EncodedName().isEmpty()) { + base64EncodedName_ = other.base64EncodedName_; + bitField0_ |= 0x00000002; + onChanged(); + } if (other.getAccount() != 0L) { setAccount(other.getAccount()); } if (!other.getRegion().isEmpty()) { region_ = other.region_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasRegionalInventoryAttributes()) { @@ -661,13 +817,13 @@ public Builder mergeFrom( case 16: { account_ = input.readInt64(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 16 case 26: { region_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 74: @@ -675,9 +831,15 @@ public Builder mergeFrom( input.readMessage( internalGetRegionalInventoryAttributesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 74 + case 82: + { + base64EncodedName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -705,7 +867,39 @@ public Builder mergeFrom( *
                    * Output only. The name of the `RegionalInventory` resource.
                    * Format:
              -     * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier
              +     * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123` for
              +     * `region` "region123", the `{product}` segment must be the
              +     * unpadded base64url encoding of this string, which is
              +     * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +     * inventory would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -730,7 +924,39 @@ public java.lang.String getName() { *
                    * Output only. The name of the `RegionalInventory` resource.
                    * Format:
              -     * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier
              +     * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123` for
              +     * `region` "region123", the `{product}` segment must be the
              +     * unpadded base64url encoding of this string, which is
              +     * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +     * inventory would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -755,7 +981,39 @@ public com.google.protobuf.ByteString getNameBytes() { *
                    * Output only. The name of the `RegionalInventory` resource.
                    * Format:
              -     * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier
              +     * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123` for
              +     * `region` "region123", the `{product}` segment must be the
              +     * unpadded base64url encoding of this string, which is
              +     * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +     * inventory would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -779,7 +1037,39 @@ public Builder setName(java.lang.String value) { *
                    * Output only. The name of the `RegionalInventory` resource.
                    * Format:
              -     * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier
              +     * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123` for
              +     * `region` "region123", the `{product}` segment must be the
              +     * unpadded base64url encoding of this string, which is
              +     * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +     * inventory would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -799,7 +1089,39 @@ public Builder clearName() { *
                    * Output only. The name of the `RegionalInventory` resource.
                    * Format:
              -     * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     *
              +     * The `{product}` segment is a unique identifier for the product.
              +     * This identifier must be unique within a merchant account and generally
              +     * follows the structure: `content_language~feed_label~offer_id`. Example:
              +     * `en~US~sku123` For legacy local products, the structure is:
              +     * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +     *
              +     * The format of the `{product}` segment in the URL is automatically detected
              +     * by the server, supporting two options:
              +     *
              +     * 1.  **Encoded Format**: The `{product}` segment is an
              +     * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +     * decoded string
              +     * must result in the `content_language~feed_label~offer_id` structure.
              +     * This encoding MUST be used if any part of the product identifier
              +     * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +     * *   Example: To represent the product ID `en~US~sku/123` for
              +     * `region` "region123", the `{product}` segment must be the
              +     * unpadded base64url encoding of this string, which is
              +     * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +     * inventory would be
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +     *
              +     * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +     * `content_language~feed_label~offer_id`. This format is suitable only
              +     * when `content_language`, `feed_label`, and `offer_id` do not contain
              +     * URL-problematic characters like `/`, `%`, or `~`.
              +     *
              +     * We recommend using the **Encoded Format** for all product IDs to ensure
              +     * correct parsing, especially those containing special characters. The
              +     * presence of tilde (`~`) characters in the `{product}` segment is used to
              +     * differentiate between the two formats.
                    * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -818,6 +1140,167 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +     * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +     * Can be used directly as input to the API methods that require the product
              +     * identifier within the regional inventory name to be encoded if it contains
              +     * special characters, for example
              +     * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +     * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +     * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +     * Can be used directly as input to the API methods that require the product
              +     * identifier within the regional inventory name to be encoded if it contains
              +     * special characters, for example
              +     * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +     * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +     * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +     * Can be used directly as input to the API methods that require the product
              +     * identifier within the regional inventory name to be encoded if it contains
              +     * special characters, for example
              +     * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +     * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +     * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +     * Can be used directly as input to the API methods that require the product
              +     * identifier within the regional inventory name to be encoded if it contains
              +     * special characters, for example
              +     * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +     * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBase64EncodedName() { + base64EncodedName_ = getDefaultInstance().getBase64EncodedName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +     * resource. Format:
              +     * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +     * where the `{product}` segment is the unpadded base64url encoded value of
              +     * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +     * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +     * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +     * Can be used directly as input to the API methods that require the product
              +     * identifier within the regional inventory name to be encoded if it contains
              +     * special characters, for example
              +     * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +     * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private long account_; /** @@ -853,7 +1336,7 @@ public long getAccount() { public Builder setAccount(long value) { account_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -871,7 +1354,7 @@ public Builder setAccount(long value) { * @return This builder for chaining. */ public Builder clearAccount() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); account_ = 0L; onChanged(); return this; @@ -957,7 +1440,7 @@ public Builder setRegion(java.lang.String value) { throw new NullPointerException(); } region_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -980,7 +1463,7 @@ public Builder setRegion(java.lang.String value) { */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1008,7 +1491,7 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); region_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1035,7 +1518,7 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { * @return Whether the regionalInventoryAttributes field is set. */ public boolean hasRegionalInventoryAttributes() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1084,7 +1567,7 @@ public Builder setRegionalInventoryAttributes( } else { regionalInventoryAttributesBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1108,7 +1591,7 @@ public Builder setRegionalInventoryAttributes( } else { regionalInventoryAttributesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1127,7 +1610,7 @@ public Builder setRegionalInventoryAttributes( public Builder mergeRegionalInventoryAttributes( com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes value) { if (regionalInventoryAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && regionalInventoryAttributes_ != null && regionalInventoryAttributes_ != com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes @@ -1140,7 +1623,7 @@ public Builder mergeRegionalInventoryAttributes( regionalInventoryAttributesBuilder_.mergeFrom(value); } if (regionalInventoryAttributes_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1158,7 +1641,7 @@ public Builder mergeRegionalInventoryAttributes( *
              */ public Builder clearRegionalInventoryAttributes() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); regionalInventoryAttributes_ = null; if (regionalInventoryAttributesBuilder_ != null) { regionalInventoryAttributesBuilder_.dispose(); @@ -1181,7 +1664,7 @@ public Builder clearRegionalInventoryAttributes() { */ public com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Builder getRegionalInventoryAttributesBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetRegionalInventoryAttributesFieldBuilder().getBuilder(); } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributes.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributes.java index 9ca14f866364..d2788c66a570 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributes.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributes.java @@ -53,6 +53,7 @@ private RegionalInventoryAttributes(com.google.protobuf.GeneratedMessage.Builder private RegionalInventoryAttributes() { availability_ = 0; + loyaltyPrograms_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -483,6 +484,187 @@ public int getAvailabilityValue() { : result; } + public static final int LOYALTY_PROGRAMS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + loyaltyPrograms_; + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getLoyaltyProgramsList() { + return loyaltyPrograms_; + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + getLoyaltyProgramsOrBuilderList() { + return loyaltyPrograms_; + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getLoyaltyProgramsCount() { + return loyaltyPrograms_.size(); + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram getLoyaltyPrograms( + int index) { + return loyaltyPrograms_.get(index); + } + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder + getLoyaltyProgramsOrBuilder(int index) { + return loyaltyPrograms_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -509,6 +691,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, availability_); } + for (int i = 0; i < loyaltyPrograms_.size(); i++) { + output.writeMessage(5, loyaltyPrograms_.get(i)); + } getUnknownFields().writeTo(output); } @@ -531,6 +716,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, availability_); } + for (int i = 0; i < loyaltyPrograms_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, loyaltyPrograms_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -563,6 +751,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAvailability()) { if (availability_ != other.availability_) return false; } + if (!getLoyaltyProgramsList().equals(other.getLoyaltyProgramsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -590,6 +779,10 @@ public int hashCode() { hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; hash = (53 * hash) + availability_; } + if (getLoyaltyProgramsCount() > 0) { + hash = (37 * hash) + LOYALTY_PROGRAMS_FIELD_NUMBER; + hash = (53 * hash) + getLoyaltyProgramsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -738,6 +931,7 @@ private void maybeForceBuilderInitialization() { internalGetPriceFieldBuilder(); internalGetSalePriceFieldBuilder(); internalGetSalePriceEffectiveDateFieldBuilder(); + internalGetLoyaltyProgramsFieldBuilder(); } } @@ -761,6 +955,13 @@ public Builder clear() { salePriceEffectiveDateBuilder_ = null; } availability_ = 0; + if (loyaltyProgramsBuilder_ == null) { + loyaltyPrograms_ = java.util.Collections.emptyList(); + } else { + loyaltyPrograms_ = null; + loyaltyProgramsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -791,6 +992,7 @@ public com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes b public com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes buildPartial() { com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes result = new com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -798,6 +1000,19 @@ public com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes b return result; } + private void buildPartialRepeatedFields( + com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes result) { + if (loyaltyProgramsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + loyaltyPrograms_ = java.util.Collections.unmodifiableList(loyaltyPrograms_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.loyaltyPrograms_ = loyaltyPrograms_; + } else { + result.loyaltyPrograms_ = loyaltyProgramsBuilder_.build(); + } + } + private void buildPartial0( com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes result) { int from_bitField0_ = bitField0_; @@ -853,6 +1068,33 @@ public Builder mergeFrom( if (other.hasAvailability()) { setAvailabilityValue(other.getAvailabilityValue()); } + if (loyaltyProgramsBuilder_ == null) { + if (!other.loyaltyPrograms_.isEmpty()) { + if (loyaltyPrograms_.isEmpty()) { + loyaltyPrograms_ = other.loyaltyPrograms_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.addAll(other.loyaltyPrograms_); + } + onChanged(); + } + } else { + if (!other.loyaltyPrograms_.isEmpty()) { + if (loyaltyProgramsBuilder_.isEmpty()) { + loyaltyProgramsBuilder_.dispose(); + loyaltyProgramsBuilder_ = null; + loyaltyPrograms_ = other.loyaltyPrograms_; + bitField0_ = (bitField0_ & ~0x00000010); + loyaltyProgramsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLoyaltyProgramsFieldBuilder() + : null; + } else { + loyaltyProgramsBuilder_.addAllMessages(other.loyaltyPrograms_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -906,6 +1148,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 42: + { + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram m = + input.readMessage( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .parser(), + extensionRegistry); + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(m); + } else { + loyaltyProgramsBuilder_.addMessage(m); + } + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1699,6 +1956,762 @@ public Builder clearAvailability() { return this; } + private java.util.List + loyaltyPrograms_ = java.util.Collections.emptyList(); + + private void ensureLoyaltyProgramsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + loyaltyPrograms_ = + new java.util.ArrayList< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram>( + loyaltyPrograms_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + loyaltyProgramsBuilder_; + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLoyaltyProgramsList() { + if (loyaltyProgramsBuilder_ == null) { + return java.util.Collections.unmodifiableList(loyaltyPrograms_); + } else { + return loyaltyProgramsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getLoyaltyProgramsCount() { + if (loyaltyProgramsBuilder_ == null) { + return loyaltyPrograms_.size(); + } else { + return loyaltyProgramsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram getLoyaltyPrograms( + int index) { + if (loyaltyProgramsBuilder_ == null) { + return loyaltyPrograms_.get(index); + } else { + return loyaltyProgramsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoyaltyPrograms( + int index, com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram value) { + if (loyaltyProgramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.set(index, value); + onChanged(); + } else { + loyaltyProgramsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoyaltyPrograms( + int index, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + builderForValue) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.set(index, builderForValue.build()); + onChanged(); + } else { + loyaltyProgramsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram value) { + if (loyaltyProgramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(value); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + int index, com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram value) { + if (loyaltyProgramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(index, value); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + builderForValue) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(builderForValue.build()); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLoyaltyPrograms( + int index, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + builderForValue) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.add(index, builderForValue.build()); + onChanged(); + } else { + loyaltyProgramsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllLoyaltyPrograms( + java.lang.Iterable< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram> + values) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, loyaltyPrograms_); + onChanged(); + } else { + loyaltyProgramsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLoyaltyPrograms() { + if (loyaltyProgramsBuilder_ == null) { + loyaltyPrograms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + loyaltyProgramsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLoyaltyPrograms(int index) { + if (loyaltyProgramsBuilder_ == null) { + ensureLoyaltyProgramsIsMutable(); + loyaltyPrograms_.remove(index); + onChanged(); + } else { + loyaltyProgramsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + getLoyaltyProgramsBuilder(int index) { + return internalGetLoyaltyProgramsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder + getLoyaltyProgramsOrBuilder(int index) { + if (loyaltyProgramsBuilder_ == null) { + return loyaltyPrograms_.get(index); + } else { + return loyaltyProgramsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + getLoyaltyProgramsOrBuilderList() { + if (loyaltyProgramsBuilder_ != null) { + return loyaltyProgramsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(loyaltyPrograms_); + } + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + addLoyaltyProgramsBuilder() { + return internalGetLoyaltyProgramsFieldBuilder() + .addBuilder( + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder + addLoyaltyProgramsBuilder(int index) { + return internalGetLoyaltyProgramsFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. An optional list of loyalty programs containing applicable
              +     * loyalty member prices for this product in this region.
              +     *
              +     * This field is used to show region-specific member prices on Product
              +     * Listing Ads (PLA).
              +     *
              +     * To use this, the loyalty program must be configured in Google Merchant
              +     * Center, and the merchant must be using the Regional Availability and
              +     * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +     * website and be clear to members. This is only applicable for merchants in
              +     * supported countries.
              +     *
              +     * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +     * for details on supported countries and loyalty program configuration.
              +     * Also see [Regional availability and
              +     * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +     * set up regional member
              +     * pricing](https://support.google.com/merchants/answer/16388178) for more
              +     * information.
              +     * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder> + getLoyaltyProgramsBuilderList() { + return internalGetLoyaltyProgramsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + internalGetLoyaltyProgramsFieldBuilder() { + if (loyaltyProgramsBuilder_ == null) { + loyaltyProgramsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram.Builder, + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder>( + loyaltyPrograms_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + loyaltyPrograms_ = null; + } + return loyaltyProgramsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1.RegionalInventoryAttributes) } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributesOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributesOrBuilder.java index 577a4fa17e9e..d5d6d506ece9 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributesOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryAttributesOrBuilder.java @@ -206,4 +206,163 @@ public interface RegionalInventoryAttributesOrBuilder */ com.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Availability getAvailability(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getLoyaltyProgramsList(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram getLoyaltyPrograms(int index); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLoyaltyProgramsCount(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> + getLoyaltyProgramsOrBuilderList(); + + /** + * + * + *
              +   * Optional. An optional list of loyalty programs containing applicable
              +   * loyalty member prices for this product in this region.
              +   *
              +   * This field is used to show region-specific member prices on Product
              +   * Listing Ads (PLA).
              +   *
              +   * To use this, the loyalty program must be configured in Google Merchant
              +   * Center, and the merchant must be using the Regional Availability and
              +   * Pricing (RAAP) feature. The benefits provided must match the merchant's
              +   * website and be clear to members. This is only applicable for merchants in
              +   * supported countries.
              +   *
              +   * See [Loyalty program](https://support.google.com/merchants/answer/12922446)
              +   * for details on supported countries and loyalty program configuration.
              +   * Also see [Regional availability and
              +   * pricing](https://support.google.com/merchants/answer/14644124) and [How to
              +   * set up regional member
              +   * pricing](https://support.google.com/merchants/answer/16388178) for more
              +   * information.
              +   * 
              + * + * + * repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder + getLoyaltyProgramsOrBuilder(int index); } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryOrBuilder.java index fb04859dae4a..8b403e935e16 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryOrBuilder.java @@ -32,7 +32,39 @@ public interface RegionalInventoryOrBuilder *
                  * Output only. The name of the `RegionalInventory` resource.
                  * Format:
              -   * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier
              +   * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123` for
              +   * `region` "region123", the `{product}` segment must be the
              +   * unpadded base64url encoding of this string, which is
              +   * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +   * inventory would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -47,7 +79,39 @@ public interface RegionalInventoryOrBuilder *
                  * Output only. The name of the `RegionalInventory` resource.
                  * Format:
              -   * `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   *
              +   * The `{product}` segment is a unique identifier for the product.
              +   * This identifier must be unique within a merchant account and generally
              +   * follows the structure: `content_language~feed_label~offer_id`. Example:
              +   * `en~US~sku123` For legacy local products, the structure is:
              +   * `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123`
              +   *
              +   * The format of the `{product}` segment in the URL is automatically detected
              +   * by the server, supporting two options:
              +   *
              +   * 1.  **Encoded Format**: The `{product}` segment is an
              +   * **unpadded base64url** encoded string (RFC 4648 Section 5). The
              +   * decoded string
              +   * must result in the `content_language~feed_label~offer_id` structure.
              +   * This encoding MUST be used if any part of the product identifier
              +   * (like `offer_id`) contains characters such as `/`, `%`, or `~`.
              +   * *   Example: To represent the product ID `en~US~sku/123` for
              +   * `region` "region123", the `{product}` segment must be the
              +   * unpadded base64url encoding of this string, which is
              +   * `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional
              +   * inventory would be
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`.
              +   *
              +   * 2.  **Plain Format**: The `{product}` segment is the tilde-separated string
              +   * `content_language~feed_label~offer_id`. This format is suitable only
              +   * when `content_language`, `feed_label`, and `offer_id` do not contain
              +   * URL-problematic characters like `/`, `%`, or `~`.
              +   *
              +   * We recommend using the **Encoded Format** for all product IDs to ensure
              +   * correct parsing, especially those containing special characters. The
              +   * presence of tilde (`~`) characters in the `{product}` segment is used to
              +   * differentiate between the two formats.
                  * 
              * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -56,6 +120,52 @@ public interface RegionalInventoryOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +   * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +   * Can be used directly as input to the API methods that require the product
              +   * identifier within the regional inventory name to be encoded if it contains
              +   * special characters, for example
              +   * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +   * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + java.lang.String getBase64EncodedName(); + + /** + * + * + *
              +   * Output only. The unpadded base64url encoded name of the `RegionalInventory`
              +   * resource. Format:
              +   * `accounts/{account}/products/{product}/regionalInventories/{region}`
              +   * where the `{product}` segment is the unpadded base64url encoded value of
              +   * the identifier of the form `content_language~feed_label~offer_id`. Example:
              +   * `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`
              +   * for the decoded product ID `en~US~sku/123` and `region` "region123".
              +   * Can be used directly as input to the API methods that require the product
              +   * identifier within the regional inventory name to be encoded if it contains
              +   * special characters, for example
              +   * [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get).
              +   * 
              + * + * string base64_encoded_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + com.google.protobuf.ByteString getBase64EncodedNameBytes(); + /** * * diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryProto.java index 36c8f359bfc3..2dad7adc6513 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryProto.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryProto.java @@ -75,55 +75,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nnotations.proto\032\027google/api/client.prot" + "o\032\037google/api/field_behavior.proto\032\031goog" + "le/api/resource.proto\032\033google/protobuf/e" - + "mpty.proto\032@google/shopping/merchant/inventories/v1/inventories_common.proto\"\275\002\n" + + "mpty.proto\032@google/shopping/merchant/inventories/v1/inventories_common.proto\"\337\002\n" + "\021RegionalInventory\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\003\022 \n" + + "\023base64_encoded_name\030\n" + + " \001(\tB\003\340A\003\022\024\n" + "\007account\030\002 \001(\003B\003\340A\003\022\026\n" + "\006region\030\003 \001(\tB\006\340A\002\340A\005\022p\n" - + "\035regional_inventory_attributes\030\t \001" - + "(\0132D.google.shopping.merchant.inventorie" - + "s.v1.RegionalInventoryAttributesB\003\340A\001:u\352Ar\n" - + ",merchantapi.googleapis.com/RegionalI" - + "nventory\022Baccounts/{account}/products/{product}/regionalInventories/{region}\"\215\001\n" + + "\035regional_inventory_attributes\030\t \001(\0132D.g" + + "oogle.shopping.merchant.inventories.v1.RegionalInventoryAttributesB\003\340A\001:u\352Ar\n" + + ",merchantapi.googleapis.com/RegionalInvento" + + "ry\022Baccounts/{account}/products/{product}/regionalInventories/{region}\"\215\001\n" + "\036ListRegionalInventoriesRequest\022D\n" + "\006parent\030\001 \001(" + "\tB4\340A\002\372A.\022,merchantapi.googleapis.com/RegionalInventory\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\224\001\n" + "\037ListRegionalInventoriesResponse\022X\n" - + "\024regional_inventories\030\001" - + " \003(\0132:.google.shopping.merchant.inventories.v1.RegionalInventory\022\027\n" + + "\024regional_inventories\030\001 \003(\013" + + "2:.google.shopping.merchant.inventories.v1.RegionalInventory\022\027\n" + "\017next_page_token\030\002 \001(\t\"\303\001\n" + "\036InsertRegionalInventoryRequest\022D\n" + "\006parent\030\001 \001(" + "\tB4\340A\002\372A.\022,merchantapi.googleapis.com/RegionalInventory\022[\n" - + "\022regional_inventory\030\002 \001(\0132:.google.shoppi" - + "ng.merchant.inventories.v1.RegionalInventoryB\003\340A\002\"d\n" + + "\022regional_inventory\030\002 \001(\0132:.google.shopping.mer" + + "chant.inventories.v1.RegionalInventoryB\003\340A\002\"d\n" + "\036DeleteRegionalInventoryRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",merchantapi.googleapis.com/RegionalInventory2\277\006\n" + "\030RegionalInventoryService\022\201\002\n" - + "\027ListRegionalInventories\022G.google.shopping.merchant.inve" - + "ntories.v1.ListRegionalInventoriesRequest\032H.google.shopping.merchant.inventories" - + ".v1.ListRegionalInventoriesResponse\"S\332A\006" - + "parent\202\323\344\223\002D\022B/inventories/v1/{parent=ac" - + "counts/*/products/*}/regionalInventories\022\205\002\n" - + "\027InsertRegionalInventory\022G.google.shopping.merchant.inventories.v1.InsertReg" - + "ionalInventoryRequest\032:.google.shopping.merchant.inventories.v1.RegionalInventor" - + "y\"e\202\323\344\223\002_\"I/inventories/v1/{parent=accou" - + "nts/*/products/*}/regionalInventories:insert:\022regional_inventory\022\315\001\n" - + "\027DeleteRegionalInventory\022G.google.shopping.merchant." - + "inventories.v1.DeleteRegionalInventoryRe" - + "quest\032\026.google.protobuf.Empty\"Q\332A\004name\202\323" - + "\344\223\002D*B/inventories/v1/{name=accounts/*/p" - + "roducts/*/regionalInventories/*}\032G\312A\032mer" - + "chantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\236\002\n" - + "+com.google.shopping.merchant.inventories.v1B\026Regio" - + "nalInventoryProtoP\001ZScloud.google.com/go/shopping/merchant/inventories/apiv1/inv" - + "entoriespb;inventoriespb\252\002\'Google.Shoppi" - + "ng.Merchant.Inventories.V1\312\002\'Google\\Shop" - + "ping\\Merchant\\Inventories\\V1\352\002+Google::S" - + "hopping::Merchant::Inventories::V1b\006proto3" + + "\027ListRegionalInventories\022G.google.shopping.merchant.inventorie" + + "s.v1.ListRegionalInventoriesRequest\032H.google.shopping.merchant.inventories.v1.Li" + + "stRegionalInventoriesResponse\"S\332A\006parent" + + "\202\323\344\223\002D\022B/inventories/v1/{parent=accounts/*/products/*}/regionalInventories\022\205\002\n" + + "\027InsertRegionalInventory\022G.google.shopping" + + ".merchant.inventories.v1.InsertRegionalInventoryRequest\032:.google.shopping.mercha" + + "nt.inventories.v1.RegionalInventory\"e\202\323\344" + + "\223\002_\"I/inventories/v1/{parent=accounts/*/" + + "products/*}/regionalInventories:insert:\022regional_inventory\022\315\001\n" + + "\027DeleteRegionalInventory\022G.google.shopping.merchant.invent" + + "ories.v1.DeleteRegionalInventoryRequest\032" + + "\026.google.protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B" + + "/inventories/v1/{name=accounts/*/product" + + "s/*/regionalInventories/*}\032G\312A\032merchanta" + + "pi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\236\002\n" + + "+com.google.shopping.merchant.inventories.v1B\026RegionalInv" + + "entoryProtoP\001ZScloud.google.com/go/shopping/merchant/inventories/apiv1/inventori" + + "espb;inventoriespb\252\002\'Google.Shopping.Mer" + + "chant.Inventories.V1\312\002\'Google\\Shopping\\M" + + "erchant\\Inventories\\V1\352\002+Google::Shoppin" + + "g::Merchant::Inventories::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -142,7 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_inventories_v1_RegionalInventory_descriptor, new java.lang.String[] { - "Name", "Account", "Region", "RegionalInventoryAttributes", + "Name", "Base64EncodedName", "Account", "Region", "RegionalInventoryAttributes", }); internal_static_google_shopping_merchant_inventories_v1_ListRegionalInventoriesRequest_descriptor = getDescriptor().getMessageType(1); diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/inventories_common.proto b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/inventories_common.proto index eab57d2e028f..30f0ada91f33 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/inventories_common.proto +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/inventories_common.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. @@ -145,6 +145,60 @@ message LocalInventoryAttributes { // bytes. optional string instore_product_location = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional list of loyalty programs containing applicable + // loyalty member prices for this product at this store. + // + // This field is used to show store-specific member prices on Local + // Inventory Ads (LIA). + // + // To use this, the loyalty program must be configured in Google Merchant + // Center. The benefits provided must match the merchant's website and be + // clear to members. This is only applicable for merchants in supported + // countries. + // + // See [Loyalty program](https://support.google.com/merchants/answer/12922446) + // for details on supported countries and loyalty program configuration. + // For local inventory specific details, see the [Local inventory data + // specification](https://support.google.com/merchants/answer/3061342). + repeated InventoryLoyaltyProgram loyalty_programs = 10 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A message that represents loyalty program. +message InventoryLoyaltyProgram { + // The label of the loyalty program. This is an internal label that uniquely + // identifies the relationship between a business entity and a loyalty + // program entity. The label must be provided if there are multiple loyalty + // programs available for the merchant, so that the system can associate + // the assets below (for example, price and points) with the correct business. + // The corresponding program must be linked to the Merchant Center account. + optional string program_label = 1; + + // The label of the tier within the loyalty program. + // Must match one of the labels within the program. + optional string tier_label = 2; + + // The price for members of the given tier, that is, the instant discount + // price. Must be smaller or equal to the regular price. + optional google.shopping.type.Price price = 3; + + // The cashback that can be used for future purchases. + optional google.shopping.type.Price cashback_for_future_use = 4; + + // The amount of loyalty points earned on a purchase. + optional int64 loyalty_points = 5; + + // A date range during which the item is eligible for member price. If not + // specified, the member price is always applicable. The date range is + // represented by a pair of ISO 8601 dates separated by a space, + // comma, or slash. + optional google.type.Interval member_price_effective_interval = 6; + + // The label of the shipping benefit. If the field has value, this offer has + // loyalty shipping benefit. If the field value isn't provided, the item is + // not eligible for loyalty shipping for the given loyalty tier. + optional string shipping_label = 7; } // Regional inventory attributes. @@ -181,4 +235,26 @@ message RegionalInventoryAttributes { // product in this region. optional Availability availability = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional list of loyalty programs containing applicable + // loyalty member prices for this product in this region. + // + // This field is used to show region-specific member prices on Product + // Listing Ads (PLA). + // + // To use this, the loyalty program must be configured in Google Merchant + // Center, and the merchant must be using the Regional Availability and + // Pricing (RAAP) feature. The benefits provided must match the merchant's + // website and be clear to members. This is only applicable for merchants in + // supported countries. + // + // See [Loyalty program](https://support.google.com/merchants/answer/12922446) + // for details on supported countries and loyalty program configuration. + // Also see [Regional availability and + // pricing](https://support.google.com/merchants/answer/14644124) and [How to + // set up regional member + // pricing](https://support.google.com/merchants/answer/16388178) for more + // information. + repeated InventoryLoyaltyProgram loyalty_programs = 5 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/localinventory.proto b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/localinventory.proto index 5816a6f4bebf..e4bb194056a0 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/localinventory.proto +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/localinventory.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. @@ -99,8 +99,51 @@ message LocalInventory { // Output only. The name of the `LocalInventory` resource. // Format: // `accounts/{account}/products/{product}/localInventories/{store_code}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + // encoded string (RFC 4648 Section 5). The decoded string must result + // in the `content_language~feed_label~offer_id` structure. This encoding + // MUST be used if any part of the product identifier (like `offer_id`) + // contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123` for + // `store_code` "store123", the `{product}` segment must be the + // base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. + // The full resource name for the local inventory would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The unpadded base64url encoded name of the `LocalInventory` + // resource. Format: + // `accounts/{account}/products/{product}/localInventories/{store_code}` + // where the `{product}` segment is the unpadded base64url encoded value of + // the identifier of the form `content_language~feed_label~offer_id`. Example: + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123` for + // the decoded product ID `en~US~sku/123` and `store_code` "store123". + // Can be used directly as input to the API methods that require the local + // product identifier within the local inventory name to be encoded if it + // contains special characters, for example + // [`GetLocalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.localInventories/get). + string base64_encoded_name = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The account that owns the product. This field will be ignored // if set by the client. int64 account = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -125,6 +168,36 @@ message ListLocalInventoriesRequest { // Required. The `name` of the parent product to list local inventories for. // Format: // `accounts/{account}/products/{product}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + // encoded string (RFC 4648 Section 5). The decoded string must result + // in the `content_language~feed_label~offer_id` structure. This encoding + // MUST be used if any part of the product identifier (like `offer_id`) + // contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123`, the + // `{product}` segment must be the unpadded base64url encoding of this + // string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + // for the product would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -164,6 +237,36 @@ message ListLocalInventoriesResponse { message InsertLocalInventoryRequest { // Required. The account and product where this inventory will be inserted. // Format: `accounts/{account}/products/{product}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + // encoded string (RFC 4648 Section 5). The decoded string must result + // in the `content_language~feed_label~offer_id` structure. This encoding + // MUST be used if any part of the product identifier (like `offer_id`) + // contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123`, the + // `{product}` segment must be the unpadded base64url encoding of this + // string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + // for the product would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -182,6 +285,37 @@ message DeleteLocalInventoryRequest { // Required. The name of the local inventory for the given product to delete. // Format: // `accounts/{account}/products/{product}/localInventories/{store_code}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an unpadded base64url + // encoded string (RFC 4648 Section 5). The decoded string must result + // in the `content_language~feed_label~offer_id` structure. This encoding + // MUST be used if any part of the product identifier (like `offer_id`) + // contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123` for + // `store_code` "store123", the `{product}` segment must be the + // unpadded base64url encoding of this string, which is + // `ZW5-VVN-c2t1LzEyMw`. The full resource name for the local + // inventory would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw/localInventories/store123`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/regionalinventory.proto b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/regionalinventory.proto index 67805030a971..5a894df83eff 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/regionalinventory.proto +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/proto/google/shopping/merchant/inventories/v1/regionalinventory.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. @@ -96,9 +96,54 @@ message RegionalInventory { // Output only. The name of the `RegionalInventory` resource. // Format: - // `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}` + // `accounts/{account}/products/{product}/regionalInventories/{region}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an + // **unpadded base64url** encoded string (RFC 4648 Section 5). The + // decoded string + // must result in the `content_language~feed_label~offer_id` structure. + // This encoding MUST be used if any part of the product identifier + // (like `offer_id`) contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123` for + // `region` "region123", the `{product}` segment must be the + // unpadded base64url encoding of this string, which is + // `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + // inventory would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The unpadded base64url encoded name of the `RegionalInventory` + // resource. Format: + // `accounts/{account}/products/{product}/regionalInventories/{region}` + // where the `{product}` segment is the unpadded base64url encoded value of + // the identifier of the form `content_language~feed_label~offer_id`. Example: + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123` + // for the decoded product ID `en~US~sku/123` and `region` "region123". + // Can be used directly as input to the API methods that require the product + // identifier within the regional inventory name to be encoded if it contains + // special characters, for example + // [`GetRegionalInventory`](https://developers.google.com/merchant/api/reference/rest/inventories_v1/accounts.products.regionalInventories/get). + string base64_encoded_name = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The account that owns the product. This field will be ignored // if set by the client. int64 account = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -121,6 +166,37 @@ message RegionalInventory { message ListRegionalInventoriesRequest { // Required. The `name` of the parent product to list `RegionalInventory` // resources for. Format: `accounts/{account}/products/{product}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an + // **unpadded base64url** encoded string (RFC 4648 Section 5). The + // decoded string + // must result in the `content_language~feed_label~offer_id` structure. + // This encoding MUST be used if any part of the product identifier (like + // `offer_id`) contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123`, the + // `{product}` segment must be the unpadded base64url encoding of this + // string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + // for the product would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -160,6 +236,37 @@ message ListRegionalInventoriesResponse { message InsertRegionalInventoryRequest { // Required. The account and product where this inventory will be inserted. // Format: `accounts/{account}/products/{product}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an + // **unpadded base64url** encoded string (RFC 4648 Section 5). The + // decoded string + // must result in the `content_language~feed_label~offer_id` structure. + // This encoding MUST be used if any part of the product identifier (like + // `offer_id`) contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123`, the + // `{product}` segment must be the unpadded base64url encoding of this + // string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name + // for the product would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -179,6 +286,38 @@ message DeleteRegionalInventoryRequest { // Required. The name of the `RegionalInventory` resource to delete. // Format: // `accounts/{account}/products/{product}/regionalInventories/{region}` + // + // The `{product}` segment is a unique identifier for the product. + // This identifier must be unique within a merchant account and generally + // follows the structure: `content_language~feed_label~offer_id`. Example: + // `en~US~sku123` For legacy local products, the structure is: + // `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` + // + // The format of the `{product}` segment in the URL is automatically detected + // by the server, supporting two options: + // + // 1. **Encoded Format**: The `{product}` segment is an + // **unpadded base64url** encoded string (RFC 4648 Section 5). The + // decoded string + // must result in the `content_language~feed_label~offer_id` structure. + // This encoding MUST be used if any part of the product identifier (like + // `offer_id`) contains characters such as `/`, `%`, or `~`. + // * Example: To represent the product ID `en~US~sku/123` for + // `region` "region123", the `{product}` segment must be the + // unpadded base64url encoding of this string, which is + // `ZW5-VVN-c2t1LzEyMw`. The full resource name for the regional + // inventory would be + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw/regionalInventories/region123`. + // + // 2. **Plain Format**: The `{product}` segment is the tilde-separated string + // `content_language~feed_label~offer_id`. This format is suitable only + // when `content_language`, `feed_label`, and `offer_id` do not contain + // URL-problematic characters like `/`, `%`, or `~`. + // + // We recommend using the **Encoded Format** for all product IDs to ensure + // correct parsing, especially those containing special characters. The + // presence of tilde (`~`) characters in the `{product}` segment is used to + // differentiate between the two formats. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml b/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml index d52c2dc79904..8d0d80e1258c 100644 --- a/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-lfp/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-lfp/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/lfp/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index ad451cb2c9f7..8ca46b2b5e20 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-lfp - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.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-shopping-merchant-notifications/.OwlBot-hermetic.yaml b/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml index 12a56a2d6063..7f4bbbdc24c2 100644 --- a/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-notifications/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-notifications/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/notifications/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index 56730d841812..bea259bd48f5 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-notifications - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.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-shopping-merchant-product-studio/.OwlBot-hermetic.yaml b/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml index fc5f970ba6df..92eb584e5bae 100644 --- a/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-product-studio/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-product-studio/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 0e61bc183178..fb090a93ef1a 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-productstudio - 0.28.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.28.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.28.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.30.0" ``` ## Authentication @@ -158,7 +158,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.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/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-shopping-merchant-products/.OwlBot-hermetic.yaml b/java-shopping-merchant-products/.OwlBot-hermetic.yaml index 7c93c77676bf..a1b39aa14f9b 100644 --- a/java-shopping-merchant-products/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-products/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-products/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-products/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/products/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 47005bb41700..c9e3962d3995 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-products - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.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-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java index a2cc9a0dfedc..ebdc6573672b 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java @@ -462,8 +462,9 @@ public final UnaryCallable updateProduc * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the `{productInput}` segment - * must be the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full - * resource name for the product would be `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The + * full resource name for the product would be + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. *

              2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string `content_language~feed_label~offer_id`. This format is suitable only when * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters @@ -472,9 +473,6 @@ public final UnaryCallable updateProduc * correct parsing, especially those containing special characters. The presence of tilde * (`~`) characters in the `{productInput}` segment is used to differentiate between the two * formats. - *

              Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteProductInput(ProductInputName name) { @@ -521,8 +519,9 @@ public final void deleteProductInput(ProductInputName name) { * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the `{productInput}` segment - * must be the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full - * resource name for the product would be `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The + * full resource name for the product would be + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. *

              2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string `content_language~feed_label~offer_id`. This format is suitable only when * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters @@ -531,9 +530,6 @@ public final void deleteProductInput(ProductInputName name) { * correct parsing, especially those containing special characters. The presence of tilde * (`~`) characters in the `{productInput}` segment is used to differentiate between the two * formats. - *

              Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteProductInput(String name) { diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java index f6cfb2ab70ed..4ae92b0afc5e 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java @@ -245,8 +245,8 @@ public ProductsServiceStub getStub() { * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the `{product}` segment must be - * the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource - * name for the product would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full + * resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. *

              2. **Plain Format**: The `{product}` segment is the tilde-separated * string `content_language~feed_label~offer_id`. This format is suitable only when * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters @@ -300,8 +300,8 @@ public final Product getProduct(ProductName name) { * `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of * the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the `{product}` segment must be - * the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource - * name for the product would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full + * resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. *

              2. **Plain Format**: The `{product}` segment is the tilde-separated * string `content_language~feed_label~offer_id`. This format is suitable only when * `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientHttpJsonTest.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientHttpJsonTest.java index c5d27e7c0a10..cbdff2fd784d 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientHttpJsonTest.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientHttpJsonTest.java @@ -80,7 +80,9 @@ public void insertProductInputTest() throws Exception { ProductInput expectedResponse = ProductInput.newBuilder() .setName(ProductInputName.of("[ACCOUNT]", "[PRODUCTINPUT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setProduct("product-309474065") + .setBase64EncodedProduct("base64EncodedProduct1170417456") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") @@ -142,7 +144,9 @@ public void updateProductInputTest() throws Exception { ProductInput expectedResponse = ProductInput.newBuilder() .setName(ProductInputName.of("[ACCOUNT]", "[PRODUCTINPUT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setProduct("product-309474065") + .setBase64EncodedProduct("base64EncodedProduct1170417456") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") @@ -156,7 +160,9 @@ public void updateProductInputTest() throws Exception { ProductInput productInput = ProductInput.newBuilder() .setName(ProductInputName.of("[ACCOUNT]", "[PRODUCTINPUT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setProduct("product-309474065") + .setBase64EncodedProduct("base64EncodedProduct1170417456") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") @@ -196,7 +202,9 @@ public void updateProductInputExceptionTest() throws Exception { ProductInput productInput = ProductInput.newBuilder() .setName(ProductInputName.of("[ACCOUNT]", "[PRODUCTINPUT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setProduct("product-309474065") + .setBase64EncodedProduct("base64EncodedProduct1170417456") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientTest.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientTest.java index 54b5fc3b78ec..be35af1c8087 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientTest.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClientTest.java @@ -84,7 +84,9 @@ public void insertProductInputTest() throws Exception { ProductInput expectedResponse = ProductInput.newBuilder() .setName(ProductInputName.of("[ACCOUNT]", "[PRODUCTINPUT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setProduct("product-309474065") + .setBase64EncodedProduct("base64EncodedProduct1170417456") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") @@ -142,7 +144,9 @@ public void updateProductInputTest() throws Exception { ProductInput expectedResponse = ProductInput.newBuilder() .setName(ProductInputName.of("[ACCOUNT]", "[PRODUCTINPUT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setProduct("product-309474065") + .setBase64EncodedProduct("base64EncodedProduct1170417456") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientHttpJsonTest.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientHttpJsonTest.java index 2580e352ce3d..322861d210ab 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientHttpJsonTest.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientHttpJsonTest.java @@ -82,6 +82,7 @@ public void getProductTest() throws Exception { Product expectedResponse = Product.newBuilder() .setName(ProductName.of("[ACCOUNT]", "[PRODUCT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") @@ -136,6 +137,7 @@ public void getProductTest2() throws Exception { Product expectedResponse = Product.newBuilder() .setName(ProductName.of("[ACCOUNT]", "[PRODUCT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientTest.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientTest.java index 0490731fa7e0..3fc52b71c29d 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientTest.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/test/java/com/google/shopping/merchant/products/v1/ProductsServiceClientTest.java @@ -85,6 +85,7 @@ public void getProductTest() throws Exception { Product expectedResponse = Product.newBuilder() .setName(ProductName.of("[ACCOUNT]", "[PRODUCT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") @@ -133,6 +134,7 @@ public void getProductTest2() throws Exception { Product expectedResponse = Product.newBuilder() .setName(ProductName.of("[ACCOUNT]", "[PRODUCT]").toString()) + .setBase64EncodedName("base64EncodedName-1991168022") .setLegacyLocal(true) .setOfferId("offerId-1548813161") .setContentLanguage("contentLanguage810066673") diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequest.java index 39ed16259a64..2105fc5674d9 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequest.java @@ -99,10 +99,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -114,10 +114,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * @@ -162,10 +158,10 @@ public java.lang.String getName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -177,10 +173,6 @@ public java.lang.String getName() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * @@ -629,10 +621,10 @@ public Builder mergeFrom( * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -644,10 +636,6 @@ public Builder mergeFrom( * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * @@ -691,10 +679,10 @@ public java.lang.String getName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -706,10 +694,6 @@ public java.lang.String getName() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * @@ -753,10 +737,10 @@ public com.google.protobuf.ByteString getNameBytes() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -768,10 +752,6 @@ public com.google.protobuf.ByteString getNameBytes() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * @@ -814,10 +794,10 @@ public Builder setName(java.lang.String value) { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -829,10 +809,6 @@ public Builder setName(java.lang.String value) { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * @@ -871,10 +847,10 @@ public Builder clearName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -886,10 +862,6 @@ public Builder clearName() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequestOrBuilder.java index 383b4422dcd1..c01cee5e33cd 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/DeleteProductInputRequestOrBuilder.java @@ -49,10 +49,10 @@ public interface DeleteProductInputRequestOrBuilder * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -64,10 +64,6 @@ public interface DeleteProductInputRequestOrBuilder * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * @@ -101,10 +97,10 @@ public interface DeleteProductInputRequestOrBuilder * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productInput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productInput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productInput}` segment is the tilde-separated * string @@ -116,10 +112,6 @@ public interface DeleteProductInputRequestOrBuilder * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productInput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequest.java index 0bf5337cd1b1..fc6b1b074a03 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequest.java @@ -97,10 +97,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only @@ -158,10 +158,10 @@ public java.lang.String getName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only @@ -532,10 +532,10 @@ public Builder mergeFrom( * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only @@ -592,10 +592,10 @@ public java.lang.String getName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only @@ -652,10 +652,10 @@ public com.google.protobuf.ByteString getNameBytes() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only @@ -711,10 +711,10 @@ public Builder setName(java.lang.String value) { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only @@ -766,10 +766,10 @@ public Builder clearName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequestOrBuilder.java index 4213a9972466..41a2cb832537 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/GetProductRequestOrBuilder.java @@ -48,10 +48,10 @@ public interface GetProductRequestOrBuilder * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only @@ -98,10 +98,10 @@ public interface GetProductRequestOrBuilder * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{product}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{product}` segment must be the unpadded base64url encoding of this + * string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{product}` segment is the tilde-separated string * `content_language~feed_label~offer_id`. This format is suitable only diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/Product.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/Product.java index c251a04cb141..b62bdc146fe9 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/Product.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/Product.java @@ -65,6 +65,7 @@ private Product(com.google.protobuf.GeneratedMessage.Builder builder) { private Product() { name_ = ""; + base64EncodedName_ = ""; offerId_ = ""; contentLanguage_ = ""; feedLabel_ = ""; @@ -159,6 +160,77 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int BASE64_ENCODED_NAME_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *

              +   * Output only. The **unpadded base64url encoded name** of the product.
              +   * Format:
              +   * `accounts/{account}/products/{product}` where the last
              +   * section `product` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +   * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +   * as input to the API methods that require the product name to be encoded if
              +   * it contains special characters, for example
              +   * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +   * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + @java.lang.Override + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the product.
              +   * Format:
              +   * `accounts/{account}/products/{product}` where the last
              +   * section `product` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +   * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +   * as input to the API methods that require the product name to be encoded if
              +   * it contains special characters, for example
              +   * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +   * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int LEGACY_LOCAL_FIELD_NUMBER = 11; private boolean legacyLocal_ = false; @@ -815,6 +887,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(13, getProductAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, base64EncodedName_); + } getUnknownFields().writeTo(output); } @@ -857,6 +932,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getProductAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, base64EncodedName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -874,6 +952,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.shopping.merchant.products.v1.Product) obj; if (!getName().equals(other.getName())) return false; + if (!getBase64EncodedName().equals(other.getBase64EncodedName())) return false; if (getLegacyLocal() != other.getLegacyLocal()) return false; if (!getOfferId().equals(other.getOfferId())) return false; if (!getContentLanguage().equals(other.getContentLanguage())) return false; @@ -909,6 +988,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + BASE64_ENCODED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBase64EncodedName().hashCode(); hash = (37 * hash) + LEGACY_LOCAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLegacyLocal()); hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; @@ -1104,6 +1185,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + base64EncodedName_ = ""; legacyLocal_ = false; offerId_ = ""; contentLanguage_ = ""; @@ -1121,7 +1203,7 @@ public Builder clear() { customAttributes_ = null; customAttributesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); productStatus_ = null; if (productStatusBuilder_ != null) { productStatusBuilder_.dispose(); @@ -1170,9 +1252,9 @@ public com.google.shopping.merchant.products.v1.Product buildPartial() { private void buildPartialRepeatedFields( com.google.shopping.merchant.products.v1.Product result) { if (customAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { customAttributes_ = java.util.Collections.unmodifiableList(customAttributes_); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } result.customAttributes_ = customAttributes_; } else { @@ -1186,38 +1268,41 @@ private void buildPartial0(com.google.shopping.merchant.products.v1.Product resu result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.legacyLocal_ = legacyLocal_; + result.base64EncodedName_ = base64EncodedName_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.offerId_ = offerId_; + result.legacyLocal_ = legacyLocal_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.contentLanguage_ = contentLanguage_; + result.offerId_ = offerId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.feedLabel_ = feedLabel_; + result.contentLanguage_ = contentLanguage_; } if (((from_bitField0_ & 0x00000020) != 0)) { + result.feedLabel_ = feedLabel_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.dataSource_ = dataSource_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.versionNumber_ = versionNumber_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.productAttributes_ = productAttributesBuilder_ == null ? productAttributes_ : productAttributesBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.productStatus_ = productStatusBuilder_ == null ? productStatus_ : productStatusBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.automatedDiscounts_ = automatedDiscountsBuilder_ == null ? automatedDiscounts_ @@ -1245,27 +1330,32 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.Product other) bitField0_ |= 0x00000001; onChanged(); } + if (!other.getBase64EncodedName().isEmpty()) { + base64EncodedName_ = other.base64EncodedName_; + bitField0_ |= 0x00000002; + onChanged(); + } if (other.getLegacyLocal() != false) { setLegacyLocal(other.getLegacyLocal()); } if (!other.getOfferId().isEmpty()) { offerId_ = other.offerId_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getContentLanguage().isEmpty()) { contentLanguage_ = other.contentLanguage_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDataSource().isEmpty()) { dataSource_ = other.dataSource_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasVersionNumber()) { @@ -1278,7 +1368,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.Product other) if (!other.customAttributes_.isEmpty()) { if (customAttributes_.isEmpty()) { customAttributes_ = other.customAttributes_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureCustomAttributesIsMutable(); customAttributes_.addAll(other.customAttributes_); @@ -1291,7 +1381,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.Product other) customAttributesBuilder_.dispose(); customAttributesBuilder_ = null; customAttributes_ = other.customAttributes_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); customAttributesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetCustomAttributesFieldBuilder() @@ -1342,31 +1432,31 @@ public Builder mergeFrom( case 26: { offerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { contentLanguage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { feedLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { dataSource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 56: { versionNumber_ = input.readInt64(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 56 case 74: @@ -1386,29 +1476,35 @@ public Builder mergeFrom( { input.readMessage( internalGetProductStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 82 case 88: { legacyLocal_ = input.readBool(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 88 case 98: { input.readMessage( internalGetAutomatedDiscountsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage( internalGetProductAttributesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 106 + case 122: + { + base64EncodedName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1584,6 +1680,162 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product.
              +     * Format:
              +     * `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +     * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +     * as input to the API methods that require the product name to be encoded if
              +     * it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product.
              +     * Format:
              +     * `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +     * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +     * as input to the API methods that require the product name to be encoded if
              +     * it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product.
              +     * Format:
              +     * `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +     * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +     * as input to the API methods that require the product name to be encoded if
              +     * it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product.
              +     * Format:
              +     * `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +     * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +     * as input to the API methods that require the product name to be encoded if
              +     * it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBase64EncodedName() { + base64EncodedName_ = getDefaultInstance().getBase64EncodedName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product.
              +     * Format:
              +     * `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +     * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +     * as input to the API methods that require the product name to be encoded if
              +     * it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private boolean legacyLocal_; /** @@ -1623,7 +1875,7 @@ public boolean getLegacyLocal() { public Builder setLegacyLocal(boolean value) { legacyLocal_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1643,7 +1895,7 @@ public Builder setLegacyLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLegacyLocal() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); legacyLocal_ = false; onChanged(); return this; @@ -1729,7 +1981,7 @@ public Builder setOfferId(java.lang.String value) { throw new NullPointerException(); } offerId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1752,7 +2004,7 @@ public Builder setOfferId(java.lang.String value) { */ public Builder clearOfferId() { offerId_ = getDefaultInstance().getOfferId(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1780,7 +2032,7 @@ public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); offerId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1856,7 +2108,7 @@ public Builder setContentLanguage(java.lang.String value) { throw new NullPointerException(); } contentLanguage_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1876,7 +2128,7 @@ public Builder setContentLanguage(java.lang.String value) { */ public Builder clearContentLanguage() { contentLanguage_ = getDefaultInstance().getContentLanguage(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1901,7 +2153,7 @@ public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); contentLanguage_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1983,7 +2235,7 @@ public Builder setFeedLabel(java.lang.String value) { throw new NullPointerException(); } feedLabel_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2005,7 +2257,7 @@ public Builder setFeedLabel(java.lang.String value) { */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2032,7 +2284,7 @@ public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); feedLabel_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2102,7 +2354,7 @@ public Builder setDataSource(java.lang.String value) { throw new NullPointerException(); } dataSource_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2120,7 +2372,7 @@ public Builder setDataSource(java.lang.String value) { */ public Builder clearDataSource() { dataSource_ = getDefaultInstance().getDataSource(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2143,7 +2395,7 @@ public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); dataSource_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2175,7 +2427,7 @@ public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasVersionNumber() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2233,7 +2485,7 @@ public long getVersionNumber() { public Builder setVersionNumber(long value) { versionNumber_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2262,7 +2514,7 @@ public Builder setVersionNumber(long value) { * @return This builder for chaining. */ public Builder clearVersionNumber() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); versionNumber_ = 0L; onChanged(); return this; @@ -2289,7 +2541,7 @@ public Builder clearVersionNumber() { * @return Whether the productAttributes field is set. */ public boolean hasProductAttributes() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2336,7 +2588,7 @@ public Builder setProductAttributes( } else { productAttributesBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2359,7 +2611,7 @@ public Builder setProductAttributes( } else { productAttributesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2378,7 +2630,7 @@ public Builder setProductAttributes( public Builder mergeProductAttributes( com.google.shopping.merchant.products.v1.ProductAttributes value) { if (productAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && productAttributes_ != null && productAttributes_ != com.google.shopping.merchant.products.v1.ProductAttributes @@ -2391,7 +2643,7 @@ public Builder mergeProductAttributes( productAttributesBuilder_.mergeFrom(value); } if (productAttributes_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2409,7 +2661,7 @@ public Builder mergeProductAttributes( *
              */ public Builder clearProductAttributes() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); productAttributes_ = null; if (productAttributesBuilder_ != null) { productAttributesBuilder_.dispose(); @@ -2432,7 +2684,7 @@ public Builder clearProductAttributes() { */ public com.google.shopping.merchant.products.v1.ProductAttributes.Builder getProductAttributesBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetProductAttributesFieldBuilder().getBuilder(); } @@ -2491,10 +2743,10 @@ public Builder clearProductAttributes() { java.util.Collections.emptyList(); private void ensureCustomAttributesIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { customAttributes_ = new java.util.ArrayList(customAttributes_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } @@ -2797,7 +3049,7 @@ public Builder addAllCustomAttributes( public Builder clearCustomAttributes() { if (customAttributesBuilder_ == null) { customAttributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { customAttributesBuilder_.clear(); @@ -2977,7 +3229,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder>( customAttributes_, - ((bitField0_ & 0x00000100) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); customAttributes_ = null; @@ -3007,7 +3259,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * @return Whether the productStatus field is set. */ public boolean hasProductStatus() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3055,7 +3307,7 @@ public Builder setProductStatus(com.google.shopping.merchant.products.v1.Product } else { productStatusBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3079,7 +3331,7 @@ public Builder setProductStatus( } else { productStatusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3099,7 +3351,7 @@ public Builder setProductStatus( public Builder mergeProductStatus( com.google.shopping.merchant.products.v1.ProductStatus value) { if (productStatusBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && productStatus_ != null && productStatus_ != com.google.shopping.merchant.products.v1.ProductStatus.getDefaultInstance()) { @@ -3111,7 +3363,7 @@ public Builder mergeProductStatus( productStatusBuilder_.mergeFrom(value); } if (productStatus_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3130,7 +3382,7 @@ public Builder mergeProductStatus( *
              */ public Builder clearProductStatus() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); productStatus_ = null; if (productStatusBuilder_ != null) { productStatusBuilder_.dispose(); @@ -3154,7 +3406,7 @@ public Builder clearProductStatus() { */ public com.google.shopping.merchant.products.v1.ProductStatus.Builder getProductStatusBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetProductStatusFieldBuilder().getBuilder(); } @@ -3232,7 +3484,7 @@ public Builder clearProductStatus() { * @return Whether the automatedDiscounts field is set. */ public boolean hasAutomatedDiscounts() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3279,7 +3531,7 @@ public Builder setAutomatedDiscounts( } else { automatedDiscountsBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3302,7 +3554,7 @@ public Builder setAutomatedDiscounts( } else { automatedDiscountsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3321,7 +3573,7 @@ public Builder setAutomatedDiscounts( public Builder mergeAutomatedDiscounts( com.google.shopping.merchant.products.v1.AutomatedDiscounts value) { if (automatedDiscountsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && automatedDiscounts_ != null && automatedDiscounts_ != com.google.shopping.merchant.products.v1.AutomatedDiscounts @@ -3334,7 +3586,7 @@ public Builder mergeAutomatedDiscounts( automatedDiscountsBuilder_.mergeFrom(value); } if (automatedDiscounts_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3352,7 +3604,7 @@ public Builder mergeAutomatedDiscounts( *
              */ public Builder clearAutomatedDiscounts() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); automatedDiscounts_ = null; if (automatedDiscountsBuilder_ != null) { automatedDiscountsBuilder_.dispose(); @@ -3375,7 +3627,7 @@ public Builder clearAutomatedDiscounts() { */ public com.google.shopping.merchant.products.v1.AutomatedDiscounts.Builder getAutomatedDiscountsBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetAutomatedDiscountsFieldBuilder().getBuilder(); } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java index 915a5c831084..56d650f4b662 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java @@ -80,6 +80,7 @@ private ProductAttributes() { shippingTransitBusinessDays_ = java.util.Collections.emptyList(); handlingCutoffTimes_ = java.util.Collections.emptyList(); shippingLabel_ = ""; + returnPolicyLabel_ = ""; transitTimeLabel_ = ""; size_ = ""; sizeSystem_ = 0; @@ -10228,8 +10229,9 @@ public com.google.shopping.merchant.products.v1.HandlingCutoffTime getHandlingCu * * *
              -   * The shipping label of the product, used to group product in account-level
              -   * shipping rules.
              +   * The shipping label of the product, used to group products in account-level
              +   * shipping rules. Max. 100 characters. For more information, see
              +   * [Shipping label](https://support.google.com/merchants/answer/6324504).
                  * 
              * * optional string shipping_label = 46; @@ -10245,8 +10247,9 @@ public boolean hasShippingLabel() { * * *
              -   * The shipping label of the product, used to group product in account-level
              -   * shipping rules.
              +   * The shipping label of the product, used to group products in account-level
              +   * shipping rules. Max. 100 characters. For more information, see
              +   * [Shipping label](https://support.google.com/merchants/answer/6324504).
                  * 
              * * optional string shipping_label = 46; @@ -10270,8 +10273,9 @@ public java.lang.String getShippingLabel() { * * *
              -   * The shipping label of the product, used to group product in account-level
              -   * shipping rules.
              +   * The shipping label of the product, used to group products in account-level
              +   * shipping rules. Max. 100 characters. For more information, see
              +   * [Shipping label](https://support.google.com/merchants/answer/6324504).
                  * 
              * * optional string shipping_label = 46; @@ -10291,6 +10295,81 @@ public com.google.protobuf.ByteString getShippingLabelBytes() { } } + public static final int RETURN_POLICY_LABEL_FIELD_NUMBER = 170; + + @SuppressWarnings("serial") + private volatile java.lang.Object returnPolicyLabel_ = ""; + + /** + * + * + *
              +   * The return label of the product, used to group products in account-level
              +   * return policies. Max. 100 characters. For more information, see
              +   * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +   * 
              + * + * optional string return_policy_label = 170; + * + * @return Whether the returnPolicyLabel field is set. + */ + @java.lang.Override + public boolean hasReturnPolicyLabel() { + return ((bitField1_ & 0x00000400) != 0); + } + + /** + * + * + *
              +   * The return label of the product, used to group products in account-level
              +   * return policies. Max. 100 characters. For more information, see
              +   * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +   * 
              + * + * optional string return_policy_label = 170; + * + * @return The returnPolicyLabel. + */ + @java.lang.Override + public java.lang.String getReturnPolicyLabel() { + java.lang.Object ref = returnPolicyLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + returnPolicyLabel_ = s; + return s; + } + } + + /** + * + * + *
              +   * The return label of the product, used to group products in account-level
              +   * return policies. Max. 100 characters. For more information, see
              +   * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +   * 
              + * + * optional string return_policy_label = 170; + * + * @return The bytes for returnPolicyLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReturnPolicyLabelBytes() { + java.lang.Object ref = returnPolicyLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + returnPolicyLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TRANSIT_TIME_LABEL_FIELD_NUMBER = 47; @SuppressWarnings("serial") @@ -10310,7 +10389,7 @@ public com.google.protobuf.ByteString getShippingLabelBytes() { */ @java.lang.Override public boolean hasTransitTimeLabel() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** @@ -10384,7 +10463,7 @@ public com.google.protobuf.ByteString getTransitTimeLabelBytes() { */ @java.lang.Override public boolean hasSize() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00001000) != 0); } /** @@ -10459,7 +10538,7 @@ public com.google.protobuf.ByteString getSizeBytes() { */ @java.lang.Override public boolean hasSizeSystem() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00002000) != 0); } /** @@ -10636,7 +10715,7 @@ public int getSizeTypesValue(int index) { */ @java.lang.Override public boolean hasEnergyEfficiencyClass() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00004000) != 0); } /** @@ -10704,7 +10783,7 @@ public com.google.shopping.merchant.products.v1.EnergyEfficiencyClass getEnergyE */ @java.lang.Override public boolean hasMinEnergyEfficiencyClass() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** @@ -10773,7 +10852,7 @@ public int getMinEnergyEfficiencyClassValue() { */ @java.lang.Override public boolean hasMaxEnergyEfficiencyClass() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** @@ -10839,7 +10918,7 @@ public int getMaxEnergyEfficiencyClassValue() { */ @java.lang.Override public boolean hasUnitPricingMeasure() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** @@ -10897,7 +10976,7 @@ public com.google.shopping.merchant.products.v1.UnitPricingMeasure getUnitPricin */ @java.lang.Override public boolean hasUnitPricingBaseMeasure() { - return ((bitField1_ & 0x00020000) != 0); + return ((bitField1_ & 0x00040000) != 0); } /** @@ -10956,7 +11035,7 @@ public boolean hasUnitPricingBaseMeasure() { */ @java.lang.Override public boolean hasMultipack() { - return ((bitField1_ & 0x00040000) != 0); + return ((bitField1_ & 0x00080000) != 0); } /** @@ -10996,7 +11075,7 @@ public long getMultipack() { */ @java.lang.Override public boolean hasAdsGrouping() { - return ((bitField1_ & 0x00080000) != 0); + return ((bitField1_ & 0x00100000) != 0); } /** @@ -11140,7 +11219,7 @@ public com.google.protobuf.ByteString getAdsLabelsBytes(int index) { */ @java.lang.Override public boolean hasAdsRedirect() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00200000) != 0); } /** @@ -11209,7 +11288,7 @@ public com.google.protobuf.ByteString getAdsRedirectBytes() { */ @java.lang.Override public boolean hasCostOfGoodsSold() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00400000) != 0); } /** @@ -11414,7 +11493,7 @@ public com.google.protobuf.ByteString getProductHighlightsBytes(int index) { */ @java.lang.Override public boolean hasDisplayAdsId() { - return ((bitField1_ & 0x00400000) != 0); + return ((bitField1_ & 0x00800000) != 0); } /** @@ -11559,7 +11638,7 @@ public com.google.protobuf.ByteString getDisplayAdsSimilarIdsBytes(int index) { */ @java.lang.Override public boolean hasDisplayAdsTitle() { - return ((bitField1_ & 0x00800000) != 0); + return ((bitField1_ & 0x01000000) != 0); } /** @@ -11629,7 +11708,7 @@ public com.google.protobuf.ByteString getDisplayAdsTitleBytes() { */ @java.lang.Override public boolean hasDisplayAdsLink() { - return ((bitField1_ & 0x01000000) != 0); + return ((bitField1_ & 0x02000000) != 0); } /** @@ -11700,7 +11779,7 @@ public com.google.protobuf.ByteString getDisplayAdsLinkBytes() { */ @java.lang.Override public boolean hasDisplayAdsValue() { - return ((bitField1_ & 0x02000000) != 0); + return ((bitField1_ & 0x04000000) != 0); } /** @@ -11806,7 +11885,7 @@ public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { */ @java.lang.Override public boolean hasPickupMethod() { - return ((bitField1_ & 0x04000000) != 0); + return ((bitField1_ & 0x08000000) != 0); } /** @@ -11864,7 +11943,7 @@ public com.google.shopping.merchant.products.v1.PickupMethod getPickupMethod() { */ @java.lang.Override public boolean hasPickupSla() { - return ((bitField1_ & 0x08000000) != 0); + return ((bitField1_ & 0x10000000) != 0); } /** @@ -11924,7 +12003,7 @@ public com.google.shopping.merchant.products.v1.PickupSla getPickupSla() { */ @java.lang.Override public boolean hasLinkTemplate() { - return ((bitField1_ & 0x10000000) != 0); + return ((bitField1_ & 0x20000000) != 0); } /** @@ -11997,7 +12076,7 @@ public com.google.protobuf.ByteString getLinkTemplateBytes() { */ @java.lang.Override public boolean hasMobileLinkTemplate() { - return ((bitField1_ & 0x20000000) != 0); + return ((bitField1_ & 0x40000000) != 0); } /** @@ -12071,7 +12150,7 @@ public com.google.protobuf.ByteString getMobileLinkTemplateBytes() { */ @java.lang.Override public boolean hasCustomLabel0() { - return ((bitField1_ & 0x40000000) != 0); + return ((bitField1_ & 0x80000000) != 0); } /** @@ -12143,7 +12222,7 @@ public com.google.protobuf.ByteString getCustomLabel0Bytes() { */ @java.lang.Override public boolean hasCustomLabel1() { - return ((bitField1_ & 0x80000000) != 0); + return ((bitField2_ & 0x00000001) != 0); } /** @@ -12215,7 +12294,7 @@ public com.google.protobuf.ByteString getCustomLabel1Bytes() { */ @java.lang.Override public boolean hasCustomLabel2() { - return ((bitField2_ & 0x00000001) != 0); + return ((bitField2_ & 0x00000002) != 0); } /** @@ -12287,7 +12366,7 @@ public com.google.protobuf.ByteString getCustomLabel2Bytes() { */ @java.lang.Override public boolean hasCustomLabel3() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000004) != 0); } /** @@ -12359,7 +12438,7 @@ public com.google.protobuf.ByteString getCustomLabel3Bytes() { */ @java.lang.Override public boolean hasCustomLabel4() { - return ((bitField2_ & 0x00000004) != 0); + return ((bitField2_ & 0x00000008) != 0); } /** @@ -12819,7 +12898,7 @@ public com.google.protobuf.ByteString getShoppingAdsExcludedCountriesBytes(int i */ @java.lang.Override public boolean hasExternalSellerId() { - return ((bitField2_ & 0x00000008) != 0); + return ((bitField2_ & 0x00000010) != 0); } /** @@ -12891,7 +12970,7 @@ public com.google.protobuf.ByteString getExternalSellerIdBytes() { */ @java.lang.Override public boolean hasPause() { - return ((bitField2_ & 0x00000010) != 0); + return ((bitField2_ & 0x00000020) != 0); } /** @@ -13122,7 +13201,7 @@ public int getCloudExportAdditionalPropertiesCount() { */ @java.lang.Override public boolean hasVirtualModelLink() { - return ((bitField2_ & 0x00000020) != 0); + return ((bitField2_ & 0x00000040) != 0); } /** @@ -13300,7 +13379,7 @@ public com.google.shopping.merchant.products.v1.ProductCertification getCertific */ @java.lang.Override public boolean hasStructuredTitle() { - return ((bitField2_ & 0x00000040) != 0); + return ((bitField2_ & 0x00000080) != 0); } /** @@ -13358,7 +13437,7 @@ public com.google.shopping.merchant.products.v1.StructuredTitle getStructuredTit */ @java.lang.Override public boolean hasStructuredDescription() { - return ((bitField2_ & 0x00000080) != 0); + return ((bitField2_ & 0x00000100) != 0); } /** @@ -13421,7 +13500,7 @@ public com.google.shopping.merchant.products.v1.StructuredDescription getStructu */ @java.lang.Override public boolean hasAutoPricingMinPrice() { - return ((bitField2_ & 0x00000100) != 0); + return ((bitField2_ & 0x00000200) != 0); } /** @@ -13575,7 +13654,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField2_ & 0x00000008) != 0)) { + if (((bitField2_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, externalSellerId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -13605,7 +13684,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < additionalImageLinks_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 12, additionalImageLinks_.getRaw(i)); } - if (((bitField2_ & 0x00000010) != 0)) { + if (((bitField2_ & 0x00000020) != 0)) { output.writeEnum(13, pause_); } for (int i = 0; i < lifestyleImageLinks_.size(); i++) { @@ -13701,13 +13780,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 46, shippingLabel_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 47, transitTimeLabel_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 48, size_); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { output.writeEnum(49, sizeSystem_); } if (getSizeTypesList().size() > 0) { @@ -13717,34 +13796,34 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < sizeTypes_.size(); i++) { output.writeEnumNoTag(sizeTypes_.getInt(i)); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { output.writeEnum(53, energyEfficiencyClass_); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { output.writeEnum(54, minEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { output.writeEnum(55, maxEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00010000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { output.writeMessage(56, getUnitPricingMeasure()); } - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00040000) != 0)) { output.writeMessage(57, getUnitPricingBaseMeasure()); } - if (((bitField1_ & 0x00040000) != 0)) { + if (((bitField1_ & 0x00080000) != 0)) { output.writeInt64(58, multipack_); } - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 59, adsGrouping_); } for (int i = 0; i < adsLabels_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 60, adsLabels_.getRaw(i)); } - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 61, adsRedirect_); } - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x00400000) != 0)) { output.writeMessage(62, getCostOfGoodsSold()); } for (int i = 0; i < productDetails_.size(); i++) { @@ -13753,37 +13832,37 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < productHighlights_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 64, productHighlights_.getRaw(i)); } - if (((bitField1_ & 0x00400000) != 0)) { + if (((bitField1_ & 0x00800000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 65, displayAdsId_); } for (int i = 0; i < displayAdsSimilarIds_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 66, displayAdsSimilarIds_.getRaw(i)); } - if (((bitField1_ & 0x00800000) != 0)) { + if (((bitField1_ & 0x01000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 67, displayAdsTitle_); } - if (((bitField1_ & 0x01000000) != 0)) { + if (((bitField1_ & 0x02000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 68, displayAdsLink_); } - if (((bitField1_ & 0x02000000) != 0)) { + if (((bitField1_ & 0x04000000) != 0)) { output.writeDouble(69, displayAdsValue_); } for (int i = 0; i < promotionIds_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 70, promotionIds_.getRaw(i)); } - if (((bitField1_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x80000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 71, customLabel0_); } - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField2_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 72, customLabel1_); } - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 73, customLabel2_); } - if (((bitField2_ & 0x00000002) != 0)) { + if (((bitField2_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 74, customLabel3_); } - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 75, customLabel4_); } if (getIncludedDestinationsList().size() > 0) { @@ -13807,16 +13886,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(79, getDisclosureDate()); } - if (((bitField1_ & 0x04000000) != 0)) { + if (((bitField1_ & 0x08000000) != 0)) { output.writeEnum(80, pickupMethod_); } - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x10000000) != 0)) { output.writeEnum(81, pickupSla_); } - if (((bitField1_ & 0x10000000) != 0)) { + if (((bitField1_ & 0x20000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 82, linkTemplate_); } - if (((bitField1_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x40000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 83, mobileLinkTemplate_); } for (int i = 0; i < cloudExportAdditionalProperties_.size(); i++) { @@ -13837,16 +13916,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < certifications_.size(); i++) { output.writeMessage(123, certifications_.get(i)); } - if (((bitField2_ & 0x00000100) != 0)) { + if (((bitField2_ & 0x00000200) != 0)) { output.writeMessage(124, getAutoPricingMinPrice()); } - if (((bitField2_ & 0x00000020) != 0)) { + if (((bitField2_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 130, virtualModelLink_); } - if (((bitField2_ & 0x00000040) != 0)) { + if (((bitField2_ & 0x00000080) != 0)) { output.writeMessage(132, getStructuredTitle()); } - if (((bitField2_ & 0x00000080) != 0)) { + if (((bitField2_ & 0x00000100) != 0)) { output.writeMessage(133, getStructuredDescription()); } for (int i = 0; i < freeShippingThreshold_.size(); i++) { @@ -13876,6 +13955,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < shippingTransitBusinessDays_.size(); i++) { output.writeMessage(144, shippingTransitBusinessDays_.get(i)); } + if (((bitField1_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 170, returnPolicyLabel_); + } getUnknownFields().writeTo(output); } @@ -13885,7 +13967,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField2_ & 0x00000008) != 0)) { + if (((bitField2_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, externalSellerId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -13920,7 +14002,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAdditionalImageLinksList().size(); } - if (((bitField2_ & 0x00000010) != 0)) { + if (((bitField2_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, pause_); } { @@ -14027,13 +14109,13 @@ public int getSerializedSize() { if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(46, shippingLabel_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(47, transitTimeLabel_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(48, size_); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(49, sizeSystem_); } { @@ -14049,26 +14131,26 @@ public int getSerializedSize() { } sizeTypesMemoizedSerializedSize = dataSize; } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(53, energyEfficiencyClass_); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(54, minEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(55, maxEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00010000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(56, getUnitPricingMeasure()); } - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(57, getUnitPricingBaseMeasure()); } - if (((bitField1_ & 0x00040000) != 0)) { + if (((bitField1_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(58, multipack_); } - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(59, adsGrouping_); } { @@ -14079,10 +14161,10 @@ public int getSerializedSize() { size += dataSize; size += 2 * getAdsLabelsList().size(); } - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(61, adsRedirect_); } - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(62, getCostOfGoodsSold()); } for (int i = 0; i < productDetails_.size(); i++) { @@ -14096,7 +14178,7 @@ public int getSerializedSize() { size += dataSize; size += 2 * getProductHighlightsList().size(); } - if (((bitField1_ & 0x00400000) != 0)) { + if (((bitField1_ & 0x00800000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(65, displayAdsId_); } { @@ -14107,13 +14189,13 @@ public int getSerializedSize() { size += dataSize; size += 2 * getDisplayAdsSimilarIdsList().size(); } - if (((bitField1_ & 0x00800000) != 0)) { + if (((bitField1_ & 0x01000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(67, displayAdsTitle_); } - if (((bitField1_ & 0x01000000) != 0)) { + if (((bitField1_ & 0x02000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(68, displayAdsLink_); } - if (((bitField1_ & 0x02000000) != 0)) { + if (((bitField1_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(69, displayAdsValue_); } { @@ -14124,19 +14206,19 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPromotionIdsList().size(); } - if (((bitField1_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x80000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(71, customLabel0_); } - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField2_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(72, customLabel1_); } - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(73, customLabel2_); } - if (((bitField2_ & 0x00000002) != 0)) { + if (((bitField2_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(74, customLabel3_); } - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(75, customLabel4_); } { @@ -14178,16 +14260,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getDisclosureDate()); } - if (((bitField1_ & 0x04000000) != 0)) { + if (((bitField1_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(80, pickupMethod_); } - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(81, pickupSla_); } - if (((bitField1_ & 0x10000000) != 0)) { + if (((bitField1_ & 0x20000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(82, linkTemplate_); } - if (((bitField1_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x40000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(83, mobileLinkTemplate_); } for (int i = 0; i < cloudExportAdditionalProperties_.size(); i++) { @@ -14210,17 +14292,17 @@ public int getSerializedSize() { for (int i = 0; i < certifications_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(123, certifications_.get(i)); } - if (((bitField2_ & 0x00000100) != 0)) { + if (((bitField2_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(124, getAutoPricingMinPrice()); } - if (((bitField2_ & 0x00000020) != 0)) { + if (((bitField2_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(130, virtualModelLink_); } - if (((bitField2_ & 0x00000040) != 0)) { + if (((bitField2_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getStructuredTitle()); } - if (((bitField2_ & 0x00000080) != 0)) { + if (((bitField2_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getStructuredDescription()); } @@ -14269,6 +14351,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 144, shippingTransitBusinessDays_.get(i)); } + if (((bitField1_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(170, returnPolicyLabel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -14465,6 +14550,10 @@ public boolean equals(final java.lang.Object obj) { if (hasShippingLabel()) { if (!getShippingLabel().equals(other.getShippingLabel())) return false; } + if (hasReturnPolicyLabel() != other.hasReturnPolicyLabel()) return false; + if (hasReturnPolicyLabel()) { + if (!getReturnPolicyLabel().equals(other.getReturnPolicyLabel())) return false; + } if (hasTransitTimeLabel() != other.hasTransitTimeLabel()) return false; if (hasTransitTimeLabel()) { if (!getTransitTimeLabel().equals(other.getTransitTimeLabel())) return false; @@ -14825,6 +14914,10 @@ public int hashCode() { hash = (37 * hash) + SHIPPING_LABEL_FIELD_NUMBER; hash = (53 * hash) + getShippingLabel().hashCode(); } + if (hasReturnPolicyLabel()) { + hash = (37 * hash) + RETURN_POLICY_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getReturnPolicyLabel().hashCode(); + } if (hasTransitTimeLabel()) { hash = (37 * hash) + TRANSIT_TIME_LABEL_FIELD_NUMBER; hash = (53 * hash) + getTransitTimeLabel().hashCode(); @@ -15190,6 +15283,7 @@ public Builder clear() { bitField0_ = 0; bitField1_ = 0; bitField2_ = 0; + bitField3_ = 0; identifierExists_ = false; isBundle_ = false; title_ = ""; @@ -15356,6 +15450,7 @@ public Builder clear() { } bitField1_ = (bitField1_ & ~0x00040000); shippingLabel_ = ""; + returnPolicyLabel_ = ""; transitTimeLabel_ = ""; size_ = ""; sizeSystem_ = 0; @@ -15388,7 +15483,7 @@ public Builder clear() { productDetails_ = null; productDetailsBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000008); productHighlights_ = com.google.protobuf.LazyStringArrayList.emptyList(); displayAdsId_ = ""; displayAdsSimilarIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -15417,7 +15512,7 @@ public Builder clear() { cloudExportAdditionalProperties_ = null; cloudExportAdditionalPropertiesBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x02000000); + bitField2_ = (bitField2_ & ~0x04000000); virtualModelLink_ = ""; if (certificationsBuilder_ == null) { certifications_ = java.util.Collections.emptyList(); @@ -15425,7 +15520,7 @@ public Builder clear() { certifications_ = null; certificationsBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x08000000); + bitField2_ = (bitField2_ & ~0x10000000); structuredTitle_ = null; if (structuredTitleBuilder_ != null) { structuredTitleBuilder_.dispose(); @@ -15447,7 +15542,7 @@ public Builder clear() { sustainabilityIncentives_ = null; sustainabilityIncentivesBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x80000000); + bitField3_ = (bitField3_ & ~0x00000001); return this; } @@ -15485,6 +15580,9 @@ public com.google.shopping.merchant.products.v1.ProductAttributes buildPartial() if (bitField2_ != 0) { buildPartial2(result); } + if (bitField3_ != 0) { + buildPartial3(result); + } onBuilt(); return result; } @@ -15557,38 +15655,38 @@ private void buildPartialRepeatedFields( result.handlingCutoffTimes_ = handlingCutoffTimesBuilder_.build(); } if (productDetailsBuilder_ == null) { - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000008) != 0)) { productDetails_ = java.util.Collections.unmodifiableList(productDetails_); - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000008); } result.productDetails_ = productDetails_; } else { result.productDetails_ = productDetailsBuilder_.build(); } if (cloudExportAdditionalPropertiesBuilder_ == null) { - if (((bitField2_ & 0x02000000) != 0)) { + if (((bitField2_ & 0x04000000) != 0)) { cloudExportAdditionalProperties_ = java.util.Collections.unmodifiableList(cloudExportAdditionalProperties_); - bitField2_ = (bitField2_ & ~0x02000000); + bitField2_ = (bitField2_ & ~0x04000000); } result.cloudExportAdditionalProperties_ = cloudExportAdditionalProperties_; } else { result.cloudExportAdditionalProperties_ = cloudExportAdditionalPropertiesBuilder_.build(); } if (certificationsBuilder_ == null) { - if (((bitField2_ & 0x08000000) != 0)) { + if (((bitField2_ & 0x10000000) != 0)) { certifications_ = java.util.Collections.unmodifiableList(certifications_); - bitField2_ = (bitField2_ & ~0x08000000); + bitField2_ = (bitField2_ & ~0x10000000); } result.certifications_ = certifications_; } else { result.certifications_ = certificationsBuilder_.build(); } if (sustainabilityIncentivesBuilder_ == null) { - if (((bitField2_ & 0x80000000) != 0)) { + if (((bitField3_ & 0x00000001) != 0)) { sustainabilityIncentives_ = java.util.Collections.unmodifiableList(sustainabilityIncentives_); - bitField2_ = (bitField2_ & ~0x80000000); + bitField3_ = (bitField3_ & ~0x00000001); } result.sustainabilityIncentives_ = sustainabilityIncentives_; } else { @@ -15807,58 +15905,58 @@ private void buildPartial1(com.google.shopping.merchant.products.v1.ProductAttri to_bitField1_ |= 0x00000200; } if (((from_bitField1_ & 0x00100000) != 0)) { - result.transitTimeLabel_ = transitTimeLabel_; + result.returnPolicyLabel_ = returnPolicyLabel_; to_bitField1_ |= 0x00000400; } if (((from_bitField1_ & 0x00200000) != 0)) { - result.size_ = size_; + result.transitTimeLabel_ = transitTimeLabel_; to_bitField1_ |= 0x00000800; } if (((from_bitField1_ & 0x00400000) != 0)) { - result.sizeSystem_ = sizeSystem_; + result.size_ = size_; to_bitField1_ |= 0x00001000; } if (((from_bitField1_ & 0x00800000) != 0)) { - sizeTypes_.makeImmutable(); - result.sizeTypes_ = sizeTypes_; + result.sizeSystem_ = sizeSystem_; + to_bitField1_ |= 0x00002000; } if (((from_bitField1_ & 0x01000000) != 0)) { - result.energyEfficiencyClass_ = energyEfficiencyClass_; - to_bitField1_ |= 0x00002000; + sizeTypes_.makeImmutable(); + result.sizeTypes_ = sizeTypes_; } if (((from_bitField1_ & 0x02000000) != 0)) { - result.minEnergyEfficiencyClass_ = minEnergyEfficiencyClass_; + result.energyEfficiencyClass_ = energyEfficiencyClass_; to_bitField1_ |= 0x00004000; } if (((from_bitField1_ & 0x04000000) != 0)) { - result.maxEnergyEfficiencyClass_ = maxEnergyEfficiencyClass_; + result.minEnergyEfficiencyClass_ = minEnergyEfficiencyClass_; to_bitField1_ |= 0x00008000; } if (((from_bitField1_ & 0x08000000) != 0)) { + result.maxEnergyEfficiencyClass_ = maxEnergyEfficiencyClass_; + to_bitField1_ |= 0x00010000; + } + if (((from_bitField1_ & 0x10000000) != 0)) { result.unitPricingMeasure_ = unitPricingMeasureBuilder_ == null ? unitPricingMeasure_ : unitPricingMeasureBuilder_.build(); - to_bitField1_ |= 0x00010000; + to_bitField1_ |= 0x00020000; } - if (((from_bitField1_ & 0x10000000) != 0)) { + if (((from_bitField1_ & 0x20000000) != 0)) { result.unitPricingBaseMeasure_ = unitPricingBaseMeasureBuilder_ == null ? unitPricingBaseMeasure_ : unitPricingBaseMeasureBuilder_.build(); - to_bitField1_ |= 0x00020000; - } - if (((from_bitField1_ & 0x20000000) != 0)) { - result.multipack_ = multipack_; to_bitField1_ |= 0x00040000; } if (((from_bitField1_ & 0x40000000) != 0)) { - result.adsGrouping_ = adsGrouping_; + result.multipack_ = multipack_; to_bitField1_ |= 0x00080000; } if (((from_bitField1_ & 0x80000000) != 0)) { - adsLabels_.makeImmutable(); - result.adsLabels_ = adsLabels_; + result.adsGrouping_ = adsGrouping_; + to_bitField1_ |= 0x00100000; } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; @@ -15866,132 +15964,140 @@ private void buildPartial1(com.google.shopping.merchant.products.v1.ProductAttri private void buildPartial2(com.google.shopping.merchant.products.v1.ProductAttributes result) { int from_bitField2_ = bitField2_; - int to_bitField1_ = 0; if (((from_bitField2_ & 0x00000001) != 0)) { - result.adsRedirect_ = adsRedirect_; - to_bitField1_ |= 0x00100000; + adsLabels_.makeImmutable(); + result.adsLabels_ = adsLabels_; } + int to_bitField1_ = 0; if (((from_bitField2_ & 0x00000002) != 0)) { + result.adsRedirect_ = adsRedirect_; + to_bitField1_ |= 0x00200000; + } + if (((from_bitField2_ & 0x00000004) != 0)) { result.costOfGoodsSold_ = costOfGoodsSoldBuilder_ == null ? costOfGoodsSold_ : costOfGoodsSoldBuilder_.build(); - to_bitField1_ |= 0x00200000; + to_bitField1_ |= 0x00400000; } - if (((from_bitField2_ & 0x00000008) != 0)) { + if (((from_bitField2_ & 0x00000010) != 0)) { productHighlights_.makeImmutable(); result.productHighlights_ = productHighlights_; } - if (((from_bitField2_ & 0x00000010) != 0)) { + if (((from_bitField2_ & 0x00000020) != 0)) { result.displayAdsId_ = displayAdsId_; - to_bitField1_ |= 0x00400000; + to_bitField1_ |= 0x00800000; } - if (((from_bitField2_ & 0x00000020) != 0)) { + if (((from_bitField2_ & 0x00000040) != 0)) { displayAdsSimilarIds_.makeImmutable(); result.displayAdsSimilarIds_ = displayAdsSimilarIds_; } - if (((from_bitField2_ & 0x00000040) != 0)) { - result.displayAdsTitle_ = displayAdsTitle_; - to_bitField1_ |= 0x00800000; - } if (((from_bitField2_ & 0x00000080) != 0)) { - result.displayAdsLink_ = displayAdsLink_; + result.displayAdsTitle_ = displayAdsTitle_; to_bitField1_ |= 0x01000000; } if (((from_bitField2_ & 0x00000100) != 0)) { - result.displayAdsValue_ = displayAdsValue_; + result.displayAdsLink_ = displayAdsLink_; to_bitField1_ |= 0x02000000; } if (((from_bitField2_ & 0x00000200) != 0)) { - promotionIds_.makeImmutable(); - result.promotionIds_ = promotionIds_; + result.displayAdsValue_ = displayAdsValue_; + to_bitField1_ |= 0x04000000; } if (((from_bitField2_ & 0x00000400) != 0)) { - result.pickupMethod_ = pickupMethod_; - to_bitField1_ |= 0x04000000; + promotionIds_.makeImmutable(); + result.promotionIds_ = promotionIds_; } if (((from_bitField2_ & 0x00000800) != 0)) { - result.pickupSla_ = pickupSla_; + result.pickupMethod_ = pickupMethod_; to_bitField1_ |= 0x08000000; } if (((from_bitField2_ & 0x00001000) != 0)) { - result.linkTemplate_ = linkTemplate_; + result.pickupSla_ = pickupSla_; to_bitField1_ |= 0x10000000; } if (((from_bitField2_ & 0x00002000) != 0)) { - result.mobileLinkTemplate_ = mobileLinkTemplate_; + result.linkTemplate_ = linkTemplate_; to_bitField1_ |= 0x20000000; } if (((from_bitField2_ & 0x00004000) != 0)) { - result.customLabel0_ = customLabel0_; + result.mobileLinkTemplate_ = mobileLinkTemplate_; to_bitField1_ |= 0x40000000; } if (((from_bitField2_ & 0x00008000) != 0)) { - result.customLabel1_ = customLabel1_; + result.customLabel0_ = customLabel0_; to_bitField1_ |= 0x80000000; } int to_bitField2_ = 0; if (((from_bitField2_ & 0x00010000) != 0)) { - result.customLabel2_ = customLabel2_; + result.customLabel1_ = customLabel1_; to_bitField2_ |= 0x00000001; } if (((from_bitField2_ & 0x00020000) != 0)) { - result.customLabel3_ = customLabel3_; + result.customLabel2_ = customLabel2_; to_bitField2_ |= 0x00000002; } if (((from_bitField2_ & 0x00040000) != 0)) { - result.customLabel4_ = customLabel4_; + result.customLabel3_ = customLabel3_; to_bitField2_ |= 0x00000004; } if (((from_bitField2_ & 0x00080000) != 0)) { + result.customLabel4_ = customLabel4_; + to_bitField2_ |= 0x00000008; + } + if (((from_bitField2_ & 0x00100000) != 0)) { includedDestinations_.makeImmutable(); result.includedDestinations_ = includedDestinations_; } - if (((from_bitField2_ & 0x00100000) != 0)) { + if (((from_bitField2_ & 0x00200000) != 0)) { excludedDestinations_.makeImmutable(); result.excludedDestinations_ = excludedDestinations_; } - if (((from_bitField2_ & 0x00200000) != 0)) { + if (((from_bitField2_ & 0x00400000) != 0)) { shoppingAdsExcludedCountries_.makeImmutable(); result.shoppingAdsExcludedCountries_ = shoppingAdsExcludedCountries_; } - if (((from_bitField2_ & 0x00400000) != 0)) { - result.externalSellerId_ = externalSellerId_; - to_bitField2_ |= 0x00000008; - } if (((from_bitField2_ & 0x00800000) != 0)) { - result.pause_ = pause_; + result.externalSellerId_ = externalSellerId_; to_bitField2_ |= 0x00000010; } if (((from_bitField2_ & 0x01000000) != 0)) { + result.pause_ = pause_; + to_bitField2_ |= 0x00000020; + } + if (((from_bitField2_ & 0x02000000) != 0)) { lifestyleImageLinks_.makeImmutable(); result.lifestyleImageLinks_ = lifestyleImageLinks_; } - if (((from_bitField2_ & 0x04000000) != 0)) { + if (((from_bitField2_ & 0x08000000) != 0)) { result.virtualModelLink_ = virtualModelLink_; - to_bitField2_ |= 0x00000020; + to_bitField2_ |= 0x00000040; } - if (((from_bitField2_ & 0x10000000) != 0)) { + if (((from_bitField2_ & 0x20000000) != 0)) { result.structuredTitle_ = structuredTitleBuilder_ == null ? structuredTitle_ : structuredTitleBuilder_.build(); - to_bitField2_ |= 0x00000040; + to_bitField2_ |= 0x00000080; } - if (((from_bitField2_ & 0x20000000) != 0)) { + if (((from_bitField2_ & 0x40000000) != 0)) { result.structuredDescription_ = structuredDescriptionBuilder_ == null ? structuredDescription_ : structuredDescriptionBuilder_.build(); - to_bitField2_ |= 0x00000080; + to_bitField2_ |= 0x00000100; } - if (((from_bitField2_ & 0x40000000) != 0)) { + if (((from_bitField2_ & 0x80000000) != 0)) { result.autoPricingMinPrice_ = autoPricingMinPriceBuilder_ == null ? autoPricingMinPrice_ : autoPricingMinPriceBuilder_.build(); - to_bitField2_ |= 0x00000100; + to_bitField2_ |= 0x00000200; } result.bitField1_ |= to_bitField1_; result.bitField2_ |= to_bitField2_; } + private void buildPartial3(com.google.shopping.merchant.products.v1.ProductAttributes result) { + int from_bitField3_ = bitField3_; + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.products.v1.ProductAttributes) { @@ -16379,14 +16485,19 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu bitField1_ |= 0x00080000; onChanged(); } + if (other.hasReturnPolicyLabel()) { + returnPolicyLabel_ = other.returnPolicyLabel_; + bitField1_ |= 0x00100000; + onChanged(); + } if (other.hasTransitTimeLabel()) { transitTimeLabel_ = other.transitTimeLabel_; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; onChanged(); } if (other.hasSize()) { size_ = other.size_; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00400000; onChanged(); } if (other.hasSizeSystem()) { @@ -16396,7 +16507,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (sizeTypes_.isEmpty()) { sizeTypes_ = other.sizeTypes_; sizeTypes_.makeImmutable(); - bitField1_ |= 0x00800000; + bitField1_ |= 0x01000000; } else { ensureSizeTypesIsMutable(); sizeTypes_.addAll(other.sizeTypes_); @@ -16423,13 +16534,13 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } if (other.hasAdsGrouping()) { adsGrouping_ = other.adsGrouping_; - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; onChanged(); } if (!other.adsLabels_.isEmpty()) { if (adsLabels_.isEmpty()) { adsLabels_ = other.adsLabels_; - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; } else { ensureAdsLabelsIsMutable(); adsLabels_.addAll(other.adsLabels_); @@ -16438,7 +16549,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } if (other.hasAdsRedirect()) { adsRedirect_ = other.adsRedirect_; - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000002; onChanged(); } if (other.hasCostOfGoodsSold()) { @@ -16448,7 +16559,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (!other.productDetails_.isEmpty()) { if (productDetails_.isEmpty()) { productDetails_ = other.productDetails_; - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000008); } else { ensureProductDetailsIsMutable(); productDetails_.addAll(other.productDetails_); @@ -16461,7 +16572,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu productDetailsBuilder_.dispose(); productDetailsBuilder_ = null; productDetails_ = other.productDetails_; - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000008); productDetailsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetProductDetailsFieldBuilder() @@ -16474,7 +16585,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (!other.productHighlights_.isEmpty()) { if (productHighlights_.isEmpty()) { productHighlights_ = other.productHighlights_; - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000010; } else { ensureProductHighlightsIsMutable(); productHighlights_.addAll(other.productHighlights_); @@ -16483,13 +16594,13 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } if (other.hasDisplayAdsId()) { displayAdsId_ = other.displayAdsId_; - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000020; onChanged(); } if (!other.displayAdsSimilarIds_.isEmpty()) { if (displayAdsSimilarIds_.isEmpty()) { displayAdsSimilarIds_ = other.displayAdsSimilarIds_; - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000040; } else { ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.addAll(other.displayAdsSimilarIds_); @@ -16498,12 +16609,12 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } if (other.hasDisplayAdsTitle()) { displayAdsTitle_ = other.displayAdsTitle_; - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000080; onChanged(); } if (other.hasDisplayAdsLink()) { displayAdsLink_ = other.displayAdsLink_; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; onChanged(); } if (other.hasDisplayAdsValue()) { @@ -16512,7 +16623,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (!other.promotionIds_.isEmpty()) { if (promotionIds_.isEmpty()) { promotionIds_ = other.promotionIds_; - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000400; } else { ensurePromotionIdsIsMutable(); promotionIds_.addAll(other.promotionIds_); @@ -16527,44 +16638,44 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } if (other.hasLinkTemplate()) { linkTemplate_ = other.linkTemplate_; - bitField2_ |= 0x00001000; + bitField2_ |= 0x00002000; onChanged(); } if (other.hasMobileLinkTemplate()) { mobileLinkTemplate_ = other.mobileLinkTemplate_; - bitField2_ |= 0x00002000; + bitField2_ |= 0x00004000; onChanged(); } if (other.hasCustomLabel0()) { customLabel0_ = other.customLabel0_; - bitField2_ |= 0x00004000; + bitField2_ |= 0x00008000; onChanged(); } if (other.hasCustomLabel1()) { customLabel1_ = other.customLabel1_; - bitField2_ |= 0x00008000; + bitField2_ |= 0x00010000; onChanged(); } if (other.hasCustomLabel2()) { customLabel2_ = other.customLabel2_; - bitField2_ |= 0x00010000; + bitField2_ |= 0x00020000; onChanged(); } if (other.hasCustomLabel3()) { customLabel3_ = other.customLabel3_; - bitField2_ |= 0x00020000; + bitField2_ |= 0x00040000; onChanged(); } if (other.hasCustomLabel4()) { customLabel4_ = other.customLabel4_; - bitField2_ |= 0x00040000; + bitField2_ |= 0x00080000; onChanged(); } if (!other.includedDestinations_.isEmpty()) { if (includedDestinations_.isEmpty()) { includedDestinations_ = other.includedDestinations_; includedDestinations_.makeImmutable(); - bitField2_ |= 0x00080000; + bitField2_ |= 0x00100000; } else { ensureIncludedDestinationsIsMutable(); includedDestinations_.addAll(other.includedDestinations_); @@ -16575,7 +16686,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (excludedDestinations_.isEmpty()) { excludedDestinations_ = other.excludedDestinations_; excludedDestinations_.makeImmutable(); - bitField2_ |= 0x00100000; + bitField2_ |= 0x00200000; } else { ensureExcludedDestinationsIsMutable(); excludedDestinations_.addAll(other.excludedDestinations_); @@ -16585,7 +16696,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (!other.shoppingAdsExcludedCountries_.isEmpty()) { if (shoppingAdsExcludedCountries_.isEmpty()) { shoppingAdsExcludedCountries_ = other.shoppingAdsExcludedCountries_; - bitField2_ |= 0x00200000; + bitField2_ |= 0x00400000; } else { ensureShoppingAdsExcludedCountriesIsMutable(); shoppingAdsExcludedCountries_.addAll(other.shoppingAdsExcludedCountries_); @@ -16594,7 +16705,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } if (other.hasExternalSellerId()) { externalSellerId_ = other.externalSellerId_; - bitField2_ |= 0x00400000; + bitField2_ |= 0x00800000; onChanged(); } if (other.hasPause()) { @@ -16603,7 +16714,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (!other.lifestyleImageLinks_.isEmpty()) { if (lifestyleImageLinks_.isEmpty()) { lifestyleImageLinks_ = other.lifestyleImageLinks_; - bitField2_ |= 0x01000000; + bitField2_ |= 0x02000000; } else { ensureLifestyleImageLinksIsMutable(); lifestyleImageLinks_.addAll(other.lifestyleImageLinks_); @@ -16614,7 +16725,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (!other.cloudExportAdditionalProperties_.isEmpty()) { if (cloudExportAdditionalProperties_.isEmpty()) { cloudExportAdditionalProperties_ = other.cloudExportAdditionalProperties_; - bitField2_ = (bitField2_ & ~0x02000000); + bitField2_ = (bitField2_ & ~0x04000000); } else { ensureCloudExportAdditionalPropertiesIsMutable(); cloudExportAdditionalProperties_.addAll(other.cloudExportAdditionalProperties_); @@ -16627,7 +16738,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu cloudExportAdditionalPropertiesBuilder_.dispose(); cloudExportAdditionalPropertiesBuilder_ = null; cloudExportAdditionalProperties_ = other.cloudExportAdditionalProperties_; - bitField2_ = (bitField2_ & ~0x02000000); + bitField2_ = (bitField2_ & ~0x04000000); cloudExportAdditionalPropertiesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetCloudExportAdditionalPropertiesFieldBuilder() @@ -16640,14 +16751,14 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } if (other.hasVirtualModelLink()) { virtualModelLink_ = other.virtualModelLink_; - bitField2_ |= 0x04000000; + bitField2_ |= 0x08000000; onChanged(); } if (certificationsBuilder_ == null) { if (!other.certifications_.isEmpty()) { if (certifications_.isEmpty()) { certifications_ = other.certifications_; - bitField2_ = (bitField2_ & ~0x08000000); + bitField2_ = (bitField2_ & ~0x10000000); } else { ensureCertificationsIsMutable(); certifications_.addAll(other.certifications_); @@ -16660,7 +16771,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu certificationsBuilder_.dispose(); certificationsBuilder_ = null; certifications_ = other.certifications_; - bitField2_ = (bitField2_ & ~0x08000000); + bitField2_ = (bitField2_ & ~0x10000000); certificationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetCertificationsFieldBuilder() @@ -16683,7 +16794,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu if (!other.sustainabilityIncentives_.isEmpty()) { if (sustainabilityIncentives_.isEmpty()) { sustainabilityIncentives_ = other.sustainabilityIncentives_; - bitField2_ = (bitField2_ & ~0x80000000); + bitField3_ = (bitField3_ & ~0x00000001); } else { ensureSustainabilityIncentivesIsMutable(); sustainabilityIncentives_.addAll(other.sustainabilityIncentives_); @@ -16696,7 +16807,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu sustainabilityIncentivesBuilder_.dispose(); sustainabilityIncentivesBuilder_ = null; sustainabilityIncentives_ = other.sustainabilityIncentives_; - bitField2_ = (bitField2_ & ~0x80000000); + bitField3_ = (bitField3_ & ~0x00000001); sustainabilityIncentivesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetSustainabilityIncentivesFieldBuilder() @@ -16735,7 +16846,7 @@ public Builder mergeFrom( case 10: { externalSellerId_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00400000; + bitField2_ |= 0x00800000; break; } // case 10 case 32: @@ -16796,7 +16907,7 @@ public Builder mergeFrom( case 104: { pause_ = input.readEnum(); - bitField2_ |= 0x00800000; + bitField2_ |= 0x01000000; break; } // case 104 case 114: @@ -17010,19 +17121,19 @@ public Builder mergeFrom( case 378: { transitTimeLabel_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; break; } // case 378 case 386: { size_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00200000; + bitField1_ |= 0x00400000; break; } // case 386 case 392: { sizeSystem_ = input.readEnum(); - bitField1_ |= 0x00400000; + bitField1_ |= 0x00800000; break; } // case 392 case 400: @@ -17046,26 +17157,26 @@ public Builder mergeFrom( case 424: { energyEfficiencyClass_ = input.readEnum(); - bitField1_ |= 0x01000000; + bitField1_ |= 0x02000000; break; } // case 424 case 432: { minEnergyEfficiencyClass_ = input.readEnum(); - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; break; } // case 432 case 440: { maxEnergyEfficiencyClass_ = input.readEnum(); - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; break; } // case 440 case 450: { input.readMessage( internalGetUnitPricingMeasureFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x08000000; + bitField1_ |= 0x10000000; break; } // case 450 case 458: @@ -17073,19 +17184,19 @@ public Builder mergeFrom( input.readMessage( internalGetUnitPricingBaseMeasureFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; break; } // case 458 case 464: { multipack_ = input.readInt64(); - bitField1_ |= 0x20000000; + bitField1_ |= 0x40000000; break; } // case 464 case 474: { adsGrouping_ = input.readStringRequireUtf8(); - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; break; } // case 474 case 482: @@ -17098,14 +17209,14 @@ public Builder mergeFrom( case 490: { adsRedirect_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000002; break; } // case 490 case 498: { input.readMessage( internalGetCostOfGoodsSoldFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; break; } // case 498 case 506: @@ -17132,7 +17243,7 @@ public Builder mergeFrom( case 522: { displayAdsId_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000020; break; } // case 522 case 530: @@ -17145,19 +17256,19 @@ public Builder mergeFrom( case 538: { displayAdsTitle_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000080; break; } // case 538 case 546: { displayAdsLink_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; break; } // case 546 case 553: { displayAdsValue_ = input.readDouble(); - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000200; break; } // case 553 case 562: @@ -17170,31 +17281,31 @@ public Builder mergeFrom( case 570: { customLabel0_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00004000; + bitField2_ |= 0x00008000; break; } // case 570 case 578: { customLabel1_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00008000; + bitField2_ |= 0x00010000; break; } // case 578 case 586: { customLabel2_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00010000; + bitField2_ |= 0x00020000; break; } // case 586 case 594: { customLabel3_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00020000; + bitField2_ |= 0x00040000; break; } // case 594 case 602: { customLabel4_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00040000; + bitField2_ |= 0x00080000; break; } // case 602 case 608: @@ -17250,25 +17361,25 @@ public Builder mergeFrom( case 640: { pickupMethod_ = input.readEnum(); - bitField2_ |= 0x00000400; + bitField2_ |= 0x00000800; break; } // case 640 case 648: { pickupSla_ = input.readEnum(); - bitField2_ |= 0x00000800; + bitField2_ |= 0x00001000; break; } // case 648 case 658: { linkTemplate_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00001000; + bitField2_ |= 0x00002000; break; } // case 658 case 666: { mobileLinkTemplate_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00002000; + bitField2_ |= 0x00004000; break; } // case 666 case 674: @@ -17332,27 +17443,27 @@ public Builder mergeFrom( { input.readMessage( internalGetAutoPricingMinPriceFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x40000000; + bitField2_ |= 0x80000000; break; } // case 994 case 1042: { virtualModelLink_ = input.readStringRequireUtf8(); - bitField2_ |= 0x04000000; + bitField2_ |= 0x08000000; break; } // case 1042 case 1058: { input.readMessage( internalGetStructuredTitleFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x10000000; + bitField2_ |= 0x20000000; break; } // case 1058 case 1066: { input.readMessage( internalGetStructuredDescriptionFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x20000000; + bitField2_ |= 0x40000000; break; } // case 1066 case 1082: @@ -17475,6 +17586,12 @@ public Builder mergeFrom( } break; } // case 1154 + case 1362: + { + returnPolicyLabel_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00100000; + break; + } // case 1362 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17495,6 +17612,7 @@ public Builder mergeFrom( private int bitField0_; private int bitField1_; private int bitField2_; + private int bitField3_; private boolean identifierExists_; @@ -27470,8 +27588,9 @@ public Builder removeHandlingCutoffTimes(int index) { * * *
              -     * The shipping label of the product, used to group product in account-level
              -     * shipping rules.
              +     * The shipping label of the product, used to group products in account-level
              +     * shipping rules. Max. 100 characters. For more information, see
              +     * [Shipping label](https://support.google.com/merchants/answer/6324504).
                    * 
              * * optional string shipping_label = 46; @@ -27486,8 +27605,9 @@ public boolean hasShippingLabel() { * * *
              -     * The shipping label of the product, used to group product in account-level
              -     * shipping rules.
              +     * The shipping label of the product, used to group products in account-level
              +     * shipping rules. Max. 100 characters. For more information, see
              +     * [Shipping label](https://support.google.com/merchants/answer/6324504).
                    * 
              * * optional string shipping_label = 46; @@ -27510,8 +27630,9 @@ public java.lang.String getShippingLabel() { * * *
              -     * The shipping label of the product, used to group product in account-level
              -     * shipping rules.
              +     * The shipping label of the product, used to group products in account-level
              +     * shipping rules. Max. 100 characters. For more information, see
              +     * [Shipping label](https://support.google.com/merchants/answer/6324504).
                    * 
              * * optional string shipping_label = 46; @@ -27534,8 +27655,9 @@ public com.google.protobuf.ByteString getShippingLabelBytes() { * * *
              -     * The shipping label of the product, used to group product in account-level
              -     * shipping rules.
              +     * The shipping label of the product, used to group products in account-level
              +     * shipping rules. Max. 100 characters. For more information, see
              +     * [Shipping label](https://support.google.com/merchants/answer/6324504).
                    * 
              * * optional string shipping_label = 46; @@ -27557,8 +27679,9 @@ public Builder setShippingLabel(java.lang.String value) { * * *
              -     * The shipping label of the product, used to group product in account-level
              -     * shipping rules.
              +     * The shipping label of the product, used to group products in account-level
              +     * shipping rules. Max. 100 characters. For more information, see
              +     * [Shipping label](https://support.google.com/merchants/answer/6324504).
                    * 
              * * optional string shipping_label = 46; @@ -27576,8 +27699,9 @@ public Builder clearShippingLabel() { * * *
              -     * The shipping label of the product, used to group product in account-level
              -     * shipping rules.
              +     * The shipping label of the product, used to group products in account-level
              +     * shipping rules. Max. 100 characters. For more information, see
              +     * [Shipping label](https://support.google.com/merchants/answer/6324504).
                    * 
              * * optional string shipping_label = 46; @@ -27596,6 +27720,144 @@ public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object returnPolicyLabel_ = ""; + + /** + * + * + *
              +     * The return label of the product, used to group products in account-level
              +     * return policies. Max. 100 characters. For more information, see
              +     * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +     * 
              + * + * optional string return_policy_label = 170; + * + * @return Whether the returnPolicyLabel field is set. + */ + public boolean hasReturnPolicyLabel() { + return ((bitField1_ & 0x00100000) != 0); + } + + /** + * + * + *
              +     * The return label of the product, used to group products in account-level
              +     * return policies. Max. 100 characters. For more information, see
              +     * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +     * 
              + * + * optional string return_policy_label = 170; + * + * @return The returnPolicyLabel. + */ + public java.lang.String getReturnPolicyLabel() { + java.lang.Object ref = returnPolicyLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + returnPolicyLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * The return label of the product, used to group products in account-level
              +     * return policies. Max. 100 characters. For more information, see
              +     * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +     * 
              + * + * optional string return_policy_label = 170; + * + * @return The bytes for returnPolicyLabel. + */ + public com.google.protobuf.ByteString getReturnPolicyLabelBytes() { + java.lang.Object ref = returnPolicyLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + returnPolicyLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * The return label of the product, used to group products in account-level
              +     * return policies. Max. 100 characters. For more information, see
              +     * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +     * 
              + * + * optional string return_policy_label = 170; + * + * @param value The returnPolicyLabel to set. + * @return This builder for chaining. + */ + public Builder setReturnPolicyLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + returnPolicyLabel_ = value; + bitField1_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The return label of the product, used to group products in account-level
              +     * return policies. Max. 100 characters. For more information, see
              +     * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +     * 
              + * + * optional string return_policy_label = 170; + * + * @return This builder for chaining. + */ + public Builder clearReturnPolicyLabel() { + returnPolicyLabel_ = getDefaultInstance().getReturnPolicyLabel(); + bitField1_ = (bitField1_ & ~0x00100000); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The return label of the product, used to group products in account-level
              +     * return policies. Max. 100 characters. For more information, see
              +     * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +     * 
              + * + * optional string return_policy_label = 170; + * + * @param value The bytes for returnPolicyLabel to set. + * @return This builder for chaining. + */ + public Builder setReturnPolicyLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + returnPolicyLabel_ = value; + bitField1_ |= 0x00100000; + onChanged(); + return this; + } + private java.lang.Object transitTimeLabel_ = ""; /** @@ -27611,7 +27873,7 @@ public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { * @return Whether the transitTimeLabel field is set. */ public boolean hasTransitTimeLabel() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00200000) != 0); } /** @@ -27680,7 +27942,7 @@ public Builder setTransitTimeLabel(java.lang.String value) { throw new NullPointerException(); } transitTimeLabel_ = value; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; onChanged(); return this; } @@ -27699,7 +27961,7 @@ public Builder setTransitTimeLabel(java.lang.String value) { */ public Builder clearTransitTimeLabel() { transitTimeLabel_ = getDefaultInstance().getTransitTimeLabel(); - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00200000); onChanged(); return this; } @@ -27723,7 +27985,7 @@ public Builder setTransitTimeLabelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); transitTimeLabel_ = value; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; onChanged(); return this; } @@ -27745,7 +28007,7 @@ public Builder setTransitTimeLabelBytes(com.google.protobuf.ByteString value) { * @return Whether the size field is set. */ public boolean hasSize() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00400000) != 0); } /** @@ -27820,7 +28082,7 @@ public Builder setSize(java.lang.String value) { throw new NullPointerException(); } size_ = value; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -27841,7 +28103,7 @@ public Builder setSize(java.lang.String value) { */ public Builder clearSize() { size_ = getDefaultInstance().getSize(); - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x00400000); onChanged(); return this; } @@ -27867,7 +28129,7 @@ public Builder setSizeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); size_ = value; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -27889,7 +28151,7 @@ public Builder setSizeBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasSizeSystem() { - return ((bitField1_ & 0x00400000) != 0); + return ((bitField1_ & 0x00800000) != 0); } /** @@ -27926,7 +28188,7 @@ public int getSizeSystemValue() { */ public Builder setSizeSystemValue(int value) { sizeSystem_ = value; - bitField1_ |= 0x00400000; + bitField1_ |= 0x00800000; onChanged(); return this; } @@ -27971,7 +28233,7 @@ public Builder setSizeSystem(com.google.shopping.merchant.products.v1.SizeSystem if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x00400000; + bitField1_ |= 0x00800000; sizeSystem_ = value.getNumber(); onChanged(); return this; @@ -27991,7 +28253,7 @@ public Builder setSizeSystem(com.google.shopping.merchant.products.v1.SizeSystem * @return This builder for chaining. */ public Builder clearSizeSystem() { - bitField1_ = (bitField1_ & ~0x00400000); + bitField1_ = (bitField1_ & ~0x00800000); sizeSystem_ = 0; onChanged(); return this; @@ -28003,7 +28265,7 @@ private void ensureSizeTypesIsMutable() { if (!sizeTypes_.isModifiable()) { sizeTypes_ = makeMutableCopy(sizeTypes_); } - bitField1_ |= 0x00800000; + bitField1_ |= 0x01000000; } /** @@ -28148,7 +28410,7 @@ public Builder addAllSizeTypes( */ public Builder clearSizeTypes() { sizeTypes_ = emptyIntList(); - bitField1_ = (bitField1_ & ~0x00800000); + bitField1_ = (bitField1_ & ~0x01000000); onChanged(); return this; } @@ -28274,7 +28536,7 @@ public Builder addAllSizeTypesValue(java.lang.Iterable values */ @java.lang.Override public boolean hasEnergyEfficiencyClass() { - return ((bitField1_ & 0x01000000) != 0); + return ((bitField1_ & 0x02000000) != 0); } /** @@ -28315,7 +28577,7 @@ public int getEnergyEfficiencyClassValue() { */ public Builder setEnergyEfficiencyClassValue(int value) { energyEfficiencyClass_ = value; - bitField1_ |= 0x01000000; + bitField1_ |= 0x02000000; onChanged(); return this; } @@ -28367,7 +28629,7 @@ public Builder setEnergyEfficiencyClass( if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x01000000; + bitField1_ |= 0x02000000; energyEfficiencyClass_ = value.getNumber(); onChanged(); return this; @@ -28389,7 +28651,7 @@ public Builder setEnergyEfficiencyClass( * @return This builder for chaining. */ public Builder clearEnergyEfficiencyClass() { - bitField1_ = (bitField1_ & ~0x01000000); + bitField1_ = (bitField1_ & ~0x02000000); energyEfficiencyClass_ = 0; onChanged(); return this; @@ -28414,7 +28676,7 @@ public Builder clearEnergyEfficiencyClass() { */ @java.lang.Override public boolean hasMinEnergyEfficiencyClass() { - return ((bitField1_ & 0x02000000) != 0); + return ((bitField1_ & 0x04000000) != 0); } /** @@ -28455,7 +28717,7 @@ public int getMinEnergyEfficiencyClassValue() { */ public Builder setMinEnergyEfficiencyClassValue(int value) { minEnergyEfficiencyClass_ = value; - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; onChanged(); return this; } @@ -28507,7 +28769,7 @@ public Builder setMinEnergyEfficiencyClass( if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; minEnergyEfficiencyClass_ = value.getNumber(); onChanged(); return this; @@ -28529,7 +28791,7 @@ public Builder setMinEnergyEfficiencyClass( * @return This builder for chaining. */ public Builder clearMinEnergyEfficiencyClass() { - bitField1_ = (bitField1_ & ~0x02000000); + bitField1_ = (bitField1_ & ~0x04000000); minEnergyEfficiencyClass_ = 0; onChanged(); return this; @@ -28554,7 +28816,7 @@ public Builder clearMinEnergyEfficiencyClass() { */ @java.lang.Override public boolean hasMaxEnergyEfficiencyClass() { - return ((bitField1_ & 0x04000000) != 0); + return ((bitField1_ & 0x08000000) != 0); } /** @@ -28595,7 +28857,7 @@ public int getMaxEnergyEfficiencyClassValue() { */ public Builder setMaxEnergyEfficiencyClassValue(int value) { maxEnergyEfficiencyClass_ = value; - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -28647,7 +28909,7 @@ public Builder setMaxEnergyEfficiencyClass( if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; maxEnergyEfficiencyClass_ = value.getNumber(); onChanged(); return this; @@ -28669,7 +28931,7 @@ public Builder setMaxEnergyEfficiencyClass( * @return This builder for chaining. */ public Builder clearMaxEnergyEfficiencyClass() { - bitField1_ = (bitField1_ & ~0x04000000); + bitField1_ = (bitField1_ & ~0x08000000); maxEnergyEfficiencyClass_ = 0; onChanged(); return this; @@ -28695,7 +28957,7 @@ public Builder clearMaxEnergyEfficiencyClass() { * @return Whether the unitPricingMeasure field is set. */ public boolean hasUnitPricingMeasure() { - return ((bitField1_ & 0x08000000) != 0); + return ((bitField1_ & 0x10000000) != 0); } /** @@ -28740,7 +29002,7 @@ public Builder setUnitPricingMeasure( } else { unitPricingMeasureBuilder_.setMessage(value); } - bitField1_ |= 0x08000000; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -28762,7 +29024,7 @@ public Builder setUnitPricingMeasure( } else { unitPricingMeasureBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x08000000; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -28780,7 +29042,7 @@ public Builder setUnitPricingMeasure( public Builder mergeUnitPricingMeasure( com.google.shopping.merchant.products.v1.UnitPricingMeasure value) { if (unitPricingMeasureBuilder_ == null) { - if (((bitField1_ & 0x08000000) != 0) + if (((bitField1_ & 0x10000000) != 0) && unitPricingMeasure_ != null && unitPricingMeasure_ != com.google.shopping.merchant.products.v1.UnitPricingMeasure @@ -28793,7 +29055,7 @@ public Builder mergeUnitPricingMeasure( unitPricingMeasureBuilder_.mergeFrom(value); } if (unitPricingMeasure_ != null) { - bitField1_ |= 0x08000000; + bitField1_ |= 0x10000000; onChanged(); } return this; @@ -28810,7 +29072,7 @@ public Builder mergeUnitPricingMeasure( * */ public Builder clearUnitPricingMeasure() { - bitField1_ = (bitField1_ & ~0x08000000); + bitField1_ = (bitField1_ & ~0x10000000); unitPricingMeasure_ = null; if (unitPricingMeasureBuilder_ != null) { unitPricingMeasureBuilder_.dispose(); @@ -28832,7 +29094,7 @@ public Builder clearUnitPricingMeasure() { */ public com.google.shopping.merchant.products.v1.UnitPricingMeasure.Builder getUnitPricingMeasureBuilder() { - bitField1_ |= 0x08000000; + bitField1_ |= 0x10000000; onChanged(); return internalGetUnitPricingMeasureFieldBuilder().getBuilder(); } @@ -28906,7 +29168,7 @@ public Builder clearUnitPricingMeasure() { * @return Whether the unitPricingBaseMeasure field is set. */ public boolean hasUnitPricingBaseMeasure() { - return ((bitField1_ & 0x10000000) != 0); + return ((bitField1_ & 0x20000000) != 0); } /** @@ -28954,7 +29216,7 @@ public Builder setUnitPricingBaseMeasure( } else { unitPricingBaseMeasureBuilder_.setMessage(value); } - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); return this; } @@ -28977,7 +29239,7 @@ public Builder setUnitPricingBaseMeasure( } else { unitPricingBaseMeasureBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); return this; } @@ -28996,7 +29258,7 @@ public Builder setUnitPricingBaseMeasure( public Builder mergeUnitPricingBaseMeasure( com.google.shopping.merchant.products.v1.UnitPricingBaseMeasure value) { if (unitPricingBaseMeasureBuilder_ == null) { - if (((bitField1_ & 0x10000000) != 0) + if (((bitField1_ & 0x20000000) != 0) && unitPricingBaseMeasure_ != null && unitPricingBaseMeasure_ != com.google.shopping.merchant.products.v1.UnitPricingBaseMeasure @@ -29009,7 +29271,7 @@ public Builder mergeUnitPricingBaseMeasure( unitPricingBaseMeasureBuilder_.mergeFrom(value); } if (unitPricingBaseMeasure_ != null) { - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); } return this; @@ -29027,7 +29289,7 @@ public Builder mergeUnitPricingBaseMeasure( * */ public Builder clearUnitPricingBaseMeasure() { - bitField1_ = (bitField1_ & ~0x10000000); + bitField1_ = (bitField1_ & ~0x20000000); unitPricingBaseMeasure_ = null; if (unitPricingBaseMeasureBuilder_ != null) { unitPricingBaseMeasureBuilder_.dispose(); @@ -29050,7 +29312,7 @@ public Builder clearUnitPricingBaseMeasure() { */ public com.google.shopping.merchant.products.v1.UnitPricingBaseMeasure.Builder getUnitPricingBaseMeasureBuilder() { - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); return internalGetUnitPricingBaseMeasureFieldBuilder().getBuilder(); } @@ -29120,7 +29382,7 @@ public Builder clearUnitPricingBaseMeasure() { */ @java.lang.Override public boolean hasMultipack() { - return ((bitField1_ & 0x20000000) != 0); + return ((bitField1_ & 0x40000000) != 0); } /** @@ -29154,7 +29416,7 @@ public long getMultipack() { public Builder setMultipack(long value) { multipack_ = value; - bitField1_ |= 0x20000000; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -29171,7 +29433,7 @@ public Builder setMultipack(long value) { * @return This builder for chaining. */ public Builder clearMultipack() { - bitField1_ = (bitField1_ & ~0x20000000); + bitField1_ = (bitField1_ & ~0x40000000); multipack_ = 0L; onChanged(); return this; @@ -29194,7 +29456,7 @@ public Builder clearMultipack() { * @return Whether the adsGrouping field is set. */ public boolean hasAdsGrouping() { - return ((bitField1_ & 0x40000000) != 0); + return ((bitField1_ & 0x80000000) != 0); } /** @@ -29269,7 +29531,7 @@ public Builder setAdsGrouping(java.lang.String value) { throw new NullPointerException(); } adsGrouping_ = value; - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -29290,7 +29552,7 @@ public Builder setAdsGrouping(java.lang.String value) { */ public Builder clearAdsGrouping() { adsGrouping_ = getDefaultInstance().getAdsGrouping(); - bitField1_ = (bitField1_ & ~0x40000000); + bitField1_ = (bitField1_ & ~0x80000000); onChanged(); return this; } @@ -29316,7 +29578,7 @@ public Builder setAdsGroupingBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); adsGrouping_ = value; - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -29328,7 +29590,7 @@ private void ensureAdsLabelsIsMutable() { if (!adsLabels_.isModifiable()) { adsLabels_ = new com.google.protobuf.LazyStringArrayList(adsLabels_); } - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; } /** @@ -29413,7 +29675,7 @@ public Builder setAdsLabels(int index, java.lang.String value) { } ensureAdsLabelsIsMutable(); adsLabels_.set(index, value); - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -29436,7 +29698,7 @@ public Builder addAdsLabels(java.lang.String value) { } ensureAdsLabelsIsMutable(); adsLabels_.add(value); - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -29456,7 +29718,7 @@ public Builder addAdsLabels(java.lang.String value) { public Builder addAllAdsLabels(java.lang.Iterable values) { ensureAdsLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adsLabels_); - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -29474,7 +29736,7 @@ public Builder addAllAdsLabels(java.lang.Iterable values) { */ public Builder clearAdsLabels() { adsLabels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x80000000); + bitField2_ = (bitField2_ & ~0x00000001); ; onChanged(); return this; @@ -29499,7 +29761,7 @@ public Builder addAdsLabelsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAdsLabelsIsMutable(); adsLabels_.add(value); - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -29519,7 +29781,7 @@ public Builder addAdsLabelsBytes(com.google.protobuf.ByteString value) { * @return Whether the adsRedirect field is set. */ public boolean hasAdsRedirect() { - return ((bitField2_ & 0x00000001) != 0); + return ((bitField2_ & 0x00000002) != 0); } /** @@ -29588,7 +29850,7 @@ public Builder setAdsRedirect(java.lang.String value) { throw new NullPointerException(); } adsRedirect_ = value; - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000002; onChanged(); return this; } @@ -29607,7 +29869,7 @@ public Builder setAdsRedirect(java.lang.String value) { */ public Builder clearAdsRedirect() { adsRedirect_ = getDefaultInstance().getAdsRedirect(); - bitField2_ = (bitField2_ & ~0x00000001); + bitField2_ = (bitField2_ & ~0x00000002); onChanged(); return this; } @@ -29631,7 +29893,7 @@ public Builder setAdsRedirectBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); adsRedirect_ = value; - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000002; onChanged(); return this; } @@ -29655,7 +29917,7 @@ public Builder setAdsRedirectBytes(com.google.protobuf.ByteString value) { * @return Whether the costOfGoodsSold field is set. */ public boolean hasCostOfGoodsSold() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000004) != 0); } /** @@ -29697,7 +29959,7 @@ public Builder setCostOfGoodsSold(com.google.shopping.type.Price value) { } else { costOfGoodsSoldBuilder_.setMessage(value); } - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -29717,7 +29979,7 @@ public Builder setCostOfGoodsSold(com.google.shopping.type.Price.Builder builder } else { costOfGoodsSoldBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -29733,7 +29995,7 @@ public Builder setCostOfGoodsSold(com.google.shopping.type.Price.Builder builder */ public Builder mergeCostOfGoodsSold(com.google.shopping.type.Price value) { if (costOfGoodsSoldBuilder_ == null) { - if (((bitField2_ & 0x00000002) != 0) + if (((bitField2_ & 0x00000004) != 0) && costOfGoodsSold_ != null && costOfGoodsSold_ != com.google.shopping.type.Price.getDefaultInstance()) { getCostOfGoodsSoldBuilder().mergeFrom(value); @@ -29744,7 +30006,7 @@ public Builder mergeCostOfGoodsSold(com.google.shopping.type.Price value) { costOfGoodsSoldBuilder_.mergeFrom(value); } if (costOfGoodsSold_ != null) { - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); } return this; @@ -29760,7 +30022,7 @@ public Builder mergeCostOfGoodsSold(com.google.shopping.type.Price value) { * .google.shopping.type.Price cost_of_goods_sold = 62; */ public Builder clearCostOfGoodsSold() { - bitField2_ = (bitField2_ & ~0x00000002); + bitField2_ = (bitField2_ & ~0x00000004); costOfGoodsSold_ = null; if (costOfGoodsSoldBuilder_ != null) { costOfGoodsSoldBuilder_.dispose(); @@ -29780,7 +30042,7 @@ public Builder clearCostOfGoodsSold() { * .google.shopping.type.Price cost_of_goods_sold = 62; */ public com.google.shopping.type.Price.Builder getCostOfGoodsSoldBuilder() { - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); return internalGetCostOfGoodsSoldFieldBuilder().getBuilder(); } @@ -29834,11 +30096,11 @@ public com.google.shopping.type.PriceOrBuilder getCostOfGoodsSoldOrBuilder() { java.util.Collections.emptyList(); private void ensureProductDetailsIsMutable() { - if (!((bitField2_ & 0x00000004) != 0)) { + if (!((bitField2_ & 0x00000008) != 0)) { productDetails_ = new java.util.ArrayList( productDetails_); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; } } @@ -30079,7 +30341,7 @@ public Builder addAllProductDetails( public Builder clearProductDetails() { if (productDetailsBuilder_ == null) { productDetails_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000008); onChanged(); } else { productDetailsBuilder_.clear(); @@ -30221,7 +30483,7 @@ public com.google.shopping.merchant.products.v1.ProductDetail.Builder addProduct com.google.shopping.merchant.products.v1.ProductDetail.Builder, com.google.shopping.merchant.products.v1.ProductDetailOrBuilder>( productDetails_, - ((bitField2_ & 0x00000004) != 0), + ((bitField2_ & 0x00000008) != 0), getParentForChildren(), isClean()); productDetails_ = null; @@ -30236,7 +30498,7 @@ private void ensureProductHighlightsIsMutable() { if (!productHighlights_.isModifiable()) { productHighlights_ = new com.google.protobuf.LazyStringArrayList(productHighlights_); } - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000010; } /** @@ -30326,7 +30588,7 @@ public Builder setProductHighlights(int index, java.lang.String value) { } ensureProductHighlightsIsMutable(); productHighlights_.set(index, value); - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -30350,7 +30612,7 @@ public Builder addProductHighlights(java.lang.String value) { } ensureProductHighlightsIsMutable(); productHighlights_.add(value); - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -30371,7 +30633,7 @@ public Builder addProductHighlights(java.lang.String value) { public Builder addAllProductHighlights(java.lang.Iterable values) { ensureProductHighlightsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productHighlights_); - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -30390,7 +30652,7 @@ public Builder addAllProductHighlights(java.lang.Iterable valu */ public Builder clearProductHighlights() { productHighlights_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00000008); + bitField2_ = (bitField2_ & ~0x00000010); ; onChanged(); return this; @@ -30416,7 +30678,7 @@ public Builder addProductHighlightsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureProductHighlightsIsMutable(); productHighlights_.add(value); - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -30435,7 +30697,7 @@ public Builder addProductHighlightsBytes(com.google.protobuf.ByteString value) { * @return Whether the displayAdsId field is set. */ public boolean hasDisplayAdsId() { - return ((bitField2_ & 0x00000010) != 0); + return ((bitField2_ & 0x00000020) != 0); } /** @@ -30501,7 +30763,7 @@ public Builder setDisplayAdsId(java.lang.String value) { throw new NullPointerException(); } displayAdsId_ = value; - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000020; onChanged(); return this; } @@ -30519,7 +30781,7 @@ public Builder setDisplayAdsId(java.lang.String value) { */ public Builder clearDisplayAdsId() { displayAdsId_ = getDefaultInstance().getDisplayAdsId(); - bitField2_ = (bitField2_ & ~0x00000010); + bitField2_ = (bitField2_ & ~0x00000020); onChanged(); return this; } @@ -30542,7 +30804,7 @@ public Builder setDisplayAdsIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayAdsId_ = value; - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000020; onChanged(); return this; } @@ -30554,7 +30816,7 @@ private void ensureDisplayAdsSimilarIdsIsMutable() { if (!displayAdsSimilarIds_.isModifiable()) { displayAdsSimilarIds_ = new com.google.protobuf.LazyStringArrayList(displayAdsSimilarIds_); } - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000040; } /** @@ -30649,7 +30911,7 @@ public Builder setDisplayAdsSimilarIds(int index, java.lang.String value) { } ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.set(index, value); - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -30674,7 +30936,7 @@ public Builder addDisplayAdsSimilarIds(java.lang.String value) { } ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.add(value); - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -30696,7 +30958,7 @@ public Builder addDisplayAdsSimilarIds(java.lang.String value) { public Builder addAllDisplayAdsSimilarIds(java.lang.Iterable values) { ensureDisplayAdsSimilarIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, displayAdsSimilarIds_); - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -30716,7 +30978,7 @@ public Builder addAllDisplayAdsSimilarIds(java.lang.Iterable v */ public Builder clearDisplayAdsSimilarIds() { displayAdsSimilarIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00000020); + bitField2_ = (bitField2_ & ~0x00000040); ; onChanged(); return this; @@ -30743,7 +31005,7 @@ public Builder addDisplayAdsSimilarIdsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.add(value); - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -30762,7 +31024,7 @@ public Builder addDisplayAdsSimilarIdsBytes(com.google.protobuf.ByteString value * @return Whether the displayAdsTitle field is set. */ public boolean hasDisplayAdsTitle() { - return ((bitField2_ & 0x00000040) != 0); + return ((bitField2_ & 0x00000080) != 0); } /** @@ -30828,7 +31090,7 @@ public Builder setDisplayAdsTitle(java.lang.String value) { throw new NullPointerException(); } displayAdsTitle_ = value; - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000080; onChanged(); return this; } @@ -30846,7 +31108,7 @@ public Builder setDisplayAdsTitle(java.lang.String value) { */ public Builder clearDisplayAdsTitle() { displayAdsTitle_ = getDefaultInstance().getDisplayAdsTitle(); - bitField2_ = (bitField2_ & ~0x00000040); + bitField2_ = (bitField2_ & ~0x00000080); onChanged(); return this; } @@ -30869,7 +31131,7 @@ public Builder setDisplayAdsTitleBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayAdsTitle_ = value; - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000080; onChanged(); return this; } @@ -30889,7 +31151,7 @@ public Builder setDisplayAdsTitleBytes(com.google.protobuf.ByteString value) { * @return Whether the displayAdsLink field is set. */ public boolean hasDisplayAdsLink() { - return ((bitField2_ & 0x00000080) != 0); + return ((bitField2_ & 0x00000100) != 0); } /** @@ -30958,7 +31220,7 @@ public Builder setDisplayAdsLink(java.lang.String value) { throw new NullPointerException(); } displayAdsLink_ = value; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -30977,7 +31239,7 @@ public Builder setDisplayAdsLink(java.lang.String value) { */ public Builder clearDisplayAdsLink() { displayAdsLink_ = getDefaultInstance().getDisplayAdsLink(); - bitField2_ = (bitField2_ & ~0x00000080); + bitField2_ = (bitField2_ & ~0x00000100); onChanged(); return this; } @@ -31001,7 +31263,7 @@ public Builder setDisplayAdsLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayAdsLink_ = value; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -31023,7 +31285,7 @@ public Builder setDisplayAdsLinkBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasDisplayAdsValue() { - return ((bitField2_ & 0x00000100) != 0); + return ((bitField2_ & 0x00000200) != 0); } /** @@ -31061,7 +31323,7 @@ public double getDisplayAdsValue() { public Builder setDisplayAdsValue(double value) { displayAdsValue_ = value; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000200; onChanged(); return this; } @@ -31080,7 +31342,7 @@ public Builder setDisplayAdsValue(double value) { * @return This builder for chaining. */ public Builder clearDisplayAdsValue() { - bitField2_ = (bitField2_ & ~0x00000100); + bitField2_ = (bitField2_ & ~0x00000200); displayAdsValue_ = 0D; onChanged(); return this; @@ -31093,7 +31355,7 @@ private void ensurePromotionIdsIsMutable() { if (!promotionIds_.isModifiable()) { promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); } - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000400; } /** @@ -31178,7 +31440,7 @@ public Builder setPromotionIds(int index, java.lang.String value) { } ensurePromotionIdsIsMutable(); promotionIds_.set(index, value); - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -31201,7 +31463,7 @@ public Builder addPromotionIds(java.lang.String value) { } ensurePromotionIdsIsMutable(); promotionIds_.add(value); - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -31221,7 +31483,7 @@ public Builder addPromotionIds(java.lang.String value) { public Builder addAllPromotionIds(java.lang.Iterable values) { ensurePromotionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promotionIds_); - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -31239,7 +31501,7 @@ public Builder addAllPromotionIds(java.lang.Iterable values) { */ public Builder clearPromotionIds() { promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00000200); + bitField2_ = (bitField2_ & ~0x00000400); ; onChanged(); return this; @@ -31264,7 +31526,7 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensurePromotionIdsIsMutable(); promotionIds_.add(value); - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -31285,7 +31547,7 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasPickupMethod() { - return ((bitField2_ & 0x00000400) != 0); + return ((bitField2_ & 0x00000800) != 0); } /** @@ -31320,7 +31582,7 @@ public int getPickupMethodValue() { */ public Builder setPickupMethodValue(int value) { pickupMethod_ = value; - bitField2_ |= 0x00000400; + bitField2_ |= 0x00000800; onChanged(); return this; } @@ -31363,7 +31625,7 @@ public Builder setPickupMethod(com.google.shopping.merchant.products.v1.PickupMe if (value == null) { throw new NullPointerException(); } - bitField2_ |= 0x00000400; + bitField2_ |= 0x00000800; pickupMethod_ = value.getNumber(); onChanged(); return this; @@ -31382,7 +31644,7 @@ public Builder setPickupMethod(com.google.shopping.merchant.products.v1.PickupMe * @return This builder for chaining. */ public Builder clearPickupMethod() { - bitField2_ = (bitField2_ & ~0x00000400); + bitField2_ = (bitField2_ & ~0x00000800); pickupMethod_ = 0; onChanged(); return this; @@ -31404,7 +31666,7 @@ public Builder clearPickupMethod() { */ @java.lang.Override public boolean hasPickupSla() { - return ((bitField2_ & 0x00000800) != 0); + return ((bitField2_ & 0x00001000) != 0); } /** @@ -31439,7 +31701,7 @@ public int getPickupSlaValue() { */ public Builder setPickupSlaValue(int value) { pickupSla_ = value; - bitField2_ |= 0x00000800; + bitField2_ |= 0x00001000; onChanged(); return this; } @@ -31482,7 +31744,7 @@ public Builder setPickupSla(com.google.shopping.merchant.products.v1.PickupSla v if (value == null) { throw new NullPointerException(); } - bitField2_ |= 0x00000800; + bitField2_ |= 0x00001000; pickupSla_ = value.getNumber(); onChanged(); return this; @@ -31501,7 +31763,7 @@ public Builder setPickupSla(com.google.shopping.merchant.products.v1.PickupSla v * @return This builder for chaining. */ public Builder clearPickupSla() { - bitField2_ = (bitField2_ & ~0x00000800); + bitField2_ = (bitField2_ & ~0x00001000); pickupSla_ = 0; onChanged(); return this; @@ -31522,7 +31784,7 @@ public Builder clearPickupSla() { * @return Whether the linkTemplate field is set. */ public boolean hasLinkTemplate() { - return ((bitField2_ & 0x00001000) != 0); + return ((bitField2_ & 0x00002000) != 0); } /** @@ -31591,7 +31853,7 @@ public Builder setLinkTemplate(java.lang.String value) { throw new NullPointerException(); } linkTemplate_ = value; - bitField2_ |= 0x00001000; + bitField2_ |= 0x00002000; onChanged(); return this; } @@ -31610,7 +31872,7 @@ public Builder setLinkTemplate(java.lang.String value) { */ public Builder clearLinkTemplate() { linkTemplate_ = getDefaultInstance().getLinkTemplate(); - bitField2_ = (bitField2_ & ~0x00001000); + bitField2_ = (bitField2_ & ~0x00002000); onChanged(); return this; } @@ -31634,7 +31896,7 @@ public Builder setLinkTemplateBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); linkTemplate_ = value; - bitField2_ |= 0x00001000; + bitField2_ |= 0x00002000; onChanged(); return this; } @@ -31655,7 +31917,7 @@ public Builder setLinkTemplateBytes(com.google.protobuf.ByteString value) { * @return Whether the mobileLinkTemplate field is set. */ public boolean hasMobileLinkTemplate() { - return ((bitField2_ & 0x00002000) != 0); + return ((bitField2_ & 0x00004000) != 0); } /** @@ -31727,7 +31989,7 @@ public Builder setMobileLinkTemplate(java.lang.String value) { throw new NullPointerException(); } mobileLinkTemplate_ = value; - bitField2_ |= 0x00002000; + bitField2_ |= 0x00004000; onChanged(); return this; } @@ -31747,7 +32009,7 @@ public Builder setMobileLinkTemplate(java.lang.String value) { */ public Builder clearMobileLinkTemplate() { mobileLinkTemplate_ = getDefaultInstance().getMobileLinkTemplate(); - bitField2_ = (bitField2_ & ~0x00002000); + bitField2_ = (bitField2_ & ~0x00004000); onChanged(); return this; } @@ -31772,7 +32034,7 @@ public Builder setMobileLinkTemplateBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); mobileLinkTemplate_ = value; - bitField2_ |= 0x00002000; + bitField2_ |= 0x00004000; onChanged(); return this; } @@ -31792,7 +32054,7 @@ public Builder setMobileLinkTemplateBytes(com.google.protobuf.ByteString value) * @return Whether the customLabel0 field is set. */ public boolean hasCustomLabel0() { - return ((bitField2_ & 0x00004000) != 0); + return ((bitField2_ & 0x00008000) != 0); } /** @@ -31861,7 +32123,7 @@ public Builder setCustomLabel0(java.lang.String value) { throw new NullPointerException(); } customLabel0_ = value; - bitField2_ |= 0x00004000; + bitField2_ |= 0x00008000; onChanged(); return this; } @@ -31880,7 +32142,7 @@ public Builder setCustomLabel0(java.lang.String value) { */ public Builder clearCustomLabel0() { customLabel0_ = getDefaultInstance().getCustomLabel0(); - bitField2_ = (bitField2_ & ~0x00004000); + bitField2_ = (bitField2_ & ~0x00008000); onChanged(); return this; } @@ -31904,7 +32166,7 @@ public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel0_ = value; - bitField2_ |= 0x00004000; + bitField2_ |= 0x00008000; onChanged(); return this; } @@ -31924,7 +32186,7 @@ public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel1 field is set. */ public boolean hasCustomLabel1() { - return ((bitField2_ & 0x00008000) != 0); + return ((bitField2_ & 0x00010000) != 0); } /** @@ -31993,7 +32255,7 @@ public Builder setCustomLabel1(java.lang.String value) { throw new NullPointerException(); } customLabel1_ = value; - bitField2_ |= 0x00008000; + bitField2_ |= 0x00010000; onChanged(); return this; } @@ -32012,7 +32274,7 @@ public Builder setCustomLabel1(java.lang.String value) { */ public Builder clearCustomLabel1() { customLabel1_ = getDefaultInstance().getCustomLabel1(); - bitField2_ = (bitField2_ & ~0x00008000); + bitField2_ = (bitField2_ & ~0x00010000); onChanged(); return this; } @@ -32036,7 +32298,7 @@ public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel1_ = value; - bitField2_ |= 0x00008000; + bitField2_ |= 0x00010000; onChanged(); return this; } @@ -32056,7 +32318,7 @@ public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel2 field is set. */ public boolean hasCustomLabel2() { - return ((bitField2_ & 0x00010000) != 0); + return ((bitField2_ & 0x00020000) != 0); } /** @@ -32125,7 +32387,7 @@ public Builder setCustomLabel2(java.lang.String value) { throw new NullPointerException(); } customLabel2_ = value; - bitField2_ |= 0x00010000; + bitField2_ |= 0x00020000; onChanged(); return this; } @@ -32144,7 +32406,7 @@ public Builder setCustomLabel2(java.lang.String value) { */ public Builder clearCustomLabel2() { customLabel2_ = getDefaultInstance().getCustomLabel2(); - bitField2_ = (bitField2_ & ~0x00010000); + bitField2_ = (bitField2_ & ~0x00020000); onChanged(); return this; } @@ -32168,7 +32430,7 @@ public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel2_ = value; - bitField2_ |= 0x00010000; + bitField2_ |= 0x00020000; onChanged(); return this; } @@ -32188,7 +32450,7 @@ public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel3 field is set. */ public boolean hasCustomLabel3() { - return ((bitField2_ & 0x00020000) != 0); + return ((bitField2_ & 0x00040000) != 0); } /** @@ -32257,7 +32519,7 @@ public Builder setCustomLabel3(java.lang.String value) { throw new NullPointerException(); } customLabel3_ = value; - bitField2_ |= 0x00020000; + bitField2_ |= 0x00040000; onChanged(); return this; } @@ -32276,7 +32538,7 @@ public Builder setCustomLabel3(java.lang.String value) { */ public Builder clearCustomLabel3() { customLabel3_ = getDefaultInstance().getCustomLabel3(); - bitField2_ = (bitField2_ & ~0x00020000); + bitField2_ = (bitField2_ & ~0x00040000); onChanged(); return this; } @@ -32300,7 +32562,7 @@ public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel3_ = value; - bitField2_ |= 0x00020000; + bitField2_ |= 0x00040000; onChanged(); return this; } @@ -32320,7 +32582,7 @@ public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel4 field is set. */ public boolean hasCustomLabel4() { - return ((bitField2_ & 0x00040000) != 0); + return ((bitField2_ & 0x00080000) != 0); } /** @@ -32389,7 +32651,7 @@ public Builder setCustomLabel4(java.lang.String value) { throw new NullPointerException(); } customLabel4_ = value; - bitField2_ |= 0x00040000; + bitField2_ |= 0x00080000; onChanged(); return this; } @@ -32408,7 +32670,7 @@ public Builder setCustomLabel4(java.lang.String value) { */ public Builder clearCustomLabel4() { customLabel4_ = getDefaultInstance().getCustomLabel4(); - bitField2_ = (bitField2_ & ~0x00040000); + bitField2_ = (bitField2_ & ~0x00080000); onChanged(); return this; } @@ -32432,7 +32694,7 @@ public Builder setCustomLabel4Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel4_ = value; - bitField2_ |= 0x00040000; + bitField2_ |= 0x00080000; onChanged(); return this; } @@ -32443,7 +32705,7 @@ private void ensureIncludedDestinationsIsMutable() { if (!includedDestinations_.isModifiable()) { includedDestinations_ = makeMutableCopy(includedDestinations_); } - bitField2_ |= 0x00080000; + bitField2_ |= 0x00100000; } /** @@ -32647,7 +32909,7 @@ public Builder addAllIncludedDestinations( */ public Builder clearIncludedDestinations() { includedDestinations_ = emptyIntList(); - bitField2_ = (bitField2_ & ~0x00080000); + bitField2_ = (bitField2_ & ~0x00100000); onChanged(); return this; } @@ -32800,7 +33062,7 @@ private void ensureExcludedDestinationsIsMutable() { if (!excludedDestinations_.isModifiable()) { excludedDestinations_ = makeMutableCopy(excludedDestinations_); } - bitField2_ |= 0x00100000; + bitField2_ |= 0x00200000; } /** @@ -32997,7 +33259,7 @@ public Builder addAllExcludedDestinations( */ public Builder clearExcludedDestinations() { excludedDestinations_ = emptyIntList(); - bitField2_ = (bitField2_ & ~0x00100000); + bitField2_ = (bitField2_ & ~0x00200000); onChanged(); return this; } @@ -33147,7 +33409,7 @@ private void ensureShoppingAdsExcludedCountriesIsMutable() { shoppingAdsExcludedCountries_ = new com.google.protobuf.LazyStringArrayList(shoppingAdsExcludedCountries_); } - bitField2_ |= 0x00200000; + bitField2_ |= 0x00400000; } /** @@ -33247,7 +33509,7 @@ public Builder setShoppingAdsExcludedCountries(int index, java.lang.String value } ensureShoppingAdsExcludedCountriesIsMutable(); shoppingAdsExcludedCountries_.set(index, value); - bitField2_ |= 0x00200000; + bitField2_ |= 0x00400000; onChanged(); return this; } @@ -33273,7 +33535,7 @@ public Builder addShoppingAdsExcludedCountries(java.lang.String value) { } ensureShoppingAdsExcludedCountriesIsMutable(); shoppingAdsExcludedCountries_.add(value); - bitField2_ |= 0x00200000; + bitField2_ |= 0x00400000; onChanged(); return this; } @@ -33296,7 +33558,7 @@ public Builder addShoppingAdsExcludedCountries(java.lang.String value) { public Builder addAllShoppingAdsExcludedCountries(java.lang.Iterable values) { ensureShoppingAdsExcludedCountriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shoppingAdsExcludedCountries_); - bitField2_ |= 0x00200000; + bitField2_ |= 0x00400000; onChanged(); return this; } @@ -33317,7 +33579,7 @@ public Builder addAllShoppingAdsExcludedCountries(java.lang.Iterable values) { ensureLifestyleImageLinksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lifestyleImageLinks_); - bitField2_ |= 0x01000000; + bitField2_ |= 0x02000000; onChanged(); return this; } @@ -33782,7 +34044,7 @@ public Builder addAllLifestyleImageLinks(java.lang.Iterable va */ public Builder clearLifestyleImageLinks() { lifestyleImageLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x01000000); + bitField2_ = (bitField2_ & ~0x02000000); ; onChanged(); return this; @@ -33810,7 +34072,7 @@ public Builder addLifestyleImageLinksBytes(com.google.protobuf.ByteString value) checkByteStringIsUtf8(value); ensureLifestyleImageLinksIsMutable(); lifestyleImageLinks_.add(value); - bitField2_ |= 0x01000000; + bitField2_ |= 0x02000000; onChanged(); return this; } @@ -33819,12 +34081,12 @@ public Builder addLifestyleImageLinksBytes(com.google.protobuf.ByteString value) cloudExportAdditionalProperties_ = java.util.Collections.emptyList(); private void ensureCloudExportAdditionalPropertiesIsMutable() { - if (!((bitField2_ & 0x02000000) != 0)) { + if (!((bitField2_ & 0x04000000) != 0)) { cloudExportAdditionalProperties_ = new java.util.ArrayList< com.google.shopping.merchant.products.v1.CloudExportAdditionalProperties>( cloudExportAdditionalProperties_); - bitField2_ |= 0x02000000; + bitField2_ |= 0x04000000; } } @@ -34085,7 +34347,7 @@ public Builder addAllCloudExportAdditionalProperties( public Builder clearCloudExportAdditionalProperties() { if (cloudExportAdditionalPropertiesBuilder_ == null) { cloudExportAdditionalProperties_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x02000000); + bitField2_ = (bitField2_ & ~0x04000000); onChanged(); } else { cloudExportAdditionalPropertiesBuilder_.clear(); @@ -34241,7 +34503,7 @@ public Builder removeCloudExportAdditionalProperties(int index) { com.google.shopping.merchant.products.v1.CloudExportAdditionalProperties.Builder, com.google.shopping.merchant.products.v1.CloudExportAdditionalPropertiesOrBuilder>( cloudExportAdditionalProperties_, - ((bitField2_ & 0x02000000) != 0), + ((bitField2_ & 0x04000000) != 0), getParentForChildren(), isClean()); cloudExportAdditionalProperties_ = null; @@ -34265,7 +34527,7 @@ public Builder removeCloudExportAdditionalProperties(int index) { * @return Whether the virtualModelLink field is set. */ public boolean hasVirtualModelLink() { - return ((bitField2_ & 0x04000000) != 0); + return ((bitField2_ & 0x08000000) != 0); } /** @@ -34337,7 +34599,7 @@ public Builder setVirtualModelLink(java.lang.String value) { throw new NullPointerException(); } virtualModelLink_ = value; - bitField2_ |= 0x04000000; + bitField2_ |= 0x08000000; onChanged(); return this; } @@ -34357,7 +34619,7 @@ public Builder setVirtualModelLink(java.lang.String value) { */ public Builder clearVirtualModelLink() { virtualModelLink_ = getDefaultInstance().getVirtualModelLink(); - bitField2_ = (bitField2_ & ~0x04000000); + bitField2_ = (bitField2_ & ~0x08000000); onChanged(); return this; } @@ -34382,7 +34644,7 @@ public Builder setVirtualModelLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); virtualModelLink_ = value; - bitField2_ |= 0x04000000; + bitField2_ |= 0x08000000; onChanged(); return this; } @@ -34391,11 +34653,11 @@ public Builder setVirtualModelLinkBytes(com.google.protobuf.ByteString value) { certifications_ = java.util.Collections.emptyList(); private void ensureCertificationsIsMutable() { - if (!((bitField2_ & 0x08000000) != 0)) { + if (!((bitField2_ & 0x10000000) != 0)) { certifications_ = new java.util.ArrayList( certifications_); - bitField2_ |= 0x08000000; + bitField2_ |= 0x10000000; } } @@ -34695,7 +34957,7 @@ public Builder addAllCertifications( public Builder clearCertifications() { if (certificationsBuilder_ == null) { certifications_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x08000000); + bitField2_ = (bitField2_ & ~0x10000000); onChanged(); } else { certificationsBuilder_.clear(); @@ -34875,7 +35137,7 @@ public Builder removeCertifications(int index) { com.google.shopping.merchant.products.v1.ProductCertification.Builder, com.google.shopping.merchant.products.v1.ProductCertificationOrBuilder>( certifications_, - ((bitField2_ & 0x08000000) != 0), + ((bitField2_ & 0x10000000) != 0), getParentForChildren(), isClean()); certifications_ = null; @@ -34903,7 +35165,7 @@ public Builder removeCertifications(int index) { * @return Whether the structuredTitle field is set. */ public boolean hasStructuredTitle() { - return ((bitField2_ & 0x10000000) != 0); + return ((bitField2_ & 0x20000000) != 0); } /** @@ -34948,7 +35210,7 @@ public Builder setStructuredTitle( } else { structuredTitleBuilder_.setMessage(value); } - bitField2_ |= 0x10000000; + bitField2_ |= 0x20000000; onChanged(); return this; } @@ -34970,7 +35232,7 @@ public Builder setStructuredTitle( } else { structuredTitleBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x10000000; + bitField2_ |= 0x20000000; onChanged(); return this; } @@ -34988,7 +35250,7 @@ public Builder setStructuredTitle( public Builder mergeStructuredTitle( com.google.shopping.merchant.products.v1.StructuredTitle value) { if (structuredTitleBuilder_ == null) { - if (((bitField2_ & 0x10000000) != 0) + if (((bitField2_ & 0x20000000) != 0) && structuredTitle_ != null && structuredTitle_ != com.google.shopping.merchant.products.v1.StructuredTitle.getDefaultInstance()) { @@ -35000,7 +35262,7 @@ public Builder mergeStructuredTitle( structuredTitleBuilder_.mergeFrom(value); } if (structuredTitle_ != null) { - bitField2_ |= 0x10000000; + bitField2_ |= 0x20000000; onChanged(); } return this; @@ -35017,7 +35279,7 @@ public Builder mergeStructuredTitle( * */ public Builder clearStructuredTitle() { - bitField2_ = (bitField2_ & ~0x10000000); + bitField2_ = (bitField2_ & ~0x20000000); structuredTitle_ = null; if (structuredTitleBuilder_ != null) { structuredTitleBuilder_.dispose(); @@ -35039,7 +35301,7 @@ public Builder clearStructuredTitle() { */ public com.google.shopping.merchant.products.v1.StructuredTitle.Builder getStructuredTitleBuilder() { - bitField2_ |= 0x10000000; + bitField2_ |= 0x20000000; onChanged(); return internalGetStructuredTitleFieldBuilder().getBuilder(); } @@ -35113,7 +35375,7 @@ public Builder clearStructuredTitle() { * @return Whether the structuredDescription field is set. */ public boolean hasStructuredDescription() { - return ((bitField2_ & 0x20000000) != 0); + return ((bitField2_ & 0x40000000) != 0); } /** @@ -35161,7 +35423,7 @@ public Builder setStructuredDescription( } else { structuredDescriptionBuilder_.setMessage(value); } - bitField2_ |= 0x20000000; + bitField2_ |= 0x40000000; onChanged(); return this; } @@ -35184,7 +35446,7 @@ public Builder setStructuredDescription( } else { structuredDescriptionBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x20000000; + bitField2_ |= 0x40000000; onChanged(); return this; } @@ -35203,7 +35465,7 @@ public Builder setStructuredDescription( public Builder mergeStructuredDescription( com.google.shopping.merchant.products.v1.StructuredDescription value) { if (structuredDescriptionBuilder_ == null) { - if (((bitField2_ & 0x20000000) != 0) + if (((bitField2_ & 0x40000000) != 0) && structuredDescription_ != null && structuredDescription_ != com.google.shopping.merchant.products.v1.StructuredDescription @@ -35216,7 +35478,7 @@ public Builder mergeStructuredDescription( structuredDescriptionBuilder_.mergeFrom(value); } if (structuredDescription_ != null) { - bitField2_ |= 0x20000000; + bitField2_ |= 0x40000000; onChanged(); } return this; @@ -35234,7 +35496,7 @@ public Builder mergeStructuredDescription( * */ public Builder clearStructuredDescription() { - bitField2_ = (bitField2_ & ~0x20000000); + bitField2_ = (bitField2_ & ~0x40000000); structuredDescription_ = null; if (structuredDescriptionBuilder_ != null) { structuredDescriptionBuilder_.dispose(); @@ -35257,7 +35519,7 @@ public Builder clearStructuredDescription() { */ public com.google.shopping.merchant.products.v1.StructuredDescription.Builder getStructuredDescriptionBuilder() { - bitField2_ |= 0x20000000; + bitField2_ |= 0x40000000; onChanged(); return internalGetStructuredDescriptionFieldBuilder().getBuilder(); } @@ -35336,7 +35598,7 @@ public Builder clearStructuredDescription() { * @return Whether the autoPricingMinPrice field is set. */ public boolean hasAutoPricingMinPrice() { - return ((bitField2_ & 0x40000000) != 0); + return ((bitField2_ & 0x80000000) != 0); } /** @@ -35388,7 +35650,7 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price value) { } else { autoPricingMinPriceBuilder_.setMessage(value); } - bitField2_ |= 0x40000000; + bitField2_ |= 0x80000000; onChanged(); return this; } @@ -35413,7 +35675,7 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price.Builder bui } else { autoPricingMinPriceBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x40000000; + bitField2_ |= 0x80000000; onChanged(); return this; } @@ -35434,7 +35696,7 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price.Builder bui */ public Builder mergeAutoPricingMinPrice(com.google.shopping.type.Price value) { if (autoPricingMinPriceBuilder_ == null) { - if (((bitField2_ & 0x40000000) != 0) + if (((bitField2_ & 0x80000000) != 0) && autoPricingMinPrice_ != null && autoPricingMinPrice_ != com.google.shopping.type.Price.getDefaultInstance()) { getAutoPricingMinPriceBuilder().mergeFrom(value); @@ -35445,7 +35707,7 @@ public Builder mergeAutoPricingMinPrice(com.google.shopping.type.Price value) { autoPricingMinPriceBuilder_.mergeFrom(value); } if (autoPricingMinPrice_ != null) { - bitField2_ |= 0x40000000; + bitField2_ |= 0x80000000; onChanged(); } return this; @@ -35466,7 +35728,7 @@ public Builder mergeAutoPricingMinPrice(com.google.shopping.type.Price value) { * .google.shopping.type.Price auto_pricing_min_price = 124; */ public Builder clearAutoPricingMinPrice() { - bitField2_ = (bitField2_ & ~0x40000000); + bitField2_ = (bitField2_ & ~0x80000000); autoPricingMinPrice_ = null; if (autoPricingMinPriceBuilder_ != null) { autoPricingMinPriceBuilder_.dispose(); @@ -35491,7 +35753,7 @@ public Builder clearAutoPricingMinPrice() { * .google.shopping.type.Price auto_pricing_min_price = 124; */ public com.google.shopping.type.Price.Builder getAutoPricingMinPriceBuilder() { - bitField2_ |= 0x40000000; + bitField2_ |= 0x80000000; onChanged(); return internalGetAutoPricingMinPriceFieldBuilder().getBuilder(); } @@ -35555,12 +35817,12 @@ public com.google.shopping.type.PriceOrBuilder getAutoPricingMinPriceOrBuilder() sustainabilityIncentives_ = java.util.Collections.emptyList(); private void ensureSustainabilityIncentivesIsMutable() { - if (!((bitField2_ & 0x80000000) != 0)) { + if (!((bitField3_ & 0x00000001) != 0)) { sustainabilityIncentives_ = new java.util.ArrayList< com.google.shopping.merchant.products.v1.ProductSustainabilityIncentive>( sustainabilityIncentives_); - bitField2_ |= 0x80000000; + bitField3_ |= 0x00000001; } } @@ -35820,7 +36082,7 @@ public Builder addAllSustainabilityIncentives( public Builder clearSustainabilityIncentives() { if (sustainabilityIncentivesBuilder_ == null) { sustainabilityIncentives_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x80000000); + bitField3_ = (bitField3_ & ~0x00000001); onChanged(); } else { sustainabilityIncentivesBuilder_.clear(); @@ -35976,7 +36238,7 @@ public Builder removeSustainabilityIncentives(int index) { com.google.shopping.merchant.products.v1.ProductSustainabilityIncentive.Builder, com.google.shopping.merchant.products.v1.ProductSustainabilityIncentiveOrBuilder>( sustainabilityIncentives_, - ((bitField2_ & 0x80000000) != 0), + ((bitField3_ & 0x00000001) != 0), getParentForChildren(), isClean()); sustainabilityIncentives_ = null; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java index 32a3956dc2f3..4a05870adc9b 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java @@ -2288,8 +2288,9 @@ com.google.shopping.merchant.products.v1.FreeShippingThreshold getFreeShippingTh * * *
              -   * The shipping label of the product, used to group product in account-level
              -   * shipping rules.
              +   * The shipping label of the product, used to group products in account-level
              +   * shipping rules. Max. 100 characters. For more information, see
              +   * [Shipping label](https://support.google.com/merchants/answer/6324504).
                  * 
              * * optional string shipping_label = 46; @@ -2302,8 +2303,9 @@ com.google.shopping.merchant.products.v1.FreeShippingThreshold getFreeShippingTh * * *
              -   * The shipping label of the product, used to group product in account-level
              -   * shipping rules.
              +   * The shipping label of the product, used to group products in account-level
              +   * shipping rules. Max. 100 characters. For more information, see
              +   * [Shipping label](https://support.google.com/merchants/answer/6324504).
                  * 
              * * optional string shipping_label = 46; @@ -2316,8 +2318,9 @@ com.google.shopping.merchant.products.v1.FreeShippingThreshold getFreeShippingTh * * *
              -   * The shipping label of the product, used to group product in account-level
              -   * shipping rules.
              +   * The shipping label of the product, used to group products in account-level
              +   * shipping rules. Max. 100 characters. For more information, see
              +   * [Shipping label](https://support.google.com/merchants/answer/6324504).
                  * 
              * * optional string shipping_label = 46; @@ -2326,6 +2329,51 @@ com.google.shopping.merchant.products.v1.FreeShippingThreshold getFreeShippingTh */ com.google.protobuf.ByteString getShippingLabelBytes(); + /** + * + * + *
              +   * The return label of the product, used to group products in account-level
              +   * return policies. Max. 100 characters. For more information, see
              +   * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +   * 
              + * + * optional string return_policy_label = 170; + * + * @return Whether the returnPolicyLabel field is set. + */ + boolean hasReturnPolicyLabel(); + + /** + * + * + *
              +   * The return label of the product, used to group products in account-level
              +   * return policies. Max. 100 characters. For more information, see
              +   * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +   * 
              + * + * optional string return_policy_label = 170; + * + * @return The returnPolicyLabel. + */ + java.lang.String getReturnPolicyLabel(); + + /** + * + * + *
              +   * The return label of the product, used to group products in account-level
              +   * return policies. Max. 100 characters. For more information, see
              +   * [Return policy label](https://support.google.com/merchants/answer/9445425).
              +   * 
              + * + * optional string return_policy_label = 170; + * + * @return The bytes for returnPolicyLabel. + */ + com.google.protobuf.ByteString getReturnPolicyLabelBytes(); + /** * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInput.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInput.java index cb31dbb65a4d..3b71e15ad318 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInput.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInput.java @@ -78,7 +78,9 @@ private ProductInput(com.google.protobuf.GeneratedMessage.Builder builder) { private ProductInput() { name_ = ""; + base64EncodedName_ = ""; product_ = ""; + base64EncodedProduct_ = ""; offerId_ = ""; contentLanguage_ = ""; feedLabel_ = ""; @@ -129,10 +131,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -144,10 +146,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -190,10 +188,10 @@ public java.lang.String getName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -205,10 +203,6 @@ public java.lang.String getName() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -228,6 +222,77 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int BASE64_ENCODED_NAME_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the product input.
              +   * Format:
              +   * `accounts/{account}/productInputs/{productinput}` where the last
              +   * section `productinput` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +   * can be used directly as input to the API methods that require the product
              +   * input name to be encoded if it contains special characters, for example
              +   * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +   * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + @java.lang.Override + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the product input.
              +   * Format:
              +   * `accounts/{account}/productInputs/{productinput}` where the last
              +   * section `productinput` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +   * can be used directly as input to the API methods that require the product
              +   * input name to be encoded if it contains special characters, for example
              +   * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +   * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PRODUCT_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -283,6 +348,75 @@ public com.google.protobuf.ByteString getProductBytes() { } } + public static final int BASE64_ENCODED_PRODUCT_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object base64EncodedProduct_ = ""; + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the processed
              +   * product. Format: `accounts/{account}/products/{product}` where the last
              +   * section `product` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +   * directly as input to the API methods that require the product name to be
              +   * encoded if it contains special characters, for example
              +   * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +   * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedProduct. + */ + @java.lang.Override + public java.lang.String getBase64EncodedProduct() { + java.lang.Object ref = base64EncodedProduct_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedProduct_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the processed
              +   * product. Format: `accounts/{account}/products/{product}` where the last
              +   * section `product` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +   * directly as input to the API methods that require the product name to be
              +   * encoded if it contains special characters, for example
              +   * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +   * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedProduct. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBase64EncodedProductBytes() { + java.lang.Object ref = base64EncodedProduct_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedProduct_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int LEGACY_LOCAL_FIELD_NUMBER = 10; private boolean legacyLocal_ = false; @@ -805,6 +939,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getProductAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, base64EncodedName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedProduct_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, base64EncodedProduct_); + } getUnknownFields().writeTo(output); } @@ -841,6 +981,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getProductAttributes()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, base64EncodedName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(base64EncodedProduct_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, base64EncodedProduct_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -858,7 +1004,9 @@ public boolean equals(final java.lang.Object obj) { (com.google.shopping.merchant.products.v1.ProductInput) obj; if (!getName().equals(other.getName())) return false; + if (!getBase64EncodedName().equals(other.getBase64EncodedName())) return false; if (!getProduct().equals(other.getProduct())) return false; + if (!getBase64EncodedProduct().equals(other.getBase64EncodedProduct())) return false; if (getLegacyLocal() != other.getLegacyLocal()) return false; if (!getOfferId().equals(other.getOfferId())) return false; if (!getContentLanguage().equals(other.getContentLanguage())) return false; @@ -885,8 +1033,12 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + BASE64_ENCODED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBase64EncodedName().hashCode(); hash = (37 * hash) + PRODUCT_FIELD_NUMBER; hash = (53 * hash) + getProduct().hashCode(); + hash = (37 * hash) + BASE64_ENCODED_PRODUCT_FIELD_NUMBER; + hash = (53 * hash) + getBase64EncodedProduct().hashCode(); hash = (37 * hash) + LEGACY_LOCAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLegacyLocal()); hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; @@ -1084,7 +1236,9 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + base64EncodedName_ = ""; product_ = ""; + base64EncodedProduct_ = ""; legacyLocal_ = false; offerId_ = ""; contentLanguage_ = ""; @@ -1101,7 +1255,7 @@ public Builder clear() { customAttributes_ = null; customAttributesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -1140,9 +1294,9 @@ public com.google.shopping.merchant.products.v1.ProductInput buildPartial() { private void buildPartialRepeatedFields( com.google.shopping.merchant.products.v1.ProductInput result) { if (customAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { customAttributes_ = java.util.Collections.unmodifiableList(customAttributes_); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); } result.customAttributes_ = customAttributes_; } else { @@ -1156,26 +1310,32 @@ private void buildPartial0(com.google.shopping.merchant.products.v1.ProductInput result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.product_ = product_; + result.base64EncodedName_ = base64EncodedName_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.legacyLocal_ = legacyLocal_; + result.product_ = product_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.offerId_ = offerId_; + result.base64EncodedProduct_ = base64EncodedProduct_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.contentLanguage_ = contentLanguage_; + result.legacyLocal_ = legacyLocal_; } if (((from_bitField0_ & 0x00000020) != 0)) { + result.offerId_ = offerId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.contentLanguage_ = contentLanguage_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.feedLabel_ = feedLabel_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.versionNumber_ = versionNumber_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.productAttributes_ = productAttributesBuilder_ == null ? productAttributes_ @@ -1203,9 +1363,19 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductInput o bitField0_ |= 0x00000001; onChanged(); } + if (!other.getBase64EncodedName().isEmpty()) { + base64EncodedName_ = other.base64EncodedName_; + bitField0_ |= 0x00000002; + onChanged(); + } if (!other.getProduct().isEmpty()) { product_ = other.product_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getBase64EncodedProduct().isEmpty()) { + base64EncodedProduct_ = other.base64EncodedProduct_; + bitField0_ |= 0x00000008; onChanged(); } if (other.getLegacyLocal() != false) { @@ -1213,17 +1383,17 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductInput o } if (!other.getOfferId().isEmpty()) { offerId_ = other.offerId_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getContentLanguage().isEmpty()) { contentLanguage_ = other.contentLanguage_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasVersionNumber()) { @@ -1236,7 +1406,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductInput o if (!other.customAttributes_.isEmpty()) { if (customAttributes_.isEmpty()) { customAttributes_ = other.customAttributes_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureCustomAttributesIsMutable(); customAttributes_.addAll(other.customAttributes_); @@ -1249,7 +1419,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductInput o customAttributesBuilder_.dispose(); customAttributesBuilder_ = null; customAttributes_ = other.customAttributes_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); customAttributesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetCustomAttributesFieldBuilder() @@ -1294,31 +1464,31 @@ public Builder mergeFrom( case 18: { product_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 34: { offerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 34 case 42: { contentLanguage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 42 case 50: { feedLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 50 case 56: { versionNumber_ = input.readInt64(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 56 case 74: @@ -1337,16 +1507,28 @@ public Builder mergeFrom( case 80: { legacyLocal_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 80 case 90: { input.readMessage( internalGetProductAttributesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 90 + case 98: + { + base64EncodedName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 98 + case 106: + { + base64EncodedProduct_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1391,10 +1573,10 @@ public Builder mergeFrom( * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -1406,10 +1588,6 @@ public Builder mergeFrom( * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1451,10 +1629,10 @@ public java.lang.String getName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -1466,10 +1644,6 @@ public java.lang.String getName() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1511,10 +1685,10 @@ public com.google.protobuf.ByteString getNameBytes() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -1526,10 +1700,6 @@ public com.google.protobuf.ByteString getNameBytes() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1570,10 +1740,10 @@ public Builder setName(java.lang.String value) { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -1585,10 +1755,6 @@ public Builder setName(java.lang.String value) { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1625,10 +1791,10 @@ public Builder clearName() { * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -1640,10 +1806,6 @@ public Builder clearName() { * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1662,6 +1824,162 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object base64EncodedName_ = ""; + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product input.
              +     * Format:
              +     * `accounts/{account}/productInputs/{productinput}` where the last
              +     * section `productinput` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +     * can be used directly as input to the API methods that require the product
              +     * input name to be encoded if it contains special characters, for example
              +     * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +     * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + public java.lang.String getBase64EncodedName() { + java.lang.Object ref = base64EncodedName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product input.
              +     * Format:
              +     * `accounts/{account}/productInputs/{productinput}` where the last
              +     * section `productinput` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +     * can be used directly as input to the API methods that require the product
              +     * input name to be encoded if it contains special characters, for example
              +     * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +     * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + public com.google.protobuf.ByteString getBase64EncodedNameBytes() { + java.lang.Object ref = base64EncodedName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product input.
              +     * Format:
              +     * `accounts/{account}/productInputs/{productinput}` where the last
              +     * section `productinput` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +     * can be used directly as input to the API methods that require the product
              +     * input name to be encoded if it contains special characters, for example
              +     * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +     * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product input.
              +     * Format:
              +     * `accounts/{account}/productInputs/{productinput}` where the last
              +     * section `productinput` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +     * can be used directly as input to the API methods that require the product
              +     * input name to be encoded if it contains special characters, for example
              +     * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +     * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBase64EncodedName() { + base64EncodedName_ = getDefaultInstance().getBase64EncodedName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the product input.
              +     * Format:
              +     * `accounts/{account}/productInputs/{productinput}` where the last
              +     * section `productinput` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +     * can be used directly as input to the API methods that require the product
              +     * input name to be encoded if it contains special characters, for example
              +     * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +     * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for base64EncodedName to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + base64EncodedName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private java.lang.Object product_ = ""; /** @@ -1730,7 +2048,7 @@ public Builder setProduct(java.lang.String value) { throw new NullPointerException(); } product_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1749,7 +2067,7 @@ public Builder setProduct(java.lang.String value) { */ public Builder clearProduct() { product_ = getDefaultInstance().getProduct(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1773,7 +2091,158 @@ public Builder setProductBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); product_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object base64EncodedProduct_ = ""; + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the processed
              +     * product. Format: `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +     * directly as input to the API methods that require the product name to be
              +     * encoded if it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedProduct. + */ + public java.lang.String getBase64EncodedProduct() { + java.lang.Object ref = base64EncodedProduct_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + base64EncodedProduct_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the processed
              +     * product. Format: `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +     * directly as input to the API methods that require the product name to be
              +     * encoded if it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedProduct. + */ + public com.google.protobuf.ByteString getBase64EncodedProductBytes() { + java.lang.Object ref = base64EncodedProduct_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + base64EncodedProduct_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the processed
              +     * product. Format: `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +     * directly as input to the API methods that require the product name to be
              +     * encoded if it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The base64EncodedProduct to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedProduct(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + base64EncodedProduct_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the processed
              +     * product. Format: `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +     * directly as input to the API methods that require the product name to be
              +     * encoded if it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBase64EncodedProduct() { + base64EncodedProduct_ = getDefaultInstance().getBase64EncodedProduct(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The **unpadded base64url encoded name** of the processed
              +     * product. Format: `accounts/{account}/products/{product}` where the last
              +     * section `product` is the unpadded base64url encoding of the
              +     * `content_language~feed_label~offer_id` name.
              +     * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +     * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +     * directly as input to the API methods that require the product name to be
              +     * encoded if it contains special characters, for example
              +     * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +     * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for base64EncodedProduct to set. + * @return This builder for chaining. + */ + public Builder setBase64EncodedProductBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + base64EncodedProduct_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1823,7 +2292,7 @@ public boolean getLegacyLocal() { public Builder setLegacyLocal(boolean value) { legacyLocal_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1846,7 +2315,7 @@ public Builder setLegacyLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLegacyLocal() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); legacyLocal_ = false; onChanged(); return this; @@ -1938,7 +2407,7 @@ public Builder setOfferId(java.lang.String value) { throw new NullPointerException(); } offerId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1963,7 +2432,7 @@ public Builder setOfferId(java.lang.String value) { */ public Builder clearOfferId() { offerId_ = getDefaultInstance().getOfferId(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1993,7 +2462,7 @@ public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); offerId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2075,7 +2544,7 @@ public Builder setContentLanguage(java.lang.String value) { throw new NullPointerException(); } contentLanguage_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2097,7 +2566,7 @@ public Builder setContentLanguage(java.lang.String value) { */ public Builder clearContentLanguage() { contentLanguage_ = getDefaultInstance().getContentLanguage(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2124,7 +2593,7 @@ public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); contentLanguage_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2212,7 +2681,7 @@ public Builder setFeedLabel(java.lang.String value) { throw new NullPointerException(); } feedLabel_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2236,7 +2705,7 @@ public Builder setFeedLabel(java.lang.String value) { */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2265,7 +2734,7 @@ public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); feedLabel_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2301,7 +2770,7 @@ public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasVersionNumber() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2367,7 +2836,7 @@ public long getVersionNumber() { public Builder setVersionNumber(long value) { versionNumber_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2400,7 +2869,7 @@ public Builder setVersionNumber(long value) { * @return This builder for chaining. */ public Builder clearVersionNumber() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); versionNumber_ = 0L; onChanged(); return this; @@ -2427,7 +2896,7 @@ public Builder clearVersionNumber() { * @return Whether the productAttributes field is set. */ public boolean hasProductAttributes() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2474,7 +2943,7 @@ public Builder setProductAttributes( } else { productAttributesBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2497,7 +2966,7 @@ public Builder setProductAttributes( } else { productAttributesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2516,7 +2985,7 @@ public Builder setProductAttributes( public Builder mergeProductAttributes( com.google.shopping.merchant.products.v1.ProductAttributes value) { if (productAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000200) != 0) && productAttributes_ != null && productAttributes_ != com.google.shopping.merchant.products.v1.ProductAttributes @@ -2529,7 +2998,7 @@ public Builder mergeProductAttributes( productAttributesBuilder_.mergeFrom(value); } if (productAttributes_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2547,7 +3016,7 @@ public Builder mergeProductAttributes( * */ public Builder clearProductAttributes() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); productAttributes_ = null; if (productAttributesBuilder_ != null) { productAttributesBuilder_.dispose(); @@ -2570,7 +3039,7 @@ public Builder clearProductAttributes() { */ public com.google.shopping.merchant.products.v1.ProductAttributes.Builder getProductAttributesBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return internalGetProductAttributesFieldBuilder().getBuilder(); } @@ -2629,10 +3098,10 @@ public Builder clearProductAttributes() { java.util.Collections.emptyList(); private void ensureCustomAttributesIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { customAttributes_ = new java.util.ArrayList(customAttributes_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; } } @@ -2990,7 +3459,7 @@ public Builder addAllCustomAttributes( public Builder clearCustomAttributes() { if (customAttributesBuilder_ == null) { customAttributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { customAttributesBuilder_.clear(); @@ -3205,7 +3674,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder>( customAttributes_, - ((bitField0_ & 0x00000100) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); customAttributes_ = null; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputOrBuilder.java index ff93fcbc668b..8d3ac062ff58 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputOrBuilder.java @@ -49,10 +49,10 @@ public interface ProductInputOrBuilder * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -64,10 +64,6 @@ public interface ProductInputOrBuilder * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -99,10 +95,10 @@ public interface ProductInputOrBuilder * MUST be used if any part of the product identifier (like `offer_id`) * contains characters such as `/`, `%`, or `~`. * * Example: To represent the product ID `en~US~sku/123`, the - * `{productinput}` segment must be the base64url encoding of this - * string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + * `{productinput}` segment must be the unpadded base64url encoding of + * this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name * for the product would be - * `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + * `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. * * 2. **Plain Format**: The `{productinput}` segment is the tilde-separated * string @@ -114,10 +110,6 @@ public interface ProductInputOrBuilder * correct parsing, especially those containing special characters. The * presence of tilde (`~`) characters in the `{productinput}` segment is used * to differentiate between the two formats. - * - * Note: For calls to the v1beta version, the plain format is - * `channel~content_language~feed_label~offer_id`, for example: - * `accounts/123/productinputs/online~en~US~sku123`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -126,6 +118,50 @@ public interface ProductInputOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the product input.
              +   * Format:
              +   * `accounts/{account}/productInputs/{productinput}` where the last
              +   * section `productinput` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +   * can be used directly as input to the API methods that require the product
              +   * input name to be encoded if it contains special characters, for example
              +   * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +   * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + java.lang.String getBase64EncodedName(); + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the product input.
              +   * Format:
              +   * `accounts/{account}/productInputs/{productinput}` where the last
              +   * section `productinput` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product input name `accounts/123/productInputs/en~US~sku/123`. This field
              +   * can be used directly as input to the API methods that require the product
              +   * input name to be encoded if it contains special characters, for example
              +   * [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
              +   * 
              + * + * string base64_encoded_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + com.google.protobuf.ByteString getBase64EncodedNameBytes(); + /** * * @@ -154,6 +190,48 @@ public interface ProductInputOrBuilder */ com.google.protobuf.ByteString getProductBytes(); + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the processed
              +   * product. Format: `accounts/{account}/products/{product}` where the last
              +   * section `product` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +   * directly as input to the API methods that require the product name to be
              +   * encoded if it contains special characters, for example
              +   * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +   * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedProduct. + */ + java.lang.String getBase64EncodedProduct(); + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the processed
              +   * product. Format: `accounts/{account}/products/{product}` where the last
              +   * section `product` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
              +   * product name `accounts/123/products/en~US~sku/123`. This field can be used
              +   * directly as input to the API methods that require the product name to be
              +   * encoded if it contains special characters, for example
              +   * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +   * 
              + * + * string base64_encoded_product = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedProduct. + */ + com.google.protobuf.ByteString getBase64EncodedProductBytes(); + /** * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsProto.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsProto.java index bf9cbc5740f8..5dbaa144214d 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsProto.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsProto.java @@ -73,33 +73,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ource.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032:goog" + "le/shopping/merchant/products/v1/products_common.proto\032" - + " google/shopping/type/types.proto\"\377\003\n" + + " google/shopping/type/types.proto\"\306\004\n" + "\014ProductInput\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" - + "\007product\030\002 \001(\tB\003\340A\003\022\031\n" + + "\004name\030\001 \001(\tB\003\340A\010\022 \n" + + "\023base64_encoded_name\030\014 \001(\tB\003\340A\003\022\024\n" + + "\007product\030\002 \001(\tB\003\340A\003\022#\n" + + "\026base64_encoded_product\030\r" + + " \001(\tB\003\340A\003\022\031\n" + "\014legacy_local\030\n" + " \001(\010B\003\340A\005\022\030\n" + "\010offer_id\030\004 \001(\tB\006\340A\002\340A\005\022 \n" + "\020content_language\030\005 \001(\tB\006\340A\002\340A\005\022\032\n\n" + "feed_label\030\006 \001(\tB\006\340A\002\340A\005\022#\n" + "\016version_number\030\007 \001(\003B\006\340A\001\340A\005H\000\210\001\001\022X\n" - + "\022product_attributes\030\013" - + " \001(\01327.google.shopping.merchant.products.v1.ProductAttributesB\003\340A\001\022E\n" + + "\022product_attributes\030\013 \001(\01327." + + "google.shopping.merchant.products.v1.ProductAttributesB\003\340A\001\022E\n" + "\021custom_attributes\030\t" + " \003(\0132%.google.shopping.type.CustomAttributeB\003\340A\001:z\352Aw\n" - + "\'merchantapi.go" - + "ogleapis.com/ProductInput\022/accounts/{account}/productInputs/{productinput}*\r" + + "\'merchantapi.googleapis." + + "com/ProductInput\022/accounts/{account}/productInputs/{productinput}*\r" + "productInputs2\014productInputB\021\n" + "\017_version_number\"\301\001\n" + "\031InsertProductInputRequest\022:\n" - + "\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"merchantapi.googleapis.com/Product\022N\n\r" - + "product_input\030\002 \001(\01322.go" - + "ogle.shopping.merchant.products.v1.ProductInputB\003\340A\002\022\030\n" + + "\006parent\030\001 \001(\tB" + + "*\340A\002\372A$\022\"merchantapi.googleapis.com/Product\022N\n\r" + + "product_input\030\002 \001(\01322.google.shop" + + "ping.merchant.products.v1.ProductInputB\003\340A\002\022\030\n" + "\013data_source\030\003 \001(\tB\003\340A\002\"\273\001\n" + "\031UpdateProductInputRequest\022N\n\r" - + "product_input\030\001" - + " \001(\01322.google.shopping.merchant.products.v1.ProductInputB\003\340A\002\0224\n" + + "product_input\030\001 \001" + + "(\01322.google.shopping.merchant.products.v1.ProductInputB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\030\n" + "\013data_source\030\003 \001(\tB\003\340A\002\"t\n" @@ -108,26 +111,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'merchantapi.googleapis.com/ProductInput\022\030\n" + "\013data_source\030\002 \001(\tB\003\340A\0022\345\005\n" + "\024ProductInputsService\022\327\001\n" - + "\022InsertProductInput\022?.google.shopping.merchant.products.v1.Insert" - + "ProductInputRequest\0322.google.shopping.me" - + "rchant.products.v1.ProductInput\"L\202\323\344\223\002F\"" - + "5/products/v1/{parent=accounts/*}/productInputs:insert:\r" + + "\022InsertProductInput\022?.google.shopping.merchant.products.v1.InsertProductIn" + + "putRequest\0322.google.shopping.merchant.pr" + + "oducts.v1.ProductInput\"L\202\323\344\223\002F\"5/product" + + "s/v1/{parent=accounts/*}/productInputs:insert:\r" + "product_input\022\372\001\n" - + "\022UpdateProductInput\022?.google.shopping.merchant." - + "products.v1.UpdateProductInputRequest\0322.google.shopping.merchant.products.v1.Pro" - + "ductInput\"o\332A\031product_input,update_mask\202" - + "\323\344\223\002M2 + * Output only. The **unpadded base64url encoded name** of the product. + * Format: + * `accounts/{account}/products/{product}` where the last + * section `product` is the unpadded base64url encoding of the + * `content_language~feed_label~offer_id` name. + * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product + * name `accounts/123/products/en~US~sku/123`. This field can be used directly + * as input to the API methods that require the product name to be encoded if + * it contains special characters, for example + * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get). + * + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The base64EncodedName. + */ + java.lang.String getBase64EncodedName(); + + /** + * + * + *
              +   * Output only. The **unpadded base64url encoded name** of the product.
              +   * Format:
              +   * `accounts/{account}/products/{product}` where the last
              +   * section `product` is the unpadded base64url encoding of the
              +   * `content_language~feed_label~offer_id` name.
              +   * Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
              +   * name `accounts/123/products/en~US~sku/123`. This field can be used directly
              +   * as input to the API methods that require the product name to be encoded if
              +   * it contains special characters, for example
              +   * [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
              +   * 
              + * + * string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for base64EncodedName. + */ + com.google.protobuf.ByteString getBase64EncodedNameBytes(); + /** * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java index 8a6cee100c38..481333f7470c 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java @@ -157,7 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ":google/shopping/merchant/products/v1/products_common.proto\022$google.shopping.me" + "rchant.products.v1\032\037google/api/field_beh" + "avior.proto\032\037google/protobuf/timestamp.proto\032" - + " google/shopping/type/types.proto\032\032google/type/interval.proto\"\266D\n" + + " google/shopping/type/types.proto\032\032google/type/interval.proto\"\361D\n" + "\021ProductAttributes\022\036\n" + "\021identifier_exists\030\004 \001(\010H\000\210\001\001\022\026\n" + "\tis_bundle\030\005 \001(\010H\001\210\001\001\022\022\n" @@ -233,68 +233,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".merchant.products.v1.ProductAttributes.ShippingBusinessDaysConfig\022X\n" + "\025handling_cutoff_times\030\215\001" + " \003(\01328.google.shopping.merchant.products.v1.HandlingCutoffTime\022\033\n" - + "\016shipping_label\030. \001(\tH\027\210\001\001\022\037\n" - + "\022transit_time_label\030/ \001(\tH\030\210\001\001\022\021\n" - + "\004size\0300 \001(\tH\031\210\001\001\022J\n" + + "\016shipping_label\030. \001(\tH\027\210\001\001\022!\n" + + "\023return_policy_label\030\252\001 \001(\tH\030\210\001\001\022\037\n" + + "\022transit_time_label\030/ \001(\tH\031\210\001\001\022\021\n" + + "\004size\0300 \001(\tH\032\210\001\001\022J\n" + "\013size_system\0301" - + " \001(\01620.google.shopping.merchant.products.v1.SizeSystemH\032\210\001\001\022B\n\n" + + " \001(\01620.google.shopping.merchant.products.v1.SizeSystemH\033\210\001\001\022B\n\n" + "size_types\0302 \003(\0162..google.shopping.merchant.products.v1.SizeType\022a\n" - + "\027energy_efficiency_class\0305 \001(\0162;.google.shopping.merchan" - + "t.products.v1.EnergyEfficiencyClassH\033\210\001\001\022e\n" - + "\033min_energy_efficiency_class\0306 \001(\0162;." - + "google.shopping.merchant.products.v1.EnergyEfficiencyClassH\034\210\001\001\022e\n" - + "\033max_energy_efficiency_class\0307 \001(\0162;.google.shopping.m" - + "erchant.products.v1.EnergyEfficiencyClassH\035\210\001\001\022V\n" - + "\024unit_pricing_measure\0308 \001(\01328.g" - + "oogle.shopping.merchant.products.v1.UnitPricingMeasure\022_\n" + + "\027energy_efficiency_class\0305" + + " \001(\0162;.google.shopping.merchant.products.v1.EnergyEfficiencyClassH\034\210\001\001\022e\n" + + "\033min_energy_efficiency_class\0306 \001(\0162;.googl" + + "e.shopping.merchant.products.v1.EnergyEfficiencyClassH\035\210\001\001\022e\n" + + "\033max_energy_efficiency_class\0307 \001(\0162;.google.shopping.mercha" + + "nt.products.v1.EnergyEfficiencyClassH\036\210\001\001\022V\n" + + "\024unit_pricing_measure\0308 \001(\01328.google" + + ".shopping.merchant.products.v1.UnitPricingMeasure\022_\n" + "\031unit_pricing_base_measure\0309" + " \001(\0132<.google.shopping.merchant.products.v1.UnitPricingBaseMeasure\022\026\n" - + "\tmultipack\030: \001(\003H\036\210\001\001\022\031\n" - + "\014ads_grouping\030; \001(\tH\037\210\001\001\022\022\n\n" + + "\tmultipack\030: \001(\003H\037\210\001\001\022\031\n" + + "\014ads_grouping\030; \001(\tH \210\001\001\022\022\n" + + "\n" + "ads_labels\030< \003(\t\022\031\n" - + "\014ads_redirect\030= \001(\tH \210\001\001\0227\n" + + "\014ads_redirect\030= \001(\tH!\210\001\001\0227\n" + "\022cost_of_goods_sold\030> \001(\0132\033.google.shopping.type.Price\022L\n" + "\017product_details\030?" + " \003(\01323.google.shopping.merchant.products.v1.ProductDetail\022\032\n" + "\022product_highlights\030@ \003(\t\022\033\n" - + "\016display_ads_id\030A \001(\tH!\210\001\001\022\037\n" + + "\016display_ads_id\030A \001(\tH\"\210\001\001\022\037\n" + "\027display_ads_similar_ids\030B \003(\t\022\036\n" - + "\021display_ads_title\030C \001(\tH\"\210\001\001\022\035\n" - + "\020display_ads_link\030D \001(\tH#\210\001\001\022\036\n" - + "\021display_ads_value\030E \001(\001H$\210\001\001\022\025\n\r" + + "\021display_ads_title\030C \001(\tH#\210\001\001\022\035\n" + + "\020display_ads_link\030D \001(\tH$\210\001\001\022\036\n" + + "\021display_ads_value\030E \001(\001H%\210\001\001\022\025\n\r" + "promotion_ids\030F \003(\t\022N\n\r" + "pickup_method\030P" - + " \001(\01622.google.shopping.merchant.products.v1.PickupMethodH%\210\001\001\022H\n\n" + + " \001(\01622.google.shopping.merchant.products.v1.PickupMethodH&\210\001\001\022H\n\n" + "pickup_sla\030Q" - + " \001(\0162/.google.shopping.merchant.products.v1.PickupSlaH&\210\001\001\022\032\n\r" - + "link_template\030R \001(\tH\'\210\001\001\022!\n" - + "\024mobile_link_template\030S \001(\tH(\210\001\001\022\033\n" - + "\016custom_label_0\030G \001(\tH)\210\001\001\022\033\n" - + "\016custom_label_1\030H \001(\tH*\210\001\001\022\033\n" - + "\016custom_label_2\030I \001(\tH+\210\001\001\022\033\n" - + "\016custom_label_3\030J \001(\tH,\210\001\001\022\033\n" - + "\016custom_label_4\030K \001(\tH-\210\001\001\022P\n" + + " \001(\0162/.google.shopping.merchant.products.v1.PickupSlaH\'\210\001\001\022\032\n\r" + + "link_template\030R \001(\tH(\210\001\001\022!\n" + + "\024mobile_link_template\030S \001(\tH)\210\001\001\022\033\n" + + "\016custom_label_0\030G \001(\tH*\210\001\001\022\033\n" + + "\016custom_label_1\030H \001(\tH+\210\001\001\022\033\n" + + "\016custom_label_2\030I \001(\tH,\210\001\001\022\033\n" + + "\016custom_label_3\030J \001(\tH-\210\001\001\022\033\n" + + "\016custom_label_4\030K \001(\tH.\210\001\001\022P\n" + "\025included_destinations\030L" + " \003(\01621.google.shopping.type.Destination.DestinationEnum\022P\n" - + "\025excluded_destinations\030M \003(\01621.google.sho" - + "pping.type.Destination.DestinationEnum\022\'\n" + + "\025excluded_destinations\030M" + + " \003(\01621.google.shopping.type.Destination.DestinationEnum\022\'\n" + "\037shopping_ads_excluded_countries\030N \003(\t\022\037\n" - + "\022external_seller_id\030\001 \001(\tH.\210\001\001\022?\n" + + "\022external_seller_id\030\001 \001(\tH/\210\001\001\022?\n" + "\005pause\030\r" - + " \001(\0162+.google.shopping.merchant.products.v1.PauseH/\210\001\001\022\035\n" + + " \001(\0162+.google.shopping.merchant.products.v1.PauseH0\210\001\001\022\035\n" + "\025lifestyle_image_links\030\016 \003(\t\022q\n" - + "\"cloud_export_additional_properties\030T \003(\0132E.google.shopping.merchant." - + "products.v1.CloudExportAdditionalProperties\022 \n" - + "\022virtual_model_link\030\202\001 \001(\tH0\210\001\001\022R\n" - + "\016certifications\030{ \003(\0132:.google.shopping." - + "merchant.products.v1.ProductCertification\022U\n" - + "\020structured_title\030\204\001 \001(\01325.google.sh" - + "opping.merchant.products.v1.StructuredTitleH1\210\001\001\022a\n" - + "\026structured_description\030\205\001 \001(" - + "\0132;.google.shopping.merchant.products.v1.StructuredDescriptionH2\210\001\001\022;\n" + + "\"cloud_export_additional_properties\030T" + + " \003(\0132E.google.shopping.merchant.products.v1.CloudExportAdditionalProperties\022" + + " \n" + + "\022virtual_model_link\030\202\001 \001(\tH1\210\001\001\022R\n" + + "\016certifications\030{" + + " \003(\0132:.google.shopping.merchant.products.v1.ProductCertification\022U\n" + + "\020structured_title\030\204\001 \001(\01325.google.shoppin" + + "g.merchant.products.v1.StructuredTitleH2\210\001\001\022a\n" + + "\026structured_description\030\205\001 \001(\0132;.g" + + "oogle.shopping.merchant.products.v1.StructuredDescriptionH3\210\001\001\022;\n" + "\026auto_pricing_min_price\030| \001(\0132\033.google.shopping.type.Price\022h\n" - + "\031sustainability_incentives\030\212\001" - + " \003(\0132D.google.shopping.merchant.products.v1.ProductSustainabilityIncentive\032l\n" + + "\031sustainability_incentives\030\212\001 \003(\0132" + + "D.google.shopping.merchant.products.v1.ProductSustainabilityIncentive\032l\n" + "\032ShippingBusinessDaysConfig\022\024\n" + "\007country\030\001 \001(\tH\000\210\001\001\022\032\n\r" + "business_days\030\002 \001(\tH\001\210\001\001B\n\n" @@ -306,8 +309,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013postal_code\030\003 \001(\tH\002\210\001\001\022\037\n" + "\022origin_postal_code\030\004 \001(\tH\003\210\001\001\0224\n\n" + "flat_price\030\005 \001(\0132\033.google.shopping.type.PriceH\004\210\001\001\022f\n\r" - + "carrier_price\030\006 \001(\0162J.google.shoppin" - + "g.merchant.products.v1.ProductAttributes.CarrierPriceOptionH\005\210\001\001\022G\n" + + "carrier_price\030\006 \001(\0162J.google.shopping.mer" + + "chant.products.v1.ProductAttributes.CarrierPriceOptionH\005\210\001\001\022G\n" + "\035carrier_price_flat_adjustment\030\007" + " \001(\0132\033.google.shopping.type.PriceH\006\210\001\001\0220\n" + "#carrier_price_percentage_adjustment\030\010 \001(\001H\007\210\001\001\022\036\n" @@ -318,8 +321,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022#\n" + "\026fixed_max_transit_time\030\014 \001(\003H\013\210\001\001\022a\n" + "\024carrier_transit_time\030\r" - + " \001(\0162>.go" - + "ogle.shopping.merchant.products.v1.CarrierTransitTimeOptionH\014\210\001\001B\n\n" + + " \001(\0162>.google." + + "shopping.merchant.products.v1.CarrierTransitTimeOptionH\014\210\001\001B\n\n" + "\010_countryB\t\n" + "\007_regionB\016\n" + "\014_postal_codeB\025\n" @@ -421,7 +424,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030_sell_on_google_quantityB\024\n" + "\022_max_handling_timeB\024\n" + "\022_min_handling_timeB\021\n" - + "\017_shipping_labelB\025\n" + + "\017_shipping_labelB\026\n" + + "\024_return_policy_labelB\025\n" + "\023_transit_time_labelB\007\n" + "\005_sizeB\016\n" + "\014_size_systemB\032\n" @@ -462,8 +466,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\001 \001(\001\022\014\n" + "\004unit\030\002 \001(\t\"\240\001\n" + "\020SubscriptionCost\022H\n" - + "\006period\030\001 \001(\01628.google.sho" - + "pping.merchant.products.v1.SubscriptionPeriod\022\025\n\r" + + "\006period\030\001" + + " \001(\01628.google.shopping.merchant.products.v1.SubscriptionPeriod\022\025\n\r" + "period_length\030\002 \001(\003\022+\n" + "\006amount\030\003 \001(\0132\033.google.shopping.type.Price\"\364\001\n" + "\022ProductInstallment\022\016\n" @@ -471,8 +475,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006amount\030\002 \001(\0132\033.google.shopping.type.Price\0225\n" + "\013downpayment\030\003" + " \001(\0132\033.google.shopping.type.PriceH\000\210\001\001\022J\n" - + "\013credit_type\030\004 \001(\01620.goog" - + "le.shopping.merchant.products.v1.CreditTypeH\001\210\001\001B\016\n" + + "\013credit_type\030\004" + + " \001(\01620.google.shopping.merchant.products.v1.CreditTypeH\001\210\001\001B\016\n" + "\014_downpaymentB\016\n" + "\014_credit_type\"B\n\r" + "LoyaltyPoints\022\014\n" @@ -529,10 +533,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016attribute_name\030\002 \001(\t\022\027\n" + "\017attribute_value\030\003 \001(\t\"\371\002\n" + "\024ProductCertification\022b\n" - + "\027certification_authority\030\001 " - + "\001(\0162<.google.shopping.merchant.products.v1.CertificationAuthorityH\000\210\001\001\022X\n" - + "\022certification_name\030\002 \001(\01627.google.shopping.mer" - + "chant.products.v1.CertificationNameH\001\210\001\001\022\037\n" + + "\027certification_authority\030\001 \001(\0162<.google.shopping" + + ".merchant.products.v1.CertificationAuthorityH\000\210\001\001\022X\n" + + "\022certification_name\030\002 \001(\01627." + + "google.shopping.merchant.products.v1.CertificationNameH\001\210\001\001\022\037\n" + "\022certification_code\030\003 \001(\tH\002\210\001\001\022 \n" + "\023certification_value\030\004 \001(\tH\003\210\001\001B\032\n" + "\030_certification_authorityB\025\n" @@ -540,14 +544,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_certification_codeB\026\n" + "\024_certification_value\"\246\001\n" + "\017StructuredTitle\022Y\n" - + "\023digital_source_type\030\001" - + " \001(\01627.google.shopping.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + + "\023digital_source_type\030\001 \001(\01627.goog" + + "le.shopping.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + "\007content\030\002 \001(\tH\001\210\001\001B\026\n" + "\024_digital_source_typeB\n\n" + "\010_content\"\254\001\n" + "\025StructuredDescription\022Y\n" - + "\023digital_source_type\030\001 \001(\01627.google.s" - + "hopping.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + + "\023digital_source_type\030\001" + + " \001(\01627.google.shopping.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + "\007content\030\002 \001(\tH\001\210\001\001B\026\n" + "\024_digital_source_typeB\n\n" + "\010_content\"9\n" @@ -558,28 +562,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\001 \001(\001B\003\340A\002\022\021\n" + "\004unit\030\002 \001(\tB\003\340A\002\"\353\007\n\r" + "ProductStatus\022c\n" - + "\024destination_statuses\030\003 \003(\0132E.googl" - + "e.shopping.merchant.products.v1.ProductStatus.DestinationStatus\022]\n" - + "\021item_level_issues\030\004 \003(\0132B.google.shopping.merchant.pr" - + "oducts.v1.ProductStatus.ItemLevelIssue\0221\n\r" + + "\024destination_statuses\030\003 \003(\0132E.google.shopping.merchant.p" + + "roducts.v1.ProductStatus.DestinationStatus\022]\n" + + "\021item_level_issues\030\004 \003(\0132B.google.s" + + "hopping.merchant.products.v1.ProductStatus.ItemLevelIssue\0221\n\r" + "creation_date\030\005 \001(\0132\032.google.protobuf.Timestamp\0224\n" + "\020last_update_date\030\006 \001(\0132\032.google.protobuf.Timestamp\022:\n" + "\026google_expiration_date\030\007" + " \001(\0132\032.google.protobuf.Timestamp\032\301\001\n" + "\021DestinationStatus\022V\n" - + "\021reporting_context\030\001" - + " \001(\0162;.google.shopping.type.ReportingContext.ReportingContextEnum\022\032\n" + + "\021reporting_context\030\001 \001(\0162;.google" + + ".shopping.type.ReportingContext.ReportingContextEnum\022\032\n" + "\022approved_countries\030\002 \003(\t\022\031\n" + "\021pending_countries\030\003 \003(\t\022\035\n" + "\025disapproved_countries\030\004 \003(\t\032\254\003\n" + "\016ItemLevelIssue\022\014\n" + "\004code\030\001 \001(\t\022]\n" - + "\010severity\030\002 \001(\0162K.google.shopping.merchant.pr" - + "oducts.v1.ProductStatus.ItemLevelIssue.Severity\022\022\n\n" + + "\010severity\030\002 \001(\0162K.google.s" + + "hopping.merchant.products.v1.ProductStatus.ItemLevelIssue.Severity\022\022\n\n" + "resolution\030\003 \001(\t\022\021\n" + "\tattribute\030\004 \001(\t\022V\n" - + "\021reporting_context\030\005 \001(\0162;.goog" - + "le.shopping.type.ReportingContext.ReportingContextEnum\022\023\n" + + "\021reporting_context\030\005" + + " \001(\0162;.google.shopping.type.ReportingContext.ReportingContextEnum\022\023\n" + "\013description\030\006 \001(\t\022\016\n" + "\006detail\030\007 \001(\t\022\025\n\r" + "documentation\030\010 \001(\t\022\034\n" @@ -600,14 +604,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tunit_code\030\010 \001(\tH\004\210\001\001B\020\n" + "\016_property_nameB\r\n" + "\013_bool_valueB\014\n\n" - + "_min_valueB\014\n\n" + + "_min_valueB\014\n" + + "\n" + "_max_valueB\014\n\n" + "_unit_code\"\235\002\n" + "\036ProductSustainabilityIncentive\022-\n" + "\006amount\030\002 \001(\0132\033.google.shopping.type.PriceH\000\022\024\n\n" + "percentage\030\003 \001(\001H\000\022\\\n" - + "\004type\030\001 \001(\0162I.google.shopping.merchant.products" - + ".v1.ProductSustainabilityIncentive.TypeH\001\210\001\001\"F\n" + + "\004type\030\001 \001(\0162I.google.shoppin" + + "g.merchant.products.v1.ProductSustainabilityIncentive.TypeH\001\210\001\001\"F\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\021\n\r" + "EV_TAX_CREDIT\020\001\022\025\n" @@ -654,8 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Gender\022\026\n" + "\022GENDER_UNSPECIFIED\020\000\022\010\n" + "\004MALE\020\001\022\n\n" - + "\006FEMALE\020\002\022\n" - + "\n" + + "\006FEMALE\020\002\022\n\n" + "\006UNISEX\020\003*A\n\n" + "CreditType\022\033\n" + "\027CREDIT_TYPE_UNSPECIFIED\020\000\022\013\n" @@ -761,25 +765,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023FEDEX_HOME_DELIVERY\020\025\022\027\n" + "\023FEDEX_EXPRESS_SAVER\020\026\022\031\n" + "\025FEDEX_FIRST_OVERNIGHT\020\027\022\034\n" - + "\030FEDEX_PRIORITY_OVERNIGHT\020\030\022\034\n" - + "\030FEDEX_STANDARD_OVERNIGHT\020\031\022\016\n\n" - + "FEDEX_2DAY\020\032\022\023\n" - + "\017UPS_2", - "ND_DAY_AIR\020\033\022\022\n\016UPS_2ND_DAY_AM\020\034\022\024\n\020UPS_" - + "3_DAY_SELECT\020\035\022\016\n\nUPS_GROUND\020\036\022\024\n\020UPS_NE" - + "XT_DAY_AIR\020\037\022\035\n\031UPS_NEXT_DAY_AIR_EARLY_A" - + "M\020 \022\032\n\026UPS_NEXT_DAY_AIR_SAVER\020!\022\036\n\032USPS_" - + "PRIORITY_MAIL_EXPRESS\020\"\022\023\n\017USPS_MEDIA_MA" - + "IL\020#\022 \n\034USPS_GROUND_ADVANTAGE_RETAIL\020$\022\026" - + "\n\022USPS_PRIORITY_MAIL\020%\022$\n USPS_GROUND_AD" - + "VANTAGE_COMMERCIAL\020&\022\031\n\025USPS_FIRST_CLASS" - + "_MAIL\020\'B\206\002\n(com.google.shopping.merchant" - + ".products.v1B\023ProductsCommonProtoP\001ZJclo" - + "ud.google.com/go/shopping/merchant/produ" - + "cts/apiv1/productspb;productspb\252\002$Google" - + ".Shopping.Merchant.Products.V1\312\002$Google\\" - + "Shopping\\Merchant\\Products\\V1\352\002(Google::" - + "Shopping::Merchant::Products::V1b\006proto3" + + "\030FEDEX_PRIORITY_OVERNIG", + "HT\020\030\022\034\n\030FEDEX_STANDARD_OVERNIGHT\020\031\022\016\n\nFE" + + "DEX_2DAY\020\032\022\023\n\017UPS_2ND_DAY_AIR\020\033\022\022\n\016UPS_2" + + "ND_DAY_AM\020\034\022\024\n\020UPS_3_DAY_SELECT\020\035\022\016\n\nUPS" + + "_GROUND\020\036\022\024\n\020UPS_NEXT_DAY_AIR\020\037\022\035\n\031UPS_N" + + "EXT_DAY_AIR_EARLY_AM\020 \022\032\n\026UPS_NEXT_DAY_A" + + "IR_SAVER\020!\022\036\n\032USPS_PRIORITY_MAIL_EXPRESS" + + "\020\"\022\023\n\017USPS_MEDIA_MAIL\020#\022 \n\034USPS_GROUND_A" + + "DVANTAGE_RETAIL\020$\022\026\n\022USPS_PRIORITY_MAIL\020" + + "%\022$\n USPS_GROUND_ADVANTAGE_COMMERCIAL\020&\022" + + "\031\n\025USPS_FIRST_CLASS_MAIL\020\'B\206\002\n(com.googl" + + "e.shopping.merchant.products.v1B\023Product" + + "sCommonProtoP\001ZJcloud.google.com/go/shop" + + "ping/merchant/products/apiv1/productspb;" + + "productspb\252\002$Google.Shopping.Merchant.Pr" + + "oducts.V1\312\002$Google\\Shopping\\Merchant\\Pro" + + "ducts\\V1\352\002(Google::Shopping::Merchant::P" + + "roducts::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -848,6 +851,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ShippingTransitBusinessDays", "HandlingCutoffTimes", "ShippingLabel", + "ReturnPolicyLabel", "TransitTimeLabel", "Size", "SizeSystem", diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsProto.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsProto.java index 6519a38cd12c..65c917ab9553 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsProto.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsProto.java @@ -65,60 +65,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "3google/shopping/merchant/products/v1/products.proto\022$google.shopping.merchant." + "\n3google/shopping/merchant/products/v1/p" + + "roducts.proto\022$google.shopping.merchant." + "products.v1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032:google/shopping/merchant/products/v1/products_common.proto\032" - + " google/shopping/type/types.proto\"\357\004\n" - + "\007Product\022\014\n" - + "\004name\030\001 \001(\t\022\031\n" - + "\014legacy_local\030\013 \001(\010B\003\340A\003\022\025\n" - + "\010offer_id\030\003 \001(\tB\003\340A\003\022\035\n" - + "\020content_language\030\004 \001(\tB\003\340A\003\022\027\n\n" - + "feed_label\030\005 \001(\tB\003\340A\003\022\030\n" - + "\013data_source\030\006 \001(\tB\003\340A\003\022 \n" - + "\016version_number\030\007 \001(\003B\003\340A\003H\000\210\001\001\022X\n" - + "\022product_attributes\030\r" - + " \001(\013" - + "27.google.shopping.merchant.products.v1.ProductAttributesB\003\340A\003\022E\n" - + "\021custom_attributes\030\t" - + " \003(\0132%.google.shopping.type.CustomAttributeB\003\340A\003\022P\n" - + "\016product_status\030\n" - + " \001(\01323.google.shopping.merchant.products.v1.ProductStatusB\003\340A\003\022Z\n" - + "\023automated_discounts\030\014" - + " \001(\01328.google.shopping.merchant.products.v1.AutomatedDiscountsB\003\340A\003:N\352AK\n" - + "\"merchantapi.googleapis.com/Product\022%accounts/{account}/products/{product}B\021\n" - + "\017_version_number\"M\n" - + "\021GetProductRequest\0228\n" - + "\004name\030\001 \001(\tB*\340A\002\372A$\n" - + "\"merchantapi.googleapis.com/Product\"x\n" - + "\023ListProductsRequest\022:\n" - + "\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"merchantapi.googleapis.com/Product\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"p\n" - + "\024ListProductsResponse\022?\n" - + "\010products\030\001" - + " \003(\0132-.google.shopping.merchant.products.v1.Product\022\027\n" - + "\017next_page_token\030\002 \001(\t2\317\003\n" - + "\017ProductsService\022\256\001\n\n" - + "GetProduct\0227.google.shopping.merchant.products.v1.GetP" - + "roductRequest\032-.google.shopping.merchant" - + ".products.v1.Product\"8\332A\004name\202\323\344\223\002+\022)/pr" - + "oducts/v1/{name=accounts/*/products/*}\022\301\001\n" - + "\014ListProducts\0229.google.shopping.mercha" - + "nt.products.v1.ListProductsRequest\032:.google.shopping.merchant.products.v1.ListPr" - + "oductsResponse\":\332A\006parent\202\323\344\223\002+\022)/produc" - + "ts/v1/{parent=accounts/*}/products\032G\312A\032m" - + "erchantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\273\002\n" - + "(com.google.shopping.merchant.products.v1B\r" - + "ProductsProtoP\001ZJcloud.google.com/go/shopping/" - + "merchant/products/apiv1/productspb;productspb\252\002$Google.Shopping.Merchant.Product" - + "s.V1\312\002$Google\\Shopping\\Merchant\\Products" - + "\\V1\352\002(Google::Shopping::Merchant::Products::V1\352A8\n" - + "\"merchantapi.googleapis.com/Account\022\022accounts/{account}b\006proto3" + + ".proto\032:google/shopping/merchant/product" + + "s/v1/products_common.proto\032 google/shopp" + + "ing/type/types.proto\"\221\005\n\007Product\022\014\n\004name" + + "\030\001 \001(\t\022 \n\023base64_encoded_name\030\017 \001(\tB\003\340A\003" + + "\022\031\n\014legacy_local\030\013 \001(\010B\003\340A\003\022\025\n\010offer_id\030" + + "\003 \001(\tB\003\340A\003\022\035\n\020content_language\030\004 \001(\tB\003\340A" + + "\003\022\027\n\nfeed_label\030\005 \001(\tB\003\340A\003\022\030\n\013data_sourc" + + "e\030\006 \001(\tB\003\340A\003\022 \n\016version_number\030\007 \001(\003B\003\340A" + + "\003H\000\210\001\001\022X\n\022product_attributes\030\r \001(\01327.goo" + + "gle.shopping.merchant.products.v1.Produc" + + "tAttributesB\003\340A\003\022E\n\021custom_attributes\030\t " + + "\003(\0132%.google.shopping.type.CustomAttribu" + + "teB\003\340A\003\022P\n\016product_status\030\n \001(\01323.google" + + ".shopping.merchant.products.v1.ProductSt" + + "atusB\003\340A\003\022Z\n\023automated_discounts\030\014 \001(\01328" + + ".google.shopping.merchant.products.v1.Au" + + "tomatedDiscountsB\003\340A\003:N\352AK\n\"merchantapi." + + "googleapis.com/Product\022%accounts/{accoun" + + "t}/products/{product}B\021\n\017_version_number" + + "\"M\n\021GetProductRequest\0228\n\004name\030\001 \001(\tB*\340A\002" + + "\372A$\n\"merchantapi.googleapis.com/Product\"" + + "x\n\023ListProductsRequest\022:\n\006parent\030\001 \001(\tB*" + + "\340A\002\372A$\022\"merchantapi.googleapis.com/Produ" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"p\n\024ListProductsResponse\022?\n\010products\030\001 " + + "\003(\0132-.google.shopping.merchant.products." + + "v1.Product\022\027\n\017next_page_token\030\002 \001(\t2\317\003\n\017" + + "ProductsService\022\256\001\n\nGetProduct\0227.google." + + "shopping.merchant.products.v1.GetProduct" + + "Request\032-.google.shopping.merchant.produ" + + "cts.v1.Product\"8\332A\004name\202\323\344\223\002+\022)/products" + + "/v1/{name=accounts/*/products/*}\022\301\001\n\014Lis" + + "tProducts\0229.google.shopping.merchant.pro" + + "ducts.v1.ListProductsRequest\032:.google.sh" + + "opping.merchant.products.v1.ListProducts" + + "Response\":\332A\006parent\202\323\344\223\002+\022)/products/v1/" + + "{parent=accounts/*}/products\032G\312A\032merchan" + + "tapi.googleapis.com\322A\'https://www.google" + + "apis.com/auth/contentB\273\002\n(com.google.sho" + + "pping.merchant.products.v1B\rProductsProt" + + "oP\001ZJcloud.google.com/go/shopping/mercha" + + "nt/products/apiv1/productspb;productspb\252" + + "\002$Google.Shopping.Merchant.Products.V1\312\002" + + "$Google\\Shopping\\Merchant\\Products\\V1\352\002(" + + "Google::Shopping::Merchant::Products::V1" + + "\352A8\n\"merchantapi.googleapis.com/Account\022" + + "\022accounts/{account}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -138,6 +136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_shopping_merchant_products_v1_Product_descriptor, new java.lang.String[] { "Name", + "Base64EncodedName", "LegacyLocal", "OfferId", "ContentLanguage", diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/productinputs.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/productinputs.proto index d235624e8cd9..00534fb4e68c 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/productinputs.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/productinputs.proto @@ -138,10 +138,10 @@ message ProductInput { // MUST be used if any part of the product identifier (like `offer_id`) // contains characters such as `/`, `%`, or `~`. // * Example: To represent the product ID `en~US~sku/123`, the - // `{productinput}` segment must be the base64url encoding of this - // string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + // `{productinput}` segment must be the unpadded base64url encoding of + // this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name // for the product would be - // `accounts/123/productinputs/ZW5-VVMtc2t1LzEyMw`. + // `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. // // 2. **Plain Format**: The `{productinput}` segment is the tilde-separated // string @@ -153,16 +153,36 @@ message ProductInput { // correct parsing, especially those containing special characters. The // presence of tilde (`~`) characters in the `{productinput}` segment is used // to differentiate between the two formats. - // - // Note: For calls to the v1beta version, the plain format is - // `channel~content_language~feed_label~offer_id`, for example: - // `accounts/123/productinputs/online~en~US~sku123`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + // Output only. The **unpadded base64url encoded name** of the product input. + // Format: + // `accounts/{account}/productInputs/{productinput}` where the last + // section `productinput` is the unpadded base64url encoding of the + // `content_language~feed_label~offer_id` name. + // Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded + // product input name `accounts/123/productInputs/en~US~sku/123`. This field + // can be used directly as input to the API methods that require the product + // input name to be encoded if it contains special characters, for example + // [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get). + string base64_encoded_name = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The name of the processed product. // Format: `accounts/{account}/products/{product}` string product = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The **unpadded base64url encoded name** of the processed + // product. Format: `accounts/{account}/products/{product}` where the last + // section `product` is the unpadded base64url encoding of the + // `content_language~feed_label~offer_id` name. + // Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded + // product name `accounts/123/products/en~US~sku/123`. This field can be used + // directly as input to the API methods that require the product name to be + // encoded if it contains special characters, for example + // [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get). + string base64_encoded_product = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. Determines whether the product is **only** targeting // local destinations and whether the product name should be distinguished // with a `local~` prefix. For example, @@ -326,10 +346,10 @@ message DeleteProductInputRequest { // MUST be used if any part of the product identifier (like `offer_id`) // contains characters such as `/`, `%`, or `~`. // * Example: To represent the product ID `en~US~sku/123`, the - // `{productInput}` segment must be the base64url encoding of this - // string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + // `{productInput}` segment must be the unpadded base64url encoding of + // this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name // for the product would be - // `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`. + // `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. // // 2. **Plain Format**: The `{productInput}` segment is the tilde-separated // string @@ -341,10 +361,6 @@ message DeleteProductInputRequest { // correct parsing, especially those containing special characters. The // presence of tilde (`~`) characters in the `{productInput}` segment is used // to differentiate between the two formats. - // - // Note: For calls to the v1beta version, the plain format is - // `channel~content_language~feed_label~offer_id`, for example: - // `accounts/123/productinputs/online~en~US~sku123`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products.proto index a90907714410..e67abc69823c 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products.proto @@ -96,6 +96,18 @@ message Product { // `accounts/123/products/online~en~US~sku123`. string name = 1; + // Output only. The **unpadded base64url encoded name** of the product. + // Format: + // `accounts/{account}/products/{product}` where the last + // section `product` is the unpadded base64url encoding of the + // `content_language~feed_label~offer_id` name. + // Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product + // name `accounts/123/products/en~US~sku/123`. This field can be used directly + // as input to the API methods that require the product name to be encoded if + // it contains special characters, for example + // [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get). + string base64_encoded_name = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Determines whether the product is **only** targeting // local destinations and whether the product name should be distinguished // with a `local~` prefix. For example, @@ -182,10 +194,10 @@ message GetProductRequest { // MUST be used if any part of the product identifier (like `offer_id`) // contains characters such as `/`, `%`, or `~`. // * Example: To represent the product ID `en~US~sku/123`, the - // `{product}` segment must be the base64url encoding of this - // string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name + // `{product}` segment must be the unpadded base64url encoding of this + // string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name // for the product would be - // `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. + // `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. // // 2. **Plain Format**: The `{product}` segment is the tilde-separated string // `content_language~feed_label~offer_id`. This format is suitable only diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto index 65f5d5690db0..f78c2b365c40 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto @@ -1014,10 +1014,16 @@ message ProductAttributes { // The handling cutoff times for shipping. repeated HandlingCutoffTime handling_cutoff_times = 141; - // The shipping label of the product, used to group product in account-level - // shipping rules. + // The shipping label of the product, used to group products in account-level + // shipping rules. Max. 100 characters. For more information, see + // [Shipping label](https://support.google.com/merchants/answer/6324504). optional string shipping_label = 46; + // The return label of the product, used to group products in account-level + // return policies. Max. 100 characters. For more information, see + // [Return policy label](https://support.google.com/merchants/answer/9445425). + optional string return_policy_label = 170; + // The transit time label of the product, used to group product in // account-level transit time tables. optional string transit_time_label = 47; diff --git a/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml b/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml index 980457b6f312..daa80c453010 100644 --- a/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-promotions/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-promotions/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/promotions/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 7625a8e4233d..438f453733c2 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-promotions - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.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-shopping-merchant-quota/.OwlBot-hermetic.yaml b/java-shopping-merchant-quota/.OwlBot-hermetic.yaml index 7ab8931c801f..845a84f44df0 100644 --- a/java-shopping-merchant-quota/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-quota/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-quota/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-quota/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/quota/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index e249cf417de2..12d6412d9b17 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-quota - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.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-shopping-merchant-reports/.OwlBot-hermetic.yaml b/java-shopping-merchant-reports/.OwlBot-hermetic.yaml index 0f25561a6210..c2696556538a 100644 --- a/java-shopping-merchant-reports/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-reports/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-reports/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-reports/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/reports/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index a47dcdfe8f7e..86f7cca834fb 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reports - 1.16.0 + 1.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.16.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.18.0" ``` ## Authentication @@ -152,7 +152,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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.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-shopping-merchant-reviews/.OwlBot-hermetic.yaml b/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml index 4b4d093ba6fe..e0d092823073 100644 --- a/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-shopping-merchant-reviews/samples/snippets/generated" deep-preserve-regex: -- "/java-shopping-merchant-reviews/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/shopping/merchant/reviews/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index ab0b164331f7..e323bbe38a40 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reviews - 0.34.0 + 0.36.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.34.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.34.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.36.0" ``` ## Authentication @@ -158,7 +158,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.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/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-spanner/.OwlBot-hermetic.yaml b/java-spanner/.OwlBot-hermetic.yaml index dec6b8d39446..11cafc11a5c3 100644 --- a/java-spanner/.OwlBot-hermetic.yaml +++ b/java-spanner/.OwlBot-hermetic.yaml @@ -18,31 +18,32 @@ deep-remove-regex: - /java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1 - /java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin deep-preserve-regex: -- /java-spanner/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java -- /java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CryptoKeyName.java -- /java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CryptoKeyVersionName.java +- /.*google-.*/src/main/java/.*/stub/Version.java +- /.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java +- /.*proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CryptoKeyName.java +- /.*proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CryptoKeyVersionName.java deep-copy-regex: - source: /google/spanner/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-spanner/$1/proto-google-cloud-spanner-$1/src - source: /google/spanner/(v.*)/.*-java/grpc-google-.*/src dest: /owl-bot-staging/java-spanner/$1/grpc-google-cloud-spanner-$1/src - source: /google/spanner/(v.*)/.*-java/gapic-google-.*/src - dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner/src/ + dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner/src - source: /google/spanner/admin/database/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-spanner/$1/proto-google-cloud-spanner-admin-database-$1/src - source: /google/spanner/admin/database/(v.*)/.*-java/grpc-google-.*/src dest: /owl-bot-staging/java-spanner/$1/grpc-google-cloud-spanner-admin-database-$1/src - source: /google/spanner/admin/database/(v.*)/.*-java/gapic-google-.*/src - dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner/src/ + dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner/src - source: /google/spanner/admin/instance/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-spanner/$1/proto-google-cloud-spanner-admin-instance-$1/src - source: /google/spanner/admin/instance/(v.*)/.*-java/grpc-google-.*/src dest: /owl-bot-staging/java-spanner/$1/grpc-google-cloud-spanner-admin-instance-$1/src - source: /google/spanner/admin/instance/(v.*)/.*-java/gapic-google-.*/src - dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner/src/ + dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner/src - source: /google/spanner/executor/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-spanner/$1/proto-google-cloud-spanner-executor-$1/src - source: /google/spanner/executor/(v.*)/.*-java/grpc-google-.*/src dest: /owl-bot-staging/java-spanner/$1/grpc-google-cloud-spanner-executor-$1/src - source: /google/spanner/executor/(v.*)/.*-java/gapic-google-.*/src - dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner-executor/src/ + dest: /owl-bot-staging/java-spanner/$1/google-cloud-spanner-executor/src diff --git a/java-spanner/README.md b/java-spanner/README.md index 03914f98ef10..a0915b0bfe89 100644 --- a/java-spanner/README.md +++ b/java-spanner/README.md @@ -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.112.0' +implementation 'com.google.cloud:google-cloud-spanner:6.115.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.112.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.115.0" ``` ## Authentication @@ -550,7 +550,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.112.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.115.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractStructReader.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractStructReader.java index 9dc8690dc899..ed5bb966017f 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractStructReader.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractStructReader.java @@ -740,7 +740,8 @@ private void checkArrayElementType( if (!expectedCodes.contains(arrayElementType.getCode())) { throw new IllegalStateException( String.format( - "Array element for Column %s is not of correct type code: expected one of [%s] but was %s", + "Array element for Column %s is not of correct type code: expected one of [%s] but" + + " was %s", columnNameForError, expectedCodes, Type.array(arrayElementType))); } } @@ -750,7 +751,8 @@ private void checkArrayElementType(int columnIndex, List expectedCodes) { if (!expectedCodes.contains(arrayElementType.getCode())) { throw new IllegalStateException( String.format( - "Array element for Column %d is not of correct type code: expected one of [%s] but was %s", + "Array element for Column %d is not of correct type code: expected one of [%s] but" + + " was %s", columnIndex, expectedCodes, Type.array(arrayElementType))); } } diff --git a/java-spanneradapter/.OwlBot-hermetic.yaml b/java-spanneradapter/.OwlBot-hermetic.yaml index accec67fe030..e1613bb2f512 100644 --- a/java-spanneradapter/.OwlBot-hermetic.yaml +++ b/java-spanneradapter/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-spanneradapter/samples/snippets/generated" deep-preserve-regex: -- "/java-spanneradapter/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/spanner/adapter/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-spanneradapter/README.md b/java-spanneradapter/README.md index 4de1677ff9c7..e2b4cf7c77f9 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.24.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.24.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.26.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-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.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.26.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-speech/.OwlBot-hermetic.yaml index 399e85f41d5d..cccfac32ddd0 100644 --- a/java-speech/.OwlBot-hermetic.yaml +++ b/java-speech/.OwlBot-hermetic.yaml @@ -20,11 +20,12 @@ deep-remove-regex: - "/java-speech/google-.*/src" deep-preserve-regex: -- "/java-speech/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechSmokeTest.java" -- "/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechSmokeTest.java" -- "/java-speech/google-cloud-speech/src/test/resources/hello.flac" -- "/java-speech/google-cloud-speech/src/test/resources/META-INF/native-image/" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechSmokeTest.java" +- "/.*google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechSmokeTest.java" +- "/.*google-cloud-speech/src/test/resources/hello.flac" +- "/.*google-cloud-speech/src/test/resources/META-INF/native-image/" deep-copy-regex: - source: "/google/cloud/speech/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-speech/README.md b/java-speech/README.md index bc364e9053ac..711aacdd34a0 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.83.0 + 4.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.83.0' +implementation 'com.google.cloud:google-cloud-speech:4.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.85.0" ``` ## Authentication @@ -211,7 +211,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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.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-storage-transfer/.OwlBot-hermetic.yaml b/java-storage-transfer/.OwlBot-hermetic.yaml index 37b085434854..d27a909724d3 100644 --- a/java-storage-transfer/.OwlBot-hermetic.yaml +++ b/java-storage-transfer/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-storage-transfer/samples/snippets/generated" deep-preserve-regex: -- "/java-storage-transfer/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/storagetransfer/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index d292de55579d..34cc0c7e8a0d 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.88.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-storage/.OwlBot-hermetic.yaml index 3a281f188c5f..3b8eff6dc388 100644 --- a/java-storage/.OwlBot-hermetic.yaml +++ b/java-storage/.OwlBot-hermetic.yaml @@ -13,12 +13,13 @@ # limitations under the License. deep-preserve-regex: -- /java-storage/google-.*/src/test/java/com/google/storage/control/v2/ITFoldersTest.java +- /.*google-.*/src/main/java/.*/stub/Version.java +- /.*google-.*/src/test/java/com/google/storage/control/v2/ITFoldersTest.java deep-remove-regex: -- /java-storage/grpc-google-.*/src -- /java-storage/proto-google-.*/src -- /java-storage/gapic-google-.*/src -- /java-storage/google-cloud-storage-control/src +- /.*grpc-google-.*/src +- /.*proto-google-.*/src +- /.*gapic-google-.*/src +- /.*google-cloud-storage-control/src deep-copy-regex: - source: /google/storage/v2/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-storage/v2/proto-google-cloud-storage-v2/src diff --git a/java-storage/README.md b/java-storage/README.md index d9336399739d..fe8cd4bcd6bf 100644 --- a/java-storage/README.md +++ b/java-storage/README.md @@ -66,13 +66,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.64.1' +implementation 'com.google.cloud:google-cloud-storage:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.64.1" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.66.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.64.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.66.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-storagebatchoperations/.OwlBot-hermetic.yaml index 05677a1bb65b..5740ca2e28b9 100644 --- a/java-storagebatchoperations/.OwlBot-hermetic.yaml +++ b/java-storagebatchoperations/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-storagebatchoperations/samples/snippets/generated" deep-preserve-regex: -- "/java-storagebatchoperations/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index e6c824470258..2dd05a11c170 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 0.28.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.28.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.30.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-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.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/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-storageinsights/.OwlBot-hermetic.yaml b/java-storageinsights/.OwlBot-hermetic.yaml index f1bea3025b34..e07bfe54426c 100644 --- a/java-storageinsights/.OwlBot-hermetic.yaml +++ b/java-storageinsights/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-storageinsights/samples/snippets/generated" deep-preserve-regex: -- "/java-storageinsights/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/storageinsights/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index 070b76e3243e..7ce90a04891c 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.73.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.73.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.75.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-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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-talent/.OwlBot-hermetic.yaml index f856a4ac9383..2144d70d7b19 100644 --- a/java-talent/.OwlBot-hermetic.yaml +++ b/java-talent/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-talent/google-.*/src" deep-preserve-regex: -- "/java-talent/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/talent/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-talent/README.md b/java-talent/README.md index 7a97dce475b3..d2a8e5db5667 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.89.0' +implementation 'com.google.cloud:google-cloud-talent:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-tasks/.OwlBot-hermetic.yaml index 84cc4d39d1cd..0c6e99f9fa6d 100644 --- a/java-tasks/.OwlBot-hermetic.yaml +++ b/java-tasks/.OwlBot-hermetic.yaml @@ -20,11 +20,12 @@ deep-remove-regex: - "/java-tasks/google-.*/src" deep-preserve-regex: -- "/java-tasks/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-tasks/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java" -- "/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java" -- "/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java" -- "/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java" +- "/.*proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java" +- "/.*proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java" +- "/.*proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java" deep-copy-regex: - source: "/google/cloud/tasks/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-tasks/README.md b/java-tasks/README.md index ad4a3e238983..7ba64c84eddb 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.88.0' +implementation 'com.google.cloud:google-cloud-tasks:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-telcoautomation/.OwlBot-hermetic.yaml index 245226a83af0..d8f63cf283f9 100644 --- a/java-telcoautomation/.OwlBot-hermetic.yaml +++ b/java-telcoautomation/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-telcoautomation/samples/snippets/generated" deep-preserve-regex: -- "/java-telcoautomation/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/telcoautomation/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index 5cf6c3029b4a..d493b1c0ee47 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.58.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.58.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.60.0" ``` ## Authentication @@ -175,7 +175,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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-texttospeech/.OwlBot-hermetic.yaml index bf6dcbc170c0..4ef41ea7d2bb 100644 --- a/java-texttospeech/.OwlBot-hermetic.yaml +++ b/java-texttospeech/.OwlBot-hermetic.yaml @@ -20,9 +20,10 @@ deep-remove-regex: - "/java-texttospeech/google-.*/src" deep-preserve-regex: -- "/java-texttospeech/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java" -- "/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java" +- "/.*google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java" deep-copy-regex: diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 2aa521a04098..a995132e6bec 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.89.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-tpu/.OwlBot-hermetic.yaml index db85bddebca5..3794e77bf685 100644 --- a/java-tpu/.OwlBot-hermetic.yaml +++ b/java-tpu/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-tpu/proto-google-.*/src" - "/java-tpu/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/tpu/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-tpu/$1/proto-google-cloud-tpu-$1/src" diff --git a/java-tpu/README.md b/java-tpu/README.md index d92860d5e6f0..f11b02abf444 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.89.0' +implementation 'com.google.cloud:google-cloud-tpu:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-trace/.OwlBot-hermetic.yaml index d2b694eac9a9..fa7122e5a04c 100644 --- a/java-trace/.OwlBot-hermetic.yaml +++ b/java-trace/.OwlBot-hermetic.yaml @@ -20,9 +20,10 @@ deep-remove-regex: - "/java-trace/samples/snippets/generated" deep-preserve-regex: -- "/java-trace/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/VPCServiceControlTest.java" -- "/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/VPCServiceControlTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-trace/src/test/java/com/google/cloud/trace/v1/VPCServiceControlTest.java" +- "/.*google-cloud-trace/src/test/java/com/google/cloud/trace/v2/VPCServiceControlTest.java" deep-copy-regex: - source: "/google/devtools/cloudtrace/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-trace/README.md b/java-trace/README.md index 640907115e3a..d0119ab8330b 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.88.0' +implementation 'com.google.cloud:google-cloud-trace:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-translate/.OwlBot-hermetic.yaml index 52cf28867f03..06da19fd5cb5 100644 --- a/java-translate/.OwlBot-hermetic.yaml +++ b/java-translate/.OwlBot-hermetic.yaml @@ -21,6 +21,9 @@ deep-remove-regex: - "/java-translate/google-.*/src/com/google/cloud/translate/v3beta1" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/translate/(v.*)/.*-java/proto-google-.*/src/main/java/com/google/cloud/translate" dest: "/owl-bot-staging/java-translate/$1/proto-google-cloud-translate-$1/src/main/java/com/google/cloud/translate" diff --git a/java-translate/README.md b/java-translate/README.md index a95133067305..c5731a796223 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.88.0' +implementation 'com.google.cloud:google-cloud-translate:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.90.0" ``` ## Authentication @@ -252,7 +252,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-valkey/.OwlBot-hermetic.yaml index 74b30125c2c3..0648c0ad5d99 100644 --- a/java-valkey/.OwlBot-hermetic.yaml +++ b/java-valkey/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-valkey/samples/snippets/generated" deep-preserve-regex: -- "/java-valkey/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/memorystore/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-valkey/README.md b/java-valkey/README.md index 4882d5438b8f..44a42c22ae33 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 0.34.0 + 0.36.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.34.0' +implementation 'com.google.cloud:google-cloud-valkey:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.36.0" ``` ## Authentication @@ -175,7 +175,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.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/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-vectorsearch/.OwlBot-hermetic.yaml b/java-vectorsearch/.OwlBot-hermetic.yaml index f8afdb7ca1e8..b3fa7977161f 100644 --- a/java-vectorsearch/.OwlBot-hermetic.yaml +++ b/java-vectorsearch/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-vectorsearch/samples/snippets/generated" deep-preserve-regex: -- "/java-vectorsearch/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/vectorsearch/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-vectorsearch/README.md b/java-vectorsearch/README.md index 52d455e1b5f2..c6de16f3fe43 100644 --- a/java-vectorsearch/README.md +++ b/java-vectorsearch/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vectorsearch - 0.9.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vectorsearch:0.9.0' +implementation 'com.google.cloud:google-cloud-vectorsearch:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.11.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-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.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java index d7394fcaa026..e4c3cd13d85e 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java @@ -133,8 +133,10 @@ * * *

              ListLocations - *

              Lists information about the supported locations for this service.This method can be called in two ways: - *

              * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

              This method lists locations based on the resource scope provided inthe [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.

              *
                @@ -626,13 +628,20 @@ public final BatchSearchDataObjectsResponse batchSearchDataObjects( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

                * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

                This method lists locations based on the resource scope provided inthe + * [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: * @@ -666,13 +675,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

                * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

                * **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: * @@ -707,13 +723,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

                This method lists locations based on the resource scope provided inthe + * [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. * - *

                * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java index a85716890860..7a110d217624 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java @@ -194,8 +194,10 @@ * * *

                ListLocations - *

                Lists information about the supported locations for this service.This method can be called in two ways: - *

                * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

                This method lists locations based on the resource scope provided inthe [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.

                *
                  @@ -1125,13 +1127,20 @@ public final void batchDeleteDataObjects(BatchDeleteDataObjectsRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

                  * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

                  This method lists locations based on the resource scope provided inthe + * [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: * @@ -1164,13 +1173,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

                  * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

                  * **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: * @@ -1204,13 +1220,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

                  This method lists locations based on the resource scope provided inthe + * [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. * - *

                  * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java index 71050c0b12b8..cc22bba3972b 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java @@ -234,6 +234,25 @@ * * * + *

                  UpdateIndex + *

                  Updates the parameters of a single Index. + * + *

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

                  + *
                    + *
                  • updateIndexAsync(UpdateIndexRequest request) + *

                  + *

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

                  + *
                    + *
                  • updateIndexAsync(Index index, 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.

                  + *
                    + *
                  • updateIndexOperationCallable() + *

                  • updateIndexCallable() + *

                  + * + * + * *

                  DeleteIndex *

                  Deletes a single Index. * @@ -285,8 +304,10 @@ * * *

                  ListLocations - *

                  Lists information about the supported locations for this service.This method can be called in two ways: - *

                  * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

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

                  This method lists locations based on the resource scope provided inthe [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.

                  *
                    @@ -1632,6 +1653,136 @@ public final UnaryCallable createIndexCallable() return stub.createIndexCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Index. + * + *

                    Sample code: + * + *

                    {@code
                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                    +   * // It will require modifications to work:
                    +   * // - It may require correct/in-range values for request initialization.
                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                    +   * try (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) {
                    +   *   Index index = Index.newBuilder().build();
                    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                    +   *   Index response = vectorSearchServiceClient.updateIndexAsync(index, updateMask).get();
                    +   * }
                    +   * }
                    + * + * @param index Required. The resource being updated. + * @param updateMask Optional. Specifies the fields to be overwritten in the Index resource by the + * update. The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. If the user does not provide a + * mask then all fields present in the request with non-empty values will be overwritten. + *

                    The following fields support update: * `display_name` * `description` * + * `labels` * `dedicated_infrastructure.autoscaling_spec.min_replica_count` * + * `dedicated_infrastructure.autoscaling_spec.max_replica_count` + *

                    If `*` is provided in the `update_mask`, full replacement of mutable fields will be + * performed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateIndexAsync( + Index index, FieldMask updateMask) { + UpdateIndexRequest request = + UpdateIndexRequest.newBuilder().setIndex(index).setUpdateMask(updateMask).build(); + return updateIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Index. + * + *

                    Sample code: + * + *

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

                    Sample code: + * + *

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

                    Sample code: + * + *

                    {@code
                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                    +   * // It will require modifications to work:
                    +   * // - It may require correct/in-range values for request initialization.
                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                    +   * try (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) {
                    +   *   UpdateIndexRequest request =
                    +   *       UpdateIndexRequest.newBuilder()
                    +   *           .setIndex(Index.newBuilder().build())
                    +   *           .setUpdateMask(FieldMask.newBuilder().build())
                    +   *           .setRequestId("requestId693933066")
                    +   *           .build();
                    +   *   ApiFuture future =
                    +   *       vectorSearchServiceClient.updateIndexCallable().futureCall(request);
                    +   *   // Do something.
                    +   *   Operation response = future.get();
                    +   * }
                    +   * }
                    + */ + public final UnaryCallable updateIndexCallable() { + return stub.updateIndexCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single Index. @@ -1957,13 +2108,20 @@ public final UnaryCallable exportDataObject // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

                    * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

                    * **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: * @@ -1996,13 +2154,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

                    * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

                    * **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: * @@ -2036,13 +2201,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

                    This method lists locations based on the resource scope provided inthe + * [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. * - *

                    * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto 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: * diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java index 7dcc2b60252e..1d716654a4f1 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java @@ -194,6 +194,17 @@ public UnaryCallSettings createIndexSettings() { return ((VectorSearchServiceStubSettings) getStubSettings()).createIndexOperationSettings(); } + /** Returns the object with the settings used for calls to updateIndex. */ + public UnaryCallSettings updateIndexSettings() { + return ((VectorSearchServiceStubSettings) getStubSettings()).updateIndexSettings(); + } + + /** Returns the object with the settings used for calls to updateIndex. */ + public OperationCallSettings + updateIndexOperationSettings() { + return ((VectorSearchServiceStubSettings) getStubSettings()).updateIndexOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteIndex. */ public UnaryCallSettings deleteIndexSettings() { return ((VectorSearchServiceStubSettings) getStubSettings()).deleteIndexSettings(); @@ -425,6 +436,17 @@ public UnaryCallSettings.Builder createIndexSetti return getStubSettingsBuilder().createIndexOperationSettings(); } + /** Returns the builder for the settings used for calls to updateIndex. */ + public UnaryCallSettings.Builder updateIndexSettings() { + return getStubSettingsBuilder().updateIndexSettings(); + } + + /** Returns the builder for the settings used for calls to updateIndex. */ + public OperationCallSettings.Builder + updateIndexOperationSettings() { + return getStubSettingsBuilder().updateIndexOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteIndex. */ public UnaryCallSettings.Builder deleteIndexSettings() { return getStubSettingsBuilder().deleteIndexSettings(); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/gapic_metadata.json b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/gapic_metadata.json index 3d7d711d3ecc..c9dbc5e82bdd 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/gapic_metadata.json +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/gapic_metadata.json @@ -111,6 +111,9 @@ }, "UpdateCollection": { "methods": ["updateCollectionAsync", "updateCollectionAsync", "updateCollectionOperationCallable", "updateCollectionCallable"] + }, + "UpdateIndex": { + "methods": ["updateIndexAsync", "updateIndexAsync", "updateIndexOperationCallable", "updateIndexCallable"] } } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/GrpcVectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/GrpcVectorSearchServiceStub.java index 18518e46a619..53d5a62e8566 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/GrpcVectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/GrpcVectorSearchServiceStub.java @@ -52,6 +52,7 @@ import com.google.cloud.vectorsearch.v1.ListIndexesResponse; import com.google.cloud.vectorsearch.v1.OperationMetadata; import com.google.cloud.vectorsearch.v1.UpdateCollectionRequest; +import com.google.cloud.vectorsearch.v1.UpdateIndexRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -157,6 +158,15 @@ public class GrpcVectorSearchServiceStub extends VectorSearchServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor updateIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vectorsearch.v1.VectorSearchService/UpdateIndex") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteIndexMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -232,6 +242,9 @@ public class GrpcVectorSearchServiceStub extends VectorSearchServiceStub { private final UnaryCallable createIndexCallable; private final OperationCallable createIndexOperationCallable; + private final UnaryCallable updateIndexCallable; + private final OperationCallable + updateIndexOperationCallable; private final UnaryCallable deleteIndexCallable; private final OperationCallable deleteIndexOperationCallable; @@ -380,6 +393,16 @@ protected GrpcVectorSearchServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings updateIndexTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateIndexMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("index.name", String.valueOf(request.getIndex().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteIndexMethodDescriptor) @@ -488,6 +511,15 @@ protected GrpcVectorSearchServiceStub( settings.createIndexOperationSettings(), clientContext, operationsStub); + this.updateIndexCallable = + callableFactory.createUnaryCallable( + updateIndexTransportSettings, settings.updateIndexSettings(), clientContext); + this.updateIndexOperationCallable = + callableFactory.createOperationCallable( + updateIndexTransportSettings, + settings.updateIndexOperationSettings(), + clientContext, + operationsStub); this.deleteIndexCallable = callableFactory.createUnaryCallable( deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); @@ -612,6 +644,17 @@ public UnaryCallable createIndexCallable() { return createIndexOperationCallable; } + @Override + public UnaryCallable updateIndexCallable() { + return updateIndexCallable; + } + + @Override + public OperationCallable + updateIndexOperationCallable() { + return updateIndexOperationCallable; + } + @Override public UnaryCallable deleteIndexCallable() { return deleteIndexCallable; diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java index 5c64429e22a1..4c5c59960a88 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java @@ -60,6 +60,7 @@ import com.google.cloud.vectorsearch.v1.ListIndexesResponse; import com.google.cloud.vectorsearch.v1.OperationMetadata; import com.google.cloud.vectorsearch.v1.UpdateCollectionRequest; +import com.google.cloud.vectorsearch.v1.UpdateIndexRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -404,6 +405,49 @@ public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateIndexMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vectorsearch.v1.VectorSearchService/UpdateIndex") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{index.name=projects/*/locations/*/collections/*/indexes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "index.name", request.getIndex().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("index", request.getIndex(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateIndexRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteIndexMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -613,6 +657,9 @@ public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub { private final UnaryCallable createIndexCallable; private final OperationCallable createIndexOperationCallable; + private final UnaryCallable updateIndexCallable; + private final OperationCallable + updateIndexOperationCallable; private final UnaryCallable deleteIndexCallable; private final OperationCallable deleteIndexOperationCallable; @@ -797,6 +844,17 @@ protected HttpJsonVectorSearchServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings updateIndexTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateIndexMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("index.name", String.valueOf(request.getIndex().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteIndexTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteIndexMethodDescriptor) @@ -911,6 +969,15 @@ protected HttpJsonVectorSearchServiceStub( settings.createIndexOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateIndexCallable = + callableFactory.createUnaryCallable( + updateIndexTransportSettings, settings.updateIndexSettings(), clientContext); + this.updateIndexOperationCallable = + callableFactory.createOperationCallable( + updateIndexTransportSettings, + settings.updateIndexOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteIndexCallable = callableFactory.createUnaryCallable( deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); @@ -967,6 +1034,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listIndexesMethodDescriptor); methodDescriptors.add(getIndexMethodDescriptor); methodDescriptors.add(createIndexMethodDescriptor); + methodDescriptors.add(updateIndexMethodDescriptor); methodDescriptors.add(deleteIndexMethodDescriptor); methodDescriptors.add(importDataObjectsMethodDescriptor); methodDescriptors.add(exportDataObjectsMethodDescriptor); @@ -1054,6 +1122,17 @@ public UnaryCallable createIndexCallable() { return createIndexOperationCallable; } + @Override + public UnaryCallable updateIndexCallable() { + return updateIndexCallable; + } + + @Override + public OperationCallable + updateIndexOperationCallable() { + return updateIndexOperationCallable; + } + @Override public UnaryCallable deleteIndexCallable() { return deleteIndexCallable; diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java index 89e6f570fcd7..07e0a7475126 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java @@ -47,6 +47,7 @@ import com.google.cloud.vectorsearch.v1.ListIndexesResponse; import com.google.cloud.vectorsearch.v1.OperationMetadata; import com.google.cloud.vectorsearch.v1.UpdateCollectionRequest; +import com.google.cloud.vectorsearch.v1.UpdateIndexRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -130,6 +131,15 @@ public UnaryCallable createIndexCallable() { throw new UnsupportedOperationException("Not implemented: createIndexCallable()"); } + public OperationCallable + updateIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateIndexOperationCallable()"); + } + + public UnaryCallable updateIndexCallable() { + throw new UnsupportedOperationException("Not implemented: updateIndexCallable()"); + } + public OperationCallable deleteIndexOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteIndexOperationCallable()"); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java index b245fbdf60d3..aecad3989f6d 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java @@ -75,6 +75,7 @@ import com.google.cloud.vectorsearch.v1.ListIndexesResponse; import com.google.cloud.vectorsearch.v1.OperationMetadata; import com.google.cloud.vectorsearch.v1.UpdateCollectionRequest; +import com.google.cloud.vectorsearch.v1.UpdateIndexRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -189,6 +190,9 @@ public class VectorSearchServiceStubSettings extends StubSettings createIndexSettings; private final OperationCallSettings createIndexOperationSettings; + private final UnaryCallSettings updateIndexSettings; + private final OperationCallSettings + updateIndexOperationSettings; private final UnaryCallSettings deleteIndexSettings; private final OperationCallSettings deleteIndexOperationSettings; @@ -428,6 +432,17 @@ public UnaryCallSettings createIndexSettings() { return createIndexOperationSettings; } + /** Returns the object with the settings used for calls to updateIndex. */ + public UnaryCallSettings updateIndexSettings() { + return updateIndexSettings; + } + + /** Returns the object with the settings used for calls to updateIndex. */ + public OperationCallSettings + updateIndexOperationSettings() { + return updateIndexOperationSettings; + } + /** Returns the object with the settings used for calls to deleteIndex. */ public UnaryCallSettings deleteIndexSettings() { return deleteIndexSettings; @@ -597,6 +612,8 @@ protected VectorSearchServiceStubSettings(Builder settingsBuilder) throws IOExce getIndexSettings = settingsBuilder.getIndexSettings().build(); createIndexSettings = settingsBuilder.createIndexSettings().build(); createIndexOperationSettings = settingsBuilder.createIndexOperationSettings().build(); + updateIndexSettings = settingsBuilder.updateIndexSettings().build(); + updateIndexOperationSettings = settingsBuilder.updateIndexOperationSettings().build(); deleteIndexSettings = settingsBuilder.deleteIndexSettings().build(); deleteIndexOperationSettings = settingsBuilder.deleteIndexOperationSettings().build(); importDataObjectsSettings = settingsBuilder.importDataObjectsSettings().build(); @@ -647,6 +664,9 @@ public static class Builder private final UnaryCallSettings.Builder createIndexSettings; private final OperationCallSettings.Builder createIndexOperationSettings; + private final UnaryCallSettings.Builder updateIndexSettings; + private final OperationCallSettings.Builder + updateIndexOperationSettings; private final UnaryCallSettings.Builder deleteIndexSettings; private final OperationCallSettings.Builder deleteIndexOperationSettings; @@ -731,6 +751,8 @@ protected Builder(ClientContext clientContext) { getIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createIndexOperationSettings = OperationCallSettings.newBuilder(); + updateIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateIndexOperationSettings = OperationCallSettings.newBuilder(); deleteIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteIndexOperationSettings = OperationCallSettings.newBuilder(); importDataObjectsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -750,6 +772,7 @@ protected Builder(ClientContext clientContext) { listIndexesSettings, getIndexSettings, createIndexSettings, + updateIndexSettings, deleteIndexSettings, importDataObjectsSettings, exportDataObjectsSettings, @@ -773,6 +796,8 @@ protected Builder(VectorSearchServiceStubSettings settings) { getIndexSettings = settings.getIndexSettings.toBuilder(); createIndexSettings = settings.createIndexSettings.toBuilder(); createIndexOperationSettings = settings.createIndexOperationSettings.toBuilder(); + updateIndexSettings = settings.updateIndexSettings.toBuilder(); + updateIndexOperationSettings = settings.updateIndexOperationSettings.toBuilder(); deleteIndexSettings = settings.deleteIndexSettings.toBuilder(); deleteIndexOperationSettings = settings.deleteIndexOperationSettings.toBuilder(); importDataObjectsSettings = settings.importDataObjectsSettings.toBuilder(); @@ -792,6 +817,7 @@ protected Builder(VectorSearchServiceStubSettings settings) { listIndexesSettings, getIndexSettings, createIndexSettings, + updateIndexSettings, deleteIndexSettings, importDataObjectsSettings, exportDataObjectsSettings, @@ -864,6 +890,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + builder + .updateIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteIndexSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) @@ -984,6 +1015,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .updateIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Index.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 .deleteIndexOperationSettings() .setInitialCallSettings( @@ -1148,6 +1202,17 @@ public UnaryCallSettings.Builder createIndexSetti return createIndexOperationSettings; } + /** Returns the builder for the settings used for calls to updateIndex. */ + public UnaryCallSettings.Builder updateIndexSettings() { + return updateIndexSettings; + } + + /** Returns the builder for the settings used for calls to updateIndex. */ + public OperationCallSettings.Builder + updateIndexOperationSettings() { + return updateIndexOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteIndex. */ public UnaryCallSettings.Builder deleteIndexSettings() { return deleteIndexSettings; diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json index 16ccbbf2b781..6ace8b1d27c8 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json @@ -1052,6 +1052,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vectorsearch.v1.EncryptionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1.EncryptionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vectorsearch.v1.ExportDataObjectsMetadata", "queryAllDeclaredConstructors": true, @@ -1691,6 +1709,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vectorsearch.v1.UpdateIndexRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1.UpdateIndexRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vectorsearch.v1.Vector", "queryAllDeclaredConstructors": true, diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/MockVectorSearchServiceImpl.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/MockVectorSearchServiceImpl.java index 0b3ac743ca65..765a462dbbd3 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/MockVectorSearchServiceImpl.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/MockVectorSearchServiceImpl.java @@ -225,6 +225,26 @@ public void createIndex(CreateIndexRequest request, StreamObserver re } } + @Override + public void updateIndex(UpdateIndexRequest 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 UpdateIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteIndex(DeleteIndexRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java index e588d1940247..c35c804c81e1 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java @@ -203,6 +203,7 @@ public void getCollectionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -254,6 +255,7 @@ public void getCollectionTest2() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -305,6 +307,7 @@ public void createCollectionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -366,6 +369,7 @@ public void createCollectionTest2() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -427,6 +431,7 @@ public void updateCollectionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -446,6 +451,7 @@ public void updateCollectionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -485,6 +491,7 @@ public void updateCollectionExceptionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateCollectionAsync(collection, updateMask).get(); @@ -915,6 +922,91 @@ public void createIndexExceptionTest2() throws Exception { } } + @Test + public void updateIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDistanceMetric(DistanceMetric.forNumber(0)) + .setIndexField("indexField723729224") + .addAllFilterFields(new ArrayList()) + .addAllStoreFields(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Index index = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDistanceMetric(DistanceMetric.forNumber(0)) + .setIndexField("indexField723729224") + .addAllFilterFields(new ArrayList()) + .addAllStoreFields(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Index actualResponse = client.updateIndexAsync(index, 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 updateIndexExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Index index = + Index.newBuilder() + .setName( + IndexName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDistanceMetric(DistanceMetric.forNumber(0)) + .setIndexField("indexField723729224") + .addAllFilterFields(new ArrayList()) + .addAllStoreFields(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateIndexAsync(index, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteIndexTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java index 9d44f28615c5..f94baeaf222f 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java @@ -198,6 +198,7 @@ public void getCollectionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockVectorSearchService.addResponse(expectedResponse); @@ -243,6 +244,7 @@ public void getCollectionTest2() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockVectorSearchService.addResponse(expectedResponse); @@ -288,6 +290,7 @@ public void createCollectionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -348,6 +351,7 @@ public void createCollectionTest2() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -408,6 +412,7 @@ public void updateCollectionTest() throws Exception { .putAllLabels(new HashMap()) .putAllVectorSchema(new HashMap()) .setDataSchema(Struct.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -840,6 +845,64 @@ public void createIndexExceptionTest2() throws Exception { } } + @Test + public void updateIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDistanceMetric(DistanceMetric.forNumber(0)) + .setIndexField("indexField723729224") + .addAllFilterFields(new ArrayList()) + .addAllStoreFields(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVectorSearchService.addResponse(resultOperation); + + Index index = Index.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Index actualResponse = client.updateIndexAsync(index, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVectorSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateIndexRequest actualRequest = ((UpdateIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(index, actualRequest.getIndex()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVectorSearchService.addException(exception); + + try { + Index index = Index.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateIndexAsync(index, 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 deleteIndexTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceGrpc.java b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceGrpc.java index a7840ab33c7e..202c9129d725 100644 --- a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceGrpc.java +++ b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceGrpc.java @@ -405,6 +405,49 @@ private VectorSearchServiceGrpc() {} return getCreateIndexMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vectorsearch.v1.UpdateIndexRequest, com.google.longrunning.Operation> + getUpdateIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateIndex", + requestType = com.google.cloud.vectorsearch.v1.UpdateIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vectorsearch.v1.UpdateIndexRequest, com.google.longrunning.Operation> + getUpdateIndexMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vectorsearch.v1.UpdateIndexRequest, com.google.longrunning.Operation> + getUpdateIndexMethod; + if ((getUpdateIndexMethod = VectorSearchServiceGrpc.getUpdateIndexMethod) == null) { + synchronized (VectorSearchServiceGrpc.class) { + if ((getUpdateIndexMethod = VectorSearchServiceGrpc.getUpdateIndexMethod) == null) { + VectorSearchServiceGrpc.getUpdateIndexMethod = + getUpdateIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vectorsearch.v1.UpdateIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VectorSearchServiceMethodDescriptorSupplier("UpdateIndex")) + .build(); + } + } + } + return getUpdateIndexMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.vectorsearch.v1.DeleteIndexRequest, com.google.longrunning.Operation> getDeleteIndexMethod; @@ -722,6 +765,20 @@ default void createIndex( getCreateIndexMethod(), responseObserver); } + /** + * + * + *

                    +     * Updates the parameters of a single Index.
                    +     * 
                    + */ + default void updateIndex( + com.google.cloud.vectorsearch.v1.UpdateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIndexMethod(), responseObserver); + } + /** * * @@ -936,6 +993,22 @@ public void createIndex( responseObserver); } + /** + * + * + *
                    +     * Updates the parameters of a single Index.
                    +     * 
                    + */ + public void updateIndex( + com.google.cloud.vectorsearch.v1.UpdateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIndexMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1120,6 +1193,20 @@ public com.google.longrunning.Operation createIndex( getChannel(), getCreateIndexMethod(), getCallOptions(), request); } + /** + * + * + *
                    +     * Updates the parameters of a single Index.
                    +     * 
                    + */ + public com.google.longrunning.Operation updateIndex( + com.google.cloud.vectorsearch.v1.UpdateIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateIndexMethod(), getCallOptions(), request); + } + /** * * @@ -1291,6 +1378,19 @@ public com.google.longrunning.Operation createIndex( getChannel(), getCreateIndexMethod(), getCallOptions(), request); } + /** + * + * + *
                    +     * Updates the parameters of a single Index.
                    +     * 
                    + */ + public com.google.longrunning.Operation updateIndex( + com.google.cloud.vectorsearch.v1.UpdateIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIndexMethod(), getCallOptions(), request); + } + /** * * @@ -1463,6 +1563,19 @@ protected VectorSearchServiceFutureStub build( getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request); } + /** + * + * + *
                    +     * Updates the parameters of a single Index.
                    +     * 
                    + */ + public com.google.common.util.concurrent.ListenableFuture + updateIndex(com.google.cloud.vectorsearch.v1.UpdateIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateIndexMethod(), getCallOptions()), request); + } + /** * * @@ -1511,9 +1624,10 @@ protected VectorSearchServiceFutureStub build( private static final int METHODID_LIST_INDEXES = 5; private static final int METHODID_GET_INDEX = 6; private static final int METHODID_CREATE_INDEX = 7; - private static final int METHODID_DELETE_INDEX = 8; - private static final int METHODID_IMPORT_DATA_OBJECTS = 9; - private static final int METHODID_EXPORT_DATA_OBJECTS = 10; + private static final int METHODID_UPDATE_INDEX = 8; + private static final int METHODID_DELETE_INDEX = 9; + private static final int METHODID_IMPORT_DATA_OBJECTS = 10; + private static final int METHODID_EXPORT_DATA_OBJECTS = 11; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1577,6 +1691,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vectorsearch.v1.CreateIndexRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_INDEX: + serviceImpl.updateIndex( + (com.google.cloud.vectorsearch.v1.UpdateIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_INDEX: serviceImpl.deleteIndex( (com.google.cloud.vectorsearch.v1.DeleteIndexRequest) request, @@ -1660,6 +1779,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.vectorsearch.v1.CreateIndexRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_INDEX))) + .addMethod( + getUpdateIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vectorsearch.v1.UpdateIndexRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_INDEX))) .addMethod( getDeleteIndexMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1737,6 +1862,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListIndexesMethod()) .addMethod(getGetIndexMethod()) .addMethod(getCreateIndexMethod()) + .addMethod(getUpdateIndexMethod()) .addMethod(getDeleteIndexMethod()) .addMethod(getImportDataObjectsMethod()) .addMethod(getExportDataObjectsMethod()) diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/Collection.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/Collection.java index 3548657c9443..b5a5ead4cd5e 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/Collection.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/Collection.java @@ -602,6 +602,8 @@ public com.google.cloud.vectorsearch.v1.VectorField getVectorSchemaOrThrow(java. * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -621,6 +623,8 @@ public boolean hasDataSchema() { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -640,6 +644,8 @@ public com.google.protobuf.Struct getDataSchema() { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -650,6 +656,71 @@ public com.google.protobuf.StructOrBuilder getDataSchemaOrBuilder() { return dataSchema_ == null ? com.google.protobuf.Struct.getDefaultInstance() : dataSchema_; } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 11; + private com.google.cloud.vectorsearch.v1.EncryptionSpec encryptionSpec_; + + /** + * + * + *
                    +   * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +   * a Collection. If set, this Collection and all sub-resources of this
                    +   * Collection will be secured by this key.
                    +   * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionSpec field is set. + */ + @java.lang.Override + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                    +   * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +   * a Collection. If set, this Collection and all sub-resources of this
                    +   * Collection will be secured by this key.
                    +   * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionSpec. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.EncryptionSpec getEncryptionSpec() { + return encryptionSpec_ == null + ? com.google.cloud.vectorsearch.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + + /** + * + * + *
                    +   * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +   * a Collection. If set, this Collection and all sub-resources of this
                    +   * Collection will be secured by this key.
                    +   * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + return encryptionSpec_ == null + ? com.google.cloud.vectorsearch.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -686,6 +757,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getDataSchema()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(11, getEncryptionSpec()); + } getUnknownFields().writeTo(output); } @@ -734,6 +808,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDataSchema()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEncryptionSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -767,6 +844,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDataSchema()) { if (!getDataSchema().equals(other.getDataSchema())) return false; } + if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; + if (hasEncryptionSpec()) { + if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -804,6 +885,10 @@ public int hashCode() { hash = (37 * hash) + DATA_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getDataSchema().hashCode(); } + if (hasEncryptionSpec()) { + hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -974,6 +1059,7 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetDataSchemaFieldBuilder(); + internalGetEncryptionSpecFieldBuilder(); } } @@ -1001,6 +1087,11 @@ public Builder clear() { dataSchemaBuilder_.dispose(); dataSchemaBuilder_ = null; } + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); + encryptionSpecBuilder_ = null; + } return this; } @@ -1067,6 +1158,11 @@ private void buildPartial0(com.google.cloud.vectorsearch.v1.Collection result) { result.dataSchema_ = dataSchemaBuilder_ == null ? dataSchema_ : dataSchemaBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1110,6 +1206,9 @@ public Builder mergeFrom(com.google.cloud.vectorsearch.v1.Collection other) { if (other.hasDataSchema()) { mergeDataSchema(other.getDataSchema()); } + if (other.hasEncryptionSpec()) { + mergeEncryptionSpec(other.getEncryptionSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1201,6 +1300,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 82 + case 90: + { + input.readMessage( + internalGetEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2442,6 +2548,8 @@ public com.google.cloud.vectorsearch.v1.VectorField.Builder putVectorSchemaBuild * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2460,6 +2568,8 @@ public boolean hasDataSchema() { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2482,6 +2592,8 @@ public com.google.protobuf.Struct getDataSchema() { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2508,6 +2620,8 @@ public Builder setDataSchema(com.google.protobuf.Struct value) { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2531,6 +2645,8 @@ public Builder setDataSchema(com.google.protobuf.Struct.Builder builderForValue) * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2562,6 +2678,8 @@ public Builder mergeDataSchema(com.google.protobuf.Struct value) { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2585,6 +2703,8 @@ public Builder clearDataSchema() { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2603,6 +2723,8 @@ public com.google.protobuf.Struct.Builder getDataSchemaBuilder() { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2623,6 +2745,8 @@ public com.google.protobuf.StructOrBuilder getDataSchemaOrBuilder() { * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2645,6 +2769,238 @@ public com.google.protobuf.StructOrBuilder getDataSchemaOrBuilder() { return dataSchemaBuilder_; } + private com.google.cloud.vectorsearch.v1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.EncryptionSpec, + com.google.cloud.vectorsearch.v1.EncryptionSpec.Builder, + com.google.cloud.vectorsearch.v1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionSpec. + */ + public com.google.cloud.vectorsearch.v1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.vectorsearch.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionSpec(com.google.cloud.vectorsearch.v1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSpec_ = value; + } else { + encryptionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionSpec( + com.google.cloud.vectorsearch.v1.EncryptionSpec.Builder builderForValue) { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = builderForValue.build(); + } else { + encryptionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryptionSpec(com.google.cloud.vectorsearch.v1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.vectorsearch.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); + } else { + encryptionSpec_ = value; + } + } else { + encryptionSpecBuilder_.mergeFrom(value); + } + if (encryptionSpec_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryptionSpec() { + bitField0_ = (bitField0_ & ~0x00000100); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); + encryptionSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetEncryptionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + if (encryptionSpecBuilder_ != null) { + return encryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return encryptionSpec_ == null + ? com.google.cloud.vectorsearch.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + } + + /** + * + * + *
                    +     * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +     * a Collection. If set, this Collection and all sub-resources of this
                    +     * Collection will be secured by this key.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.EncryptionSpec, + com.google.cloud.vectorsearch.v1.EncryptionSpec.Builder, + com.google.cloud.vectorsearch.v1.EncryptionSpecOrBuilder> + internalGetEncryptionSpecFieldBuilder() { + if (encryptionSpecBuilder_ == null) { + encryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.EncryptionSpec, + com.google.cloud.vectorsearch.v1.EncryptionSpec.Builder, + com.google.cloud.vectorsearch.v1.EncryptionSpecOrBuilder>( + getEncryptionSpec(), getParentForChildren(), isClean()); + encryptionSpec_ = null; + } + return encryptionSpecBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1.Collection) } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionOrBuilder.java index dddf2b98c86c..ebdd45a772d7 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionOrBuilder.java @@ -338,6 +338,8 @@ com.google.cloud.vectorsearch.v1.VectorField getVectorSchemaOrDefault( * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -354,6 +356,8 @@ com.google.cloud.vectorsearch.v1.VectorField getVectorSchemaOrDefault( * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -370,10 +374,61 @@ com.google.cloud.vectorsearch.v1.VectorField getVectorSchemaOrDefault( * Optional. JSON Schema for data. * Field names must contain only alphanumeric characters, * underscores, and hyphens. + * The schema must be compliant with + * [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). * * * .google.protobuf.Struct data_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.StructOrBuilder getDataSchemaOrBuilder(); + + /** + * + * + *
                    +   * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +   * a Collection. If set, this Collection and all sub-resources of this
                    +   * Collection will be secured by this key.
                    +   * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionSpec field is set. + */ + boolean hasEncryptionSpec(); + + /** + * + * + *
                    +   * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +   * a Collection. If set, this Collection and all sub-resources of this
                    +   * Collection will be secured by this key.
                    +   * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionSpec. + */ + com.google.cloud.vectorsearch.v1.EncryptionSpec getEncryptionSpec(); + + /** + * + * + *
                    +   * Optional. Immutable. Specifies the customer-managed encryption key spec for
                    +   * a Collection. If set, this Collection and all sub-resources of this
                    +   * Collection will be secured by this key.
                    +   * 
                    + * + * + * .google.cloud.vectorsearch.v1.EncryptionSpec encryption_spec = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpec.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpec.java new file mode 100644 index 000000000000..12fbb9f3f0ff --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpec.java @@ -0,0 +1,640 @@ +/* + * 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/vectorsearch/v1/encryption_spec.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1; + +/** + * + * + *
                    + * Represents a customer-managed encryption key specification that can be
                    + * applied to a Vector Search collection.
                    + * 
                    + * + * Protobuf type {@code google.cloud.vectorsearch.v1.EncryptionSpec} + */ +@com.google.protobuf.Generated +public final class EncryptionSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1.EncryptionSpec) + EncryptionSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EncryptionSpec"); + } + + // Use EncryptionSpec.newBuilder() to construct. + private EncryptionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EncryptionSpec() { + cryptoKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.EncryptionSpecProto + .internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.EncryptionSpecProto + .internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.EncryptionSpec.class, + com.google.cloud.vectorsearch.v1.EncryptionSpec.Builder.class); + } + + public static final int CRYPTO_KEY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cryptoKeyName_ = ""; + + /** + * + * + *
                    +   * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +   *
                    +   * The Cloud KMS key must be in the same region as the resource. It must have
                    +   * the format
                    +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +   * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. + */ + @java.lang.Override + public java.lang.String getCryptoKeyName() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cryptoKeyName_ = s; + return s; + } + } + + /** + * + * + *
                    +   * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +   *
                    +   * The Cloud KMS key must be in the same region as the resource. It must have
                    +   * the format
                    +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +   * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cryptoKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cryptoKeyName_ = 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(cryptoKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cryptoKeyName_); + } + 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(cryptoKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cryptoKeyName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vectorsearch.v1.EncryptionSpec)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1.EncryptionSpec other = + (com.google.cloud.vectorsearch.v1.EncryptionSpec) obj; + + if (!getCryptoKeyName().equals(other.getCryptoKeyName())) return false; + if (!getUnknownFields().equals(other.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) + CRYPTO_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCryptoKeyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec 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.vectorsearch.v1.EncryptionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec 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.vectorsearch.v1.EncryptionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec 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.vectorsearch.v1.EncryptionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
                    +   * Represents a customer-managed encryption key specification that can be
                    +   * applied to a Vector Search collection.
                    +   * 
                    + * + * Protobuf type {@code google.cloud.vectorsearch.v1.EncryptionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1.EncryptionSpec) + com.google.cloud.vectorsearch.v1.EncryptionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.EncryptionSpecProto + .internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.EncryptionSpecProto + .internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.EncryptionSpec.class, + com.google.cloud.vectorsearch.v1.EncryptionSpec.Builder.class); + } + + // Construct using com.google.cloud.vectorsearch.v1.EncryptionSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cryptoKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1.EncryptionSpecProto + .internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.EncryptionSpec getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1.EncryptionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.EncryptionSpec build() { + com.google.cloud.vectorsearch.v1.EncryptionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.EncryptionSpec buildPartial() { + com.google.cloud.vectorsearch.v1.EncryptionSpec result = + new com.google.cloud.vectorsearch.v1.EncryptionSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vectorsearch.v1.EncryptionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cryptoKeyName_ = cryptoKeyName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vectorsearch.v1.EncryptionSpec) { + return mergeFrom((com.google.cloud.vectorsearch.v1.EncryptionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vectorsearch.v1.EncryptionSpec other) { + if (other == com.google.cloud.vectorsearch.v1.EncryptionSpec.getDefaultInstance()) + return this; + if (!other.getCryptoKeyName().isEmpty()) { + cryptoKeyName_ = other.cryptoKeyName_; + 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: + { + cryptoKeyName_ = 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 cryptoKeyName_ = ""; + + /** + * + * + *
                    +     * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +     *
                    +     * The Cloud KMS key must be in the same region as the resource. It must have
                    +     * the format
                    +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +     * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. + */ + public java.lang.String getCryptoKeyName() { + java.lang.Object ref = cryptoKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cryptoKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                    +     * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +     *
                    +     * The Cloud KMS key must be in the same region as the resource. It must have
                    +     * the format
                    +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +     * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cryptoKeyName. + */ + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cryptoKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                    +     * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +     *
                    +     * The Cloud KMS key must be in the same region as the resource. It must have
                    +     * the format
                    +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +     * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The cryptoKeyName to set. + * @return This builder for chaining. + */ + public Builder setCryptoKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cryptoKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +     *
                    +     * The Cloud KMS key must be in the same region as the resource. It must have
                    +     * the format
                    +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +     * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCryptoKeyName() { + cryptoKeyName_ = getDefaultInstance().getCryptoKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +     *
                    +     * The Cloud KMS key must be in the same region as the resource. It must have
                    +     * the format
                    +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +     * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cryptoKeyName to set. + * @return This builder for chaining. + */ + public Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cryptoKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1.EncryptionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1.EncryptionSpec) + private static final com.google.cloud.vectorsearch.v1.EncryptionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vectorsearch.v1.EncryptionSpec(); + } + + public static com.google.cloud.vectorsearch.v1.EncryptionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.EncryptionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpecOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpecOrBuilder.java new file mode 100644 index 000000000000..3d6113da7eb2 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpecOrBuilder.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/vectorsearch/v1/encryption_spec.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1; + +@com.google.protobuf.Generated +public interface EncryptionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1.EncryptionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                    +   * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +   *
                    +   * The Cloud KMS key must be in the same region as the resource. It must have
                    +   * the format
                    +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +   * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. + */ + java.lang.String getCryptoKeyName(); + + /** + * + * + *
                    +   * Required. Resource name of the Cloud KMS key used to protect the resource.
                    +   *
                    +   * The Cloud KMS key must be in the same region as the resource. It must have
                    +   * the format
                    +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                    +   * 
                    + * + * + * string crypto_key_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cryptoKeyName. + */ + com.google.protobuf.ByteString getCryptoKeyNameBytes(); +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpecProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpecProto.java new file mode 100644 index 000000000000..41b2be19c256 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/EncryptionSpecProto.java @@ -0,0 +1,100 @@ +/* + * 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/vectorsearch/v1/encryption_spec.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1; + +@com.google.protobuf.Generated +public final class EncryptionSpecProto extends com.google.protobuf.GeneratedFile { + private EncryptionSpecProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EncryptionSpecProto"); + } + + 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_vectorsearch_v1_EncryptionSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/vectorsearch/v1/encryptio" + + "n_spec.proto\022\034google.cloud.vectorsearch." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\"T\n\016EncryptionSpec" + + "\022B\n\017crypto_key_name\030\001 \001(\tB)\340A\002\372A#\n!cloud" + + "kms.googleapis.com/CryptoKeyB\332\002\n com.goo" + + "gle.cloud.vectorsearch.v1B\023EncryptionSpe" + + "cProtoP\001ZDcloud.google.com/go/vectorsear" + + "ch/apiv1/vectorsearchpb;vectorsearchpb\252\002" + + "\034Google.Cloud.VectorSearch.V1\312\002\034Google\\C" + + "loud\\VectorSearch\\V1\352\002\037Google::Cloud::Ve" + + "ctorSearch::V1\352Ax\n!cloudkms.googleapis.c" + + "om/CryptoKey\022Sprojects/{project}/locatio" + + "ns/{location}/keyRings/{key_ring}/crypto" + + "Keys/{crypto_key}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1_EncryptionSpec_descriptor, + new java.lang.String[] { + "CryptoKeyName", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/UpdateIndexRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/UpdateIndexRequest.java new file mode 100644 index 000000000000..cb9ee0714607 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/UpdateIndexRequest.java @@ -0,0 +1,1459 @@ +/* + * 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/vectorsearch/v1/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1; + +/** + * + * + *
                    + * Message for updating an Index.
                    + * 
                    + * + * Protobuf type {@code google.cloud.vectorsearch.v1.UpdateIndexRequest} + */ +@com.google.protobuf.Generated +public final class UpdateIndexRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1.UpdateIndexRequest) + UpdateIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateIndexRequest"); + } + + // Use UpdateIndexRequest.newBuilder() to construct. + private UpdateIndexRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateIndexRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.UpdateIndexRequest.class, + com.google.cloud.vectorsearch.v1.UpdateIndexRequest.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private com.google.cloud.vectorsearch.v1.Index index_; + + /** + * + * + *
                    +   * Required. The resource being updated.
                    +   * 
                    + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                    +   * Required. The resource being updated.
                    +   * 
                    + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.Index getIndex() { + return index_ == null ? com.google.cloud.vectorsearch.v1.Index.getDefaultInstance() : index_; + } + + /** + * + * + *
                    +   * Required. The resource being updated.
                    +   * 
                    + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.IndexOrBuilder getIndexOrBuilder() { + return index_ == null ? com.google.cloud.vectorsearch.v1.Index.getDefaultInstance() : index_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                    +   * Optional. Specifies the fields to be overwritten in the Index resource by
                    +   * the update. The fields specified in the update_mask are relative to the
                    +   * resource, not the full request. A field will be overwritten if it is in the
                    +   * mask. If the user does not provide a mask then all fields present in the
                    +   * request with non-empty values will be overwritten.
                    +   *
                    +   * The following fields support update:
                    +   * * `display_name`
                    +   * * `description`
                    +   * * `labels`
                    +   * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +   * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +   *
                    +   * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +   * will be performed.
                    +   * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +   * the update. The fields specified in the update_mask are relative to the
                    +   * resource, not the full request. A field will be overwritten if it is in the
                    +   * mask. If the user does not provide a mask then all fields present in the
                    +   * request with non-empty values will be overwritten.
                    +   *
                    +   * The following fields support update:
                    +   * * `display_name`
                    +   * * `description`
                    +   * * `labels`
                    +   * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +   * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +   *
                    +   * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +   * will be performed.
                    +   * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +   * the update. The fields specified in the update_mask are relative to the
                    +   * resource, not the full request. A field will be overwritten if it is in the
                    +   * mask. If the user does not provide a mask then all fields present in the
                    +   * request with non-empty values will be overwritten.
                    +   *
                    +   * The following fields support update:
                    +   * * `display_name`
                    +   * * `description`
                    +   * * `labels`
                    +   * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +   * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +   *
                    +   * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +   * will be performed.
                    +   * 
                    + * + * .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. An optional request ID to identify requests. Specify a unique
                    +   * request ID so that if you must retry your request, the server will know to
                    +   * ignore the request if it has already been completed. The server will
                    +   * guarantee that for at least 60 minutes since the first request.
                    +   *
                    +   * For example, consider a situation where you make an initial request and the
                    +   * request times out. If you make the request again with the same request
                    +   * ID, the server can check if original operation with the same request ID
                    +   * was received, and if so, will ignore the second request. This prevents
                    +   * clients from accidentally creating duplicate commitments.
                    +   *
                    +   * The request ID must be a valid UUID with the exception that zero UUID is
                    +   * not supported (00000000-0000-0000-0000-000000000000).
                    +   * 
                    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
                    +   * request ID so that if you must retry your request, the server will know to
                    +   * ignore the request if it has already been completed. The server will
                    +   * guarantee that for at least 60 minutes since the first request.
                    +   *
                    +   * For example, consider a situation where you make an initial request and the
                    +   * request times out. If you make the request again with the same request
                    +   * ID, the server can check if original operation with the same request ID
                    +   * was received, and if so, will ignore the second request. This prevents
                    +   * clients from accidentally creating duplicate commitments.
                    +   *
                    +   * The request ID must be a valid UUID with the exception that zero UUID is
                    +   * not supported (00000000-0000-0000-0000-000000000000).
                    +   * 
                    + * + * + * string request_id = 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, getIndex()); + } + 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, getIndex()); + } + 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.vectorsearch.v1.UpdateIndexRequest)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1.UpdateIndexRequest other = + (com.google.cloud.vectorsearch.v1.UpdateIndexRequest) obj; + + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex().equals(other.getIndex())) 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 (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().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.vectorsearch.v1.UpdateIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest 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.vectorsearch.v1.UpdateIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest 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.vectorsearch.v1.UpdateIndexRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest 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.vectorsearch.v1.UpdateIndexRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 for updating an Index.
                    +   * 
                    + * + * Protobuf type {@code google.cloud.vectorsearch.v1.UpdateIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1.UpdateIndexRequest) + com.google.cloud.vectorsearch.v1.UpdateIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.UpdateIndexRequest.class, + com.google.cloud.vectorsearch.v1.UpdateIndexRequest.Builder.class); + } + + // Construct using com.google.cloud.vectorsearch.v1.UpdateIndexRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIndexFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); + indexBuilder_ = 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.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.UpdateIndexRequest getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1.UpdateIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.UpdateIndexRequest build() { + com.google.cloud.vectorsearch.v1.UpdateIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.UpdateIndexRequest buildPartial() { + com.google.cloud.vectorsearch.v1.UpdateIndexRequest result = + new com.google.cloud.vectorsearch.v1.UpdateIndexRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vectorsearch.v1.UpdateIndexRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = indexBuilder_ == null ? index_ : indexBuilder_.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.vectorsearch.v1.UpdateIndexRequest) { + return mergeFrom((com.google.cloud.vectorsearch.v1.UpdateIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vectorsearch.v1.UpdateIndexRequest other) { + if (other == com.google.cloud.vectorsearch.v1.UpdateIndexRequest.getDefaultInstance()) + return this; + if (other.hasIndex()) { + mergeIndex(other.getIndex()); + } + 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(internalGetIndexFieldBuilder().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.vectorsearch.v1.Index index_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.Index, + com.google.cloud.vectorsearch.v1.Index.Builder, + com.google.cloud.vectorsearch.v1.IndexOrBuilder> + indexBuilder_; + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + public com.google.cloud.vectorsearch.v1.Index getIndex() { + if (indexBuilder_ == null) { + return index_ == null + ? com.google.cloud.vectorsearch.v1.Index.getDefaultInstance() + : index_; + } else { + return indexBuilder_.getMessage(); + } + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndex(com.google.cloud.vectorsearch.v1.Index value) { + if (indexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + index_ = value; + } else { + indexBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndex(com.google.cloud.vectorsearch.v1.Index.Builder builderForValue) { + if (indexBuilder_ == null) { + index_ = builderForValue.build(); + } else { + indexBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIndex(com.google.cloud.vectorsearch.v1.Index value) { + if (indexBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && index_ != null + && index_ != com.google.cloud.vectorsearch.v1.Index.getDefaultInstance()) { + getIndexBuilder().mergeFrom(value); + } else { + index_ = value; + } + } else { + indexBuilder_.mergeFrom(value); + } + if (index_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); + indexBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vectorsearch.v1.Index.Builder getIndexBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetIndexFieldBuilder().getBuilder(); + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vectorsearch.v1.IndexOrBuilder getIndexOrBuilder() { + if (indexBuilder_ != null) { + return indexBuilder_.getMessageOrBuilder(); + } else { + return index_ == null + ? com.google.cloud.vectorsearch.v1.Index.getDefaultInstance() + : index_; + } + } + + /** + * + * + *
                    +     * Required. The resource being updated.
                    +     * 
                    + * + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.Index, + com.google.cloud.vectorsearch.v1.Index.Builder, + com.google.cloud.vectorsearch.v1.IndexOrBuilder> + internalGetIndexFieldBuilder() { + if (indexBuilder_ == null) { + indexBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.Index, + com.google.cloud.vectorsearch.v1.Index.Builder, + com.google.cloud.vectorsearch.v1.IndexOrBuilder>( + getIndex(), getParentForChildren(), isClean()); + index_ = null; + } + return indexBuilder_; + } + + 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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. Specifies the fields to be overwritten in the Index resource by
                    +     * the update. The fields specified in the update_mask are relative to the
                    +     * resource, not the full request. A field will be overwritten if it is in the
                    +     * mask. If the user does not provide a mask then all fields present in the
                    +     * request with non-empty values will be overwritten.
                    +     *
                    +     * The following fields support update:
                    +     * * `display_name`
                    +     * * `description`
                    +     * * `labels`
                    +     * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +     * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +     *
                    +     * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +     * will be performed.
                    +     * 
                    + * + * .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. An optional request ID to identify requests. Specify a unique
                    +     * request ID so that if you must retry your request, the server will know to
                    +     * ignore the request if it has already been completed. The server will
                    +     * guarantee that for at least 60 minutes since the first request.
                    +     *
                    +     * For example, consider a situation where you make an initial request and the
                    +     * request times out. If you make the request again with the same request
                    +     * ID, the server can check if original operation with the same request ID
                    +     * was received, and if so, will ignore the second request. This prevents
                    +     * clients from accidentally creating duplicate commitments.
                    +     *
                    +     * The request ID must be a valid UUID with the exception that zero UUID is
                    +     * not supported (00000000-0000-0000-0000-000000000000).
                    +     * 
                    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
                    +     * request ID so that if you must retry your request, the server will know to
                    +     * ignore the request if it has already been completed. The server will
                    +     * guarantee that for at least 60 minutes since the first request.
                    +     *
                    +     * For example, consider a situation where you make an initial request and the
                    +     * request times out. If you make the request again with the same request
                    +     * ID, the server can check if original operation with the same request ID
                    +     * was received, and if so, will ignore the second request. This prevents
                    +     * clients from accidentally creating duplicate commitments.
                    +     *
                    +     * The request ID must be a valid UUID with the exception that zero UUID is
                    +     * not supported (00000000-0000-0000-0000-000000000000).
                    +     * 
                    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
                    +     * request ID so that if you must retry your request, the server will know to
                    +     * ignore the request if it has already been completed. The server will
                    +     * guarantee that for at least 60 minutes since the first request.
                    +     *
                    +     * For example, consider a situation where you make an initial request and the
                    +     * request times out. If you make the request again with the same request
                    +     * ID, the server can check if original operation with the same request ID
                    +     * was received, and if so, will ignore the second request. This prevents
                    +     * clients from accidentally creating duplicate commitments.
                    +     *
                    +     * The request ID must be a valid UUID with the exception that zero UUID is
                    +     * not supported (00000000-0000-0000-0000-000000000000).
                    +     * 
                    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
                    +     * request ID so that if you must retry your request, the server will know to
                    +     * ignore the request if it has already been completed. The server will
                    +     * guarantee that for at least 60 minutes since the first request.
                    +     *
                    +     * For example, consider a situation where you make an initial request and the
                    +     * request times out. If you make the request again with the same request
                    +     * ID, the server can check if original operation with the same request ID
                    +     * was received, and if so, will ignore the second request. This prevents
                    +     * clients from accidentally creating duplicate commitments.
                    +     *
                    +     * The request ID must be a valid UUID with the exception that zero UUID is
                    +     * not supported (00000000-0000-0000-0000-000000000000).
                    +     * 
                    + * + * + * string request_id = 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. An optional request ID to identify requests. Specify a unique
                    +     * request ID so that if you must retry your request, the server will know to
                    +     * ignore the request if it has already been completed. The server will
                    +     * guarantee that for at least 60 minutes since the first request.
                    +     *
                    +     * For example, consider a situation where you make an initial request and the
                    +     * request times out. If you make the request again with the same request
                    +     * ID, the server can check if original operation with the same request ID
                    +     * was received, and if so, will ignore the second request. This prevents
                    +     * clients from accidentally creating duplicate commitments.
                    +     *
                    +     * The request ID must be a valid UUID with the exception that zero UUID is
                    +     * not supported (00000000-0000-0000-0000-000000000000).
                    +     * 
                    + * + * + * string request_id = 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.vectorsearch.v1.UpdateIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1.UpdateIndexRequest) + private static final com.google.cloud.vectorsearch.v1.UpdateIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vectorsearch.v1.UpdateIndexRequest(); + } + + public static com.google.cloud.vectorsearch.v1.UpdateIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.UpdateIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/UpdateIndexRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/UpdateIndexRequestOrBuilder.java new file mode 100644 index 000000000000..4b230c8d4900 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/UpdateIndexRequestOrBuilder.java @@ -0,0 +1,204 @@ +/* + * 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/vectorsearch/v1/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1; + +@com.google.protobuf.Generated +public interface UpdateIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1.UpdateIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                    +   * Required. The resource being updated.
                    +   * 
                    + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + boolean hasIndex(); + + /** + * + * + *
                    +   * Required. The resource being updated.
                    +   * 
                    + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + com.google.cloud.vectorsearch.v1.Index getIndex(); + + /** + * + * + *
                    +   * Required. The resource being updated.
                    +   * 
                    + * + * .google.cloud.vectorsearch.v1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vectorsearch.v1.IndexOrBuilder getIndexOrBuilder(); + + /** + * + * + *
                    +   * Optional. Specifies the fields to be overwritten in the Index resource by
                    +   * the update. The fields specified in the update_mask are relative to the
                    +   * resource, not the full request. A field will be overwritten if it is in the
                    +   * mask. If the user does not provide a mask then all fields present in the
                    +   * request with non-empty values will be overwritten.
                    +   *
                    +   * The following fields support update:
                    +   * * `display_name`
                    +   * * `description`
                    +   * * `labels`
                    +   * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +   * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +   *
                    +   * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +   * will be performed.
                    +   * 
                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                    +   * Optional. Specifies the fields to be overwritten in the Index resource by
                    +   * the update. The fields specified in the update_mask are relative to the
                    +   * resource, not the full request. A field will be overwritten if it is in the
                    +   * mask. If the user does not provide a mask then all fields present in the
                    +   * request with non-empty values will be overwritten.
                    +   *
                    +   * The following fields support update:
                    +   * * `display_name`
                    +   * * `description`
                    +   * * `labels`
                    +   * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +   * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +   *
                    +   * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +   * will be performed.
                    +   * 
                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                    +   * Optional. Specifies the fields to be overwritten in the Index resource by
                    +   * the update. The fields specified in the update_mask are relative to the
                    +   * resource, not the full request. A field will be overwritten if it is in the
                    +   * mask. If the user does not provide a mask then all fields present in the
                    +   * request with non-empty values will be overwritten.
                    +   *
                    +   * The following fields support update:
                    +   * * `display_name`
                    +   * * `description`
                    +   * * `labels`
                    +   * * `dedicated_infrastructure.autoscaling_spec.min_replica_count`
                    +   * * `dedicated_infrastructure.autoscaling_spec.max_replica_count`
                    +   *
                    +   * If `*` is provided in the `update_mask`, full replacement of mutable fields
                    +   * will be performed.
                    +   * 
                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                    +   * Optional. An optional request ID to identify requests. Specify a unique
                    +   * request ID so that if you must retry your request, the server will know to
                    +   * ignore the request if it has already been completed. The server will
                    +   * guarantee that for at least 60 minutes since the first request.
                    +   *
                    +   * For example, consider a situation where you make an initial request and the
                    +   * request times out. If you make the request again with the same request
                    +   * ID, the server can check if original operation with the same request ID
                    +   * was received, and if so, will ignore the second request. This prevents
                    +   * clients from accidentally creating duplicate commitments.
                    +   *
                    +   * The request ID must be a valid UUID with the exception that zero UUID is
                    +   * not supported (00000000-0000-0000-0000-000000000000).
                    +   * 
                    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                    +   * Optional. An optional request ID to identify requests. Specify a unique
                    +   * request ID so that if you must retry your request, the server will know to
                    +   * ignore the request if it has already been completed. The server will
                    +   * guarantee that for at least 60 minutes since the first request.
                    +   *
                    +   * For example, consider a situation where you make an initial request and the
                    +   * request times out. If you make the request again with the same request
                    +   * ID, the server can check if original operation with the same request ID
                    +   * was received, and if so, will ignore the second request. This prevents
                    +   * clients from accidentally creating duplicate commitments.
                    +   *
                    +   * The request ID must be a valid UUID with the exception that zero UUID is
                    +   * not supported (00000000-0000-0000-0000-000000000000).
                    +   * 
                    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java index 22a28fb53677..6b18e7d9f58a 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java @@ -100,6 +100,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vectorsearch_v1_CreateIndexRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_vectorsearch_v1_CreateIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vectorsearch_v1_DeleteIndexRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -180,9 +184,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_behavior.proto\032\033google/api/field_info.p" + "roto\032\031google/api/resource.proto\032)google/" + "cloud/vectorsearch/v1/common.proto\0323google/cloud/vectorsearch/v1/embedding_confi" - + "g.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\034google/prot" - + "obuf/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\257\005\n\n" + + "g.proto\0322google/cloud/vectorsearch/v1/encryption_spec.proto\032#google/longrunning/" + + "operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\027google/rpc/status.proto\"\376\005\n\n" + "Collection\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022\030\n" @@ -190,35 +195,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" + "\006labels\030\004" - + " \003(\01324.google.cloud.vectorsearch.v1.Collection.LabelsEntryB\003\340A\001\022V\n\r" - + "vector_schema\030\007" - + " \003(\0132:.google.cloud.vectorsearch.v1.Collection.VectorSchemaEntryB\003\340A\001\0221\n" + + " \003(\01324.google.cloud.vectorsearch.v1.Collection.LabelsEntryB\003\340A\001\022V\n" + + "\r" + + "vector_schema\030\007 \003(\0132:.google.cloud.vect" + + "orsearch.v1.Collection.VectorSchemaEntryB\003\340A\001\0221\n" + "\013data_schema\030\n" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032-\n" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022M\n" + + "\017encryption_spec\030\013 \001(" + + "\0132,.google.cloud.vectorsearch.v1.EncryptionSpecB\006\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032^\n" + "\021VectorSchemaEntry\022\013\n" + "\003key\030\001 \001(\t\0228\n" - + "\005value\030\002" - + " \001(\0132).google.cloud.vectorsearch.v1.VectorField:\0028\001:\207\001\352A\203\001\n" - + "&vectorsearch.googleapis.com/Collection\022@proj" - + "ects/{project}/locations/{location}/collections/{collection}*\013collections2\n" + + "\005value\030\002 \001(\0132).google" + + ".cloud.vectorsearch.v1.VectorField:\0028\001:\207\001\352A\203\001\n" + + "&vectorsearch.googleapis.com/Collection\022@projects/{project}/locations/{loc" + + "ation}/collections/{collection}*\013collections2\n" + "collection\"\265\001\n" + "\013VectorField\022F\n" - + "\014dense_vector\030\003 " - + "\001(\0132..google.cloud.vectorsearch.v1.DenseVectorFieldH\000\022H\n\r" - + "sparse_vector\030\004 \001(\0132/.g" - + "oogle.cloud.vectorsearch.v1.SparseVectorFieldH\000B\024\n" + + "\014dense_vector\030\003" + + " \001(\0132..google.cloud.vectorsearch.v1.DenseVectorFieldH\000\022H\n\r" + + "sparse_vector\030\004" + + " \001(\0132/.google.cloud.vectorsearch.v1.SparseVectorFieldH\000B\024\n" + "\022vector_type_config\"\201\001\n" + "\020DenseVectorField\022\022\n\n" + "dimensions\030\001 \001(\005\022Y\n" - + "\027vertex_embedding_config\030\003 \001(\01323.google.cloud.v" - + "ectorsearch.v1.VertexEmbeddingConfigB\003\340A\001\"\023\n" + + "\027vertex_embedding_config\030\003 \001(\01323.goo" + + "gle.cloud.vectorsearch.v1.VertexEmbeddingConfigB\003\340A\001\"\023\n" + "\021SparseVectorField\"\265\001\n" + "\026ListCollectionsRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&vectorsearch.googleapis.com/Collection\022\026\n" + + "\006parent\030\001 \001(\tB.\340A" + + "\002\372A(\022&vectorsearch.googleapis.com/Collection\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -231,8 +239,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\"\331\001\n" + "\027CreateCollectionRequest\022>\n" - + "\006parent\030\001 \001(\tB." - + "\340A\002\372A(\022&vectorsearch.googleapis.com/Collection\022\032\n\r" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&vectorsearch.googleapis.com/Collection\022\032\n\r" + "collection_id\030\002 \001(\tB\003\340A\002\022A\n\n" + "collection\030\003" + " \001(\0132(.google.cloud.vectorsearch.v1.CollectionB\003\340A\002\022\037\n\n" @@ -240,16 +248,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027UpdateCollectionRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022A\n\n" - + "collection\030\002 \001(\0132(.g" - + "oogle.cloud.vectorsearch.v1.CollectionB\003\340A\002\022\037\n\n" + + "collection\030\002" + + " \001(\0132(.google.cloud.vectorsearch.v1.CollectionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"x\n" + "\027DeleteCollectionRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\240\006\n" + "\005Index\022^\n" - + "\030dedicated_infrastructure\030\013 \001" - + "(\01325.google.cloud.vectorsearch.v1.DedicatedInfrastructureB\003\340A\001H\000\022I\n" + + "\030dedicated_infrastructure\030\013" + + " \001(\01325.google.cloud.vectorsearch.v1.DedicatedInfrastructureB\003\340A\001H\000\022I\n" + "\013dense_scann\030\014" + " \001(\0132-.google.cloud.vectorsearch.v1.DenseScannIndexB\003\340A\001H\001\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" @@ -267,8 +275,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\211\001\352A\205\001\n" - + "!vectorsearch.googleapis.com/Index\022Pprojects/{project}/locations/{location}/col" - + "lections/{collection}/indexes/{index}*\007indexes2\005indexB\014\n\n" + + "!vectorsearch.googleapis.com/Index\022Pprojects/{project}/locations/{lo" + + "cation}/collections/{collection}/indexes/{index}*\007indexes2\005indexB\014\n\n" + "infra_typeB\014\n\n" + "index_type\"\305\001\n" + "\022CreateIndexRequest\022>\n" @@ -277,7 +285,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010index_id\030\002 \001(\tB\003\340A\002\0227\n" + "\005index\030\003" + " \001(\0132#.google.cloud.vectorsearch.v1.IndexB\003\340A\002\022\037\n\n" - + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\244\001\n" + + "\022UpdateIndexRequest\0227\n" + + "\005index\030\001 \001(\0132#.google.cloud.vectorsearch.v1.IndexB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"n\n" + "\022DeleteIndexRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!vectorsearch.googleapis.com/Index\022\037\n\n" @@ -285,7 +298,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ListIndexesRequest\0229\n" + "\006parent\030\001 \001(" + "\tB)\340A\002\372A#\022!vectorsearch.googleapis.com/Index\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"d\n" @@ -304,8 +318,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\"\237\002\n" + "\030ImportDataObjectsRequest\022\\\n\n" - + "gcs_import\030\002 \001(\0132F.google.cloud.vectorsear" - + "ch.v1.ImportDataObjectsRequest.GcsImportConfigH\000\022<\n" + + "gcs_import\030\002 \001(\0132F.googl" + + "e.cloud.vectorsearch.v1.ImportDataObjectsRequest.GcsImportConfigH\000\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\032]\n" + "\017GcsImportConfig\022\031\n" @@ -322,14 +336,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ImportDataObjectsResponse\022\"\n" + "\006status\030\001 \001(\0132\022.google.rpc.Status\"\227\003\n" + "\030ExportDataObjectsRequest\022f\n" - + "\017gcs_destination\030\002 \001(\0132K.google.cloud.vectorsearch.v1." - + "ExportDataObjectsRequest.GcsExportDestinationH\000\022<\n" + + "\017gcs_destination\030\002 \001(\0132K.google.clou" + + "d.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestinationH\000\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\032\305\001\n" + "\024GcsExportDestination\022\027\n\n" + "export_uri\030\001 \001(\tB\003\340A\002\022g\n" - + "\006format\030\002 \001(\0162R.google.cloud.vectorsea" - + "rch.v1.ExportDataObjectsRequest.GcsExportDestination.FormatB\003\340A\002\"+\n" + + "\006format\030\002 \001(\0162R.google.cloud.vectorsearch.v1.ExportDataObjec" + + "tsRequest.GcsExportDestination.FormatB\003\340A\002\"+\n" + "\006Format\022\026\n" + "\022FORMAT_UNSPECIFIED\020\000\022\t\n" + "\005JSONL\020\002B\r\n" @@ -339,10 +353,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013finish_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\033\n" + "\031ExportDataObjectsResponse\"\377\002\n" + "\027DedicatedInfrastructure\022R\n" - + "\004mode\030\001 \001(\0162:.google.cloud.vectorsearc" - + "h.v1.DedicatedInfrastructure.ModeB\003\340A\001H\000\210\001\001\022d\n" - + "\020autoscaling_spec\030\002 \001(\0132E.google.c" - + "loud.vectorsearch.v1.DedicatedInfrastructure.AutoscalingSpecB\003\340A\001\032Q\n" + + "\004mode\030\001 \001(\0162:.google" + + ".cloud.vectorsearch.v1.DedicatedInfrastructure.ModeB\003\340A\001H\000\210\001\001\022d\n" + + "\020autoscaling_spec\030\002 \001(\0132E.google.cloud.vectorsearch.v1.D" + + "edicatedInfrastructure.AutoscalingSpecB\003\340A\001\032Q\n" + "\017AutoscalingSpec\022\036\n" + "\021min_replica_count\030\001 \001(\005B\003\340A\001\022\036\n" + "\021max_replica_count\030\002 \001(\005B\003\340A\001\"N\n" @@ -352,66 +366,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PERFORMANCE_OPTIMIZED\020\002B\007\n" + "\005_mode\"\302\001\n" + "\017DenseScannIndex\022]\n" - + "\021feature_norm_type\030\002" - + " \001(\0162=.google.cloud.vectorsearch.v1.DenseScannIndex.FeatureNormTypeB\003\340A\001\"P\n" + + "\021feature_norm_type\030\002 \001(\0162=.google.cloud.ve" + + "ctorsearch.v1.DenseScannIndex.FeatureNormTypeB\003\340A\001\"P\n" + "\017FeatureNormType\022!\n" + "\035FEATURE_NORM_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\020\n" - + "\014UNIT_L2_NORM\020\0022\253\023\n" + + "\014UNIT_L2_NORM\020\0022\215\025\n" + "\023VectorSearchService\022\300\001\n" - + "\017ListCollections\0224.google.cloud.vectorsearch.v1.ListCollec" - + "tionsRequest\0325.google.cloud.vectorsearch" - + ".v1.ListCollectionsResponse\"@\332A\006parent\202\323" - + "\344\223\0021\022//v1/{parent=projects/*/locations/*}/collections\022\255\001\n\r" - + "GetCollection\0222.google.cloud.vectorsearch.v1.GetCollectionRequ" - + "est\032(.google.cloud.vectorsearch.v1.Colle" - + "ction\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/collections/*}\022\362\001\n" - + "\020CreateCollection\0225.google.cloud.vectorsearch.v" - + "1.CreateCollectionRequest\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" - + "Collection\022\021OperationMetadata\332A\037parent,collection,collec" - + "tion_id\202\323\344\223\002=\"//v1/{parent=projects/*/locations/*}/collections:\n" + + "\017ListCollections\0224.google.cloud.vectorse" + + "arch.v1.ListCollectionsRequest\0325.google.cloud.vectorsearch.v1.ListCollectionsRes" + + "ponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/collections\022\255\001\n\r" + + "GetCollection\0222.google.cloud.vectorsearch.v1" + + ".GetCollectionRequest\032(.google.cloud.vec" + + "torsearch.v1.Collection\">\332A\004name\202\323\344\223\0021\022/" + + "/v1/{name=projects/*/locations/*/collections/*}\022\362\001\n" + + "\020CreateCollection\0225.google.cloud.vectorsearch.v1.CreateCollectionRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" + + "Collection\022\021OperationMetadata\332A\037parent" + + ",collection,collection_id\202\323\344\223\002=\"//v1/{pa" + + "rent=projects/*/locations/*}/collections:\n" + "collection\022\364\001\n" - + "\020UpdateCollection\0225.google.cloud.vectorsea" - + "rch.v1.UpdateCollectionRequest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" - + "Collection\022\021OperationMetadata\332A\026collection,update_m" - + "ask\202\323\344\223\002H2:/v1/{collection.name=projects/*/locations/*/collections/*}:\n" + + "\020UpdateCollection\0225.google.cloud.vectorsearch.v1.UpdateCollectio" + + "nRequest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" + + "Collection\022\021OperationMetadata\332A\026c" + + "ollection,update_mask\202\323\344\223\002H2:/v1/{collec" + + "tion.name=projects/*/locations/*/collections/*}:\n" + "collection\022\325\001\n" - + "\020DeleteCollection\0225.google.cloud.ve" - + "ctorsearch.v1.DeleteCollectionRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\0021*//v1/{name=projects/*/locations/*/collections/*}\022\276\001\n" - + "\013ListIndexes\0220.google.cloud.vectorsearch.v1.ListIndexesRequ" - + "est\0321.google.cloud.vectorsearch.v1.ListI" - + "ndexesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{pa" - + "rent=projects/*/locations/*/collections/*}/indexes\022\250\001\n" - + "\010GetIndex\022-.google.cloud.vectorsearch.v1.GetIndexRequest\032#.google." - + "cloud.vectorsearch.v1.Index\"H\332A\004name\202\323\344\223" - + "\002;\0229/v1/{name=projects/*/locations/*/collections/*/indexes/*}\022\335\001\n" - + "\013CreateIndex\0220.google.cloud.vectorsearch.v1.CreateIndex" - + "Request\032\035.google.longrunning.Operation\"}\312A\032\n" - + "\005Index\022\021OperationMetadata\332A\025parent,i" - + "ndex,index_id\202\323\344\223\002B\"9/v1/{parent=project" - + "s/*/locations/*/collections/*}/indexes:\005index\022\325\001\n" - + "\013DeleteIndex\0220.google.cloud.vec" - + "torsearch.v1.DeleteIndexRequest\032\035.google.longrunning.Operation\"u\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" - + "\002;*9/v1/{name=projects/*/locations/*/collections/*/indexes/*}\022\362\001\n" - + "\021ImportDataObjects\0226.google.cloud.vectorsearch.v1.Impor" - + "tDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" - + "\031ImportDataObjectsRespo" - + "nse\022\031ImportDataObjectsMetadata\202\323\344\223\002F\"A/v" - + "1/{name=projects/*/locations/*/collections/*}:importDataObjects:\001*\022\362\001\n" - + "\021ExportDataObjects\0226.google.cloud.vectorsearch.v1." - + "ExportDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" - + "\031ExportDataObjectsResponse\022\031ExportDataObjectsMetadata\202\323\344\223\002" - + "F\"A/v1/{name=projects/*/locations/*/coll" - + "ections/*}:exportDataObjects:\001*\032O\312A\033vect" - + "orsearch.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\344\001\n" - + " com.google.cloud.vectorsearch.v1B\030VectorSea" - + "rchServiceProtoP\001ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectors" - + "earchpb\252\002\034Google.Cloud.VectorSearch.V1\312\002" - + "\034Google\\Cloud\\VectorSearch\\V1\352\002\037Google::" - + "Cloud::VectorSearch::V1b\006proto3" + + "\020DeleteCollection\0225.google.cloud.vectorsearch.v1.DeleteCo" + + "llectionRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/collections/*}\022\276\001\n" + + "\013ListIndexes\0220.google.cloud.vectorsearch." + + "v1.ListIndexesRequest\0321.google.cloud.vec" + + "torsearch.v1.ListIndexesResponse\"J\332A\006par" + + "ent\202\323\344\223\002;\0229/v1/{parent=projects/*/locations/*/collections/*}/indexes\022\250\001\n" + + "\010GetIndex\022-.google.cloud.vectorsearch.v1.GetInde" + + "xRequest\032#.google.cloud.vectorsearch.v1." + + "Index\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects" + + "/*/locations/*/collections/*/indexes/*}\022\335\001\n" + + "\013CreateIndex\0220.google.cloud.vectorsea" + + "rch.v1.CreateIndexRequest\032\035.google.longrunning.Operation\"}\312A\032\n" + + "\005Index\022\021OperationM" + + "etadata\332A\025parent,index,index_id\202\323\344\223\002B\"9/" + + "v1/{parent=projects/*/locations/*/collections/*}/indexes:\005index\022\337\001\n" + + "\013UpdateIndex\0220.google.cloud.vectorsearch.v1.UpdateInd" + + "exRequest\032\035.google.longrunning.Operation\"\177\312A\032\n" + + "\005Index\022\021OperationMetadata\332A\021index," + + "update_mask\202\323\344\223\002H2?/v1/{index.name=proje" + + "cts/*/locations/*/collections/*/indexes/*}:\005index\022\325\001\n" + + "\013DeleteIndex\0220.google.cloud" + + ".vectorsearch.v1.DeleteIndexRequest\032\035.google.longrunning.Operation\"u\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\002;*9/v1/{name=projects/*/locations/*/collections/*/indexes/*}\022\362\001\n" + + "\021ImportDataObjects\0226.google.cloud.vectorsearch.v1.I" + + "mportDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" + + "\031ImportDataObjectsResponse\022\031ImportDataObjectsMetadata\202\323\344\223\002F" + + "\"A/v1/{name=projects/*/locations/*/collections/*}:importDataObjects:\001*\022\362\001\n" + + "\021ExportDataObjects\0226.google.cloud.vectorsearch" + + ".v1.ExportDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" + + "\031ExportDataObjectsResponse\022\031ExportDataObjectsMetadata\202" + + "\323\344\223\002F\"A/v1/{name=projects/*/locations/*/" + + "collections/*}:exportDataObjects:\001*\032O\312A\033" + + "vectorsearch.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\344\001\n" + + " com.google.cloud.vectorsearch.v1B\030VectorSearchServiceProtoP\001ZDcloud.google.com/" + + "go/vectorsearch/apiv1/vectorsearchpb;vec" + + "torsearchpb\252\002\034Google.Cloud.VectorSearch." + + "V1\312\002\034Google\\Cloud\\VectorSearch\\V1\352\002\037Goog" + + "le::Cloud::VectorSearch::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -424,6 +445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.vectorsearch.v1.CommonProto.getDescriptor(), com.google.cloud.vectorsearch.v1.EmbeddingConfigProto.getDescriptor(), + com.google.cloud.vectorsearch.v1.EncryptionSpecProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -445,6 +467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "VectorSchema", "DataSchema", + "EncryptionSpec", }); internal_static_google_cloud_vectorsearch_v1_Collection_LabelsEntry_descriptor = internal_static_google_cloud_vectorsearch_v1_Collection_descriptor.getNestedType(0); @@ -569,8 +592,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "IndexId", "Index", "RequestId", }); - internal_static_google_cloud_vectorsearch_v1_DeleteIndexRequest_descriptor = + internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1_UpdateIndexRequest_descriptor, + new java.lang.String[] { + "Index", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_vectorsearch_v1_DeleteIndexRequest_descriptor = + getDescriptor().getMessageType(13); internal_static_google_cloud_vectorsearch_v1_DeleteIndexRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_DeleteIndexRequest_descriptor, @@ -578,7 +609,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_vectorsearch_v1_ListIndexesRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_vectorsearch_v1_ListIndexesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ListIndexesRequest_descriptor, @@ -586,7 +617,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_vectorsearch_v1_ListIndexesResponse_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_vectorsearch_v1_ListIndexesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ListIndexesResponse_descriptor, @@ -594,7 +625,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Indexes", "NextPageToken", }); internal_static_google_cloud_vectorsearch_v1_GetIndexRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_vectorsearch_v1_GetIndexRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_GetIndexRequest_descriptor, @@ -602,7 +633,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vectorsearch_v1_OperationMetadata_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_vectorsearch_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_OperationMetadata_descriptor, @@ -616,7 +647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsRequest_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsRequest_descriptor, @@ -633,7 +664,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContentsUri", "ErrorUri", "OutputUri", }); internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsMetadata_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(19); internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsMetadata_descriptor, @@ -641,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsResponse_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ImportDataObjectsResponse_descriptor, @@ -649,7 +680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Status", }); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(21); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_descriptor, @@ -666,7 +697,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExportUri", "Format", }); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsMetadata_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(22); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsMetadata_descriptor, @@ -674,13 +705,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "FinishTime", }); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsResponse_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(23); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_vectorsearch_v1_DedicatedInfrastructure_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(24); internal_static_google_cloud_vectorsearch_v1_DedicatedInfrastructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_DedicatedInfrastructure_descriptor, @@ -697,7 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinReplicaCount", "MaxReplicaCount", }); internal_static_google_cloud_vectorsearch_v1_DenseScannIndex_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(25); internal_static_google_cloud_vectorsearch_v1_DenseScannIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_DenseScannIndex_descriptor, @@ -712,6 +743,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.vectorsearch.v1.CommonProto.getDescriptor(); com.google.cloud.vectorsearch.v1.EmbeddingConfigProto.getDescriptor(); + com.google.cloud.vectorsearch.v1.EncryptionSpecProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto index 4fa5725acd71..f73098c58eb8 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto @@ -145,6 +145,7 @@ message Search { // Defines a search operation using a query vector. message VectorSearch { + // Specifies the type of vector to use for the query. oneof vector_type { // A dense vector for the query. DenseVector vector = 1; diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/encryption_spec.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/encryption_spec.proto new file mode 100644 index 000000000000..38ce3b08540a --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/encryption_spec.proto @@ -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 +// +// 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.vectorsearch.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.VectorSearch.V1"; +option go_package = "cloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb"; +option java_multiple_files = true; +option java_outer_classname = "EncryptionSpecProto"; +option java_package = "com.google.cloud.vectorsearch.v1"; +option php_namespace = "Google\\Cloud\\VectorSearch\\V1"; +option ruby_package = "Google::Cloud::VectorSearch::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; + +// Represents a customer-managed encryption key specification that can be +// applied to a Vector Search collection. +message EncryptionSpec { + // Required. Resource name of the Cloud KMS key used to protect the resource. + // + // The Cloud KMS key must be in the same region as the resource. It must have + // the format + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. + string crypto_key_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto index 3f26e1fe8002..1b06744e6d1b 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto @@ -23,6 +23,7 @@ import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/vectorsearch/v1/common.proto"; import "google/cloud/vectorsearch/v1/embedding_config.proto"; +import "google/cloud/vectorsearch/v1/encryption_spec.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -135,6 +136,19 @@ service VectorSearchService { }; } + // Updates the parameters of a single Index. + rpc UpdateIndex(UpdateIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{index.name=projects/*/locations/*/collections/*/indexes/*}" + body: "index" + }; + option (google.api.method_signature) = "index,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Index" + metadata_type: "OperationMetadata" + }; + } + // Deletes a single Index. rpc DeleteIndex(DeleteIndexRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -212,8 +226,18 @@ message Collection { // Optional. JSON Schema for data. // Field names must contain only alphanumeric characters, // underscores, and hyphens. + // The schema must be compliant with + // [JSON Schema Draft 7](https://json-schema.org/draft-07/schema). google.protobuf.Struct data_schema = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. Specifies the customer-managed encryption key spec for + // a Collection. If set, this Collection and all sub-resources of this + // Collection will be secured by this key. + EncryptionSpec encryption_spec = 11 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // Message describing a vector field. @@ -501,6 +525,48 @@ message CreateIndexRequest { ]; } +// Message for updating an Index. +message UpdateIndexRequest { + // Required. The resource being updated. + Index index = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies the fields to be overwritten in the Index resource by + // the update. The fields specified in the update_mask are relative to the + // resource, not the full request. A field will be overwritten if it is in the + // mask. If the user does not provide a mask then all fields present in the + // request with non-empty values will be overwritten. + // + // The following fields support update: + // * `display_name` + // * `description` + // * `labels` + // * `dedicated_infrastructure.autoscaling_spec.min_replica_count` + // * `dedicated_infrastructure.autoscaling_spec.max_replica_count` + // + // If `*` is provided in the `update_mask`, full replacement of mutable fields + // will be performed. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Message for deleting an Index. message DeleteIndexRequest { // Required. The resource name of the Index to delete. diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/AsyncUpdateIndex.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/AsyncUpdateIndex.java new file mode 100644 index 000000000000..9a90cfe6500d --- /dev/null +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/AsyncUpdateIndex.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.vectorsearch.v1.samples; + +// [START vectorsearch_v1_generated_VectorSearchService_UpdateIndex_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vectorsearch.v1.Index; +import com.google.cloud.vectorsearch.v1.UpdateIndexRequest; +import com.google.cloud.vectorsearch.v1.VectorSearchServiceClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateIndex { + + public static void main(String[] args) throws Exception { + asyncUpdateIndex(); + } + + public static void asyncUpdateIndex() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) { + UpdateIndexRequest request = + UpdateIndexRequest.newBuilder() + .setIndex(Index.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vectorSearchServiceClient.updateIndexCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vectorsearch_v1_generated_VectorSearchService_UpdateIndex_async] diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/AsyncUpdateIndexLRO.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/AsyncUpdateIndexLRO.java new file mode 100644 index 000000000000..c63fadeeb436 --- /dev/null +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/AsyncUpdateIndexLRO.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.vectorsearch.v1.samples; + +// [START vectorsearch_v1_generated_VectorSearchService_UpdateIndex_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vectorsearch.v1.Index; +import com.google.cloud.vectorsearch.v1.OperationMetadata; +import com.google.cloud.vectorsearch.v1.UpdateIndexRequest; +import com.google.cloud.vectorsearch.v1.VectorSearchServiceClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateIndexLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateIndexLRO(); + } + + public static void asyncUpdateIndexLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) { + UpdateIndexRequest request = + UpdateIndexRequest.newBuilder() + .setIndex(Index.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vectorSearchServiceClient.updateIndexOperationCallable().futureCall(request); + // Do something. + Index response = future.get(); + } + } +} +// [END vectorsearch_v1_generated_VectorSearchService_UpdateIndex_LRO_async] diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/SyncUpdateIndex.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/SyncUpdateIndex.java new file mode 100644 index 000000000000..43c006c2846b --- /dev/null +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/SyncUpdateIndex.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.vectorsearch.v1.samples; + +// [START vectorsearch_v1_generated_VectorSearchService_UpdateIndex_sync] +import com.google.cloud.vectorsearch.v1.Index; +import com.google.cloud.vectorsearch.v1.UpdateIndexRequest; +import com.google.cloud.vectorsearch.v1.VectorSearchServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateIndex { + + public static void main(String[] args) throws Exception { + syncUpdateIndex(); + } + + public static void syncUpdateIndex() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) { + UpdateIndexRequest request = + UpdateIndexRequest.newBuilder() + .setIndex(Index.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Index response = vectorSearchServiceClient.updateIndexAsync(request).get(); + } + } +} +// [END vectorsearch_v1_generated_VectorSearchService_UpdateIndex_sync] diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/SyncUpdateIndexIndexFieldmask.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/SyncUpdateIndexIndexFieldmask.java new file mode 100644 index 000000000000..86c258969da0 --- /dev/null +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/updateindex/SyncUpdateIndexIndexFieldmask.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.vectorsearch.v1.samples; + +// [START vectorsearch_v1_generated_VectorSearchService_UpdateIndex_IndexFieldmask_sync] +import com.google.cloud.vectorsearch.v1.Index; +import com.google.cloud.vectorsearch.v1.VectorSearchServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateIndexIndexFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateIndexIndexFieldmask(); + } + + public static void syncUpdateIndexIndexFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) { + Index index = Index.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Index response = vectorSearchServiceClient.updateIndexAsync(index, updateMask).get(); + } + } +} +// [END vectorsearch_v1_generated_VectorSearchService_UpdateIndex_IndexFieldmask_sync] diff --git a/java-video-intelligence/.OwlBot-hermetic.yaml b/java-video-intelligence/.OwlBot-hermetic.yaml index 32824216e8c7..d45a10f8a927 100644 --- a/java-video-intelligence/.OwlBot-hermetic.yaml +++ b/java-video-intelligence/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-video-intelligence/google-.*/src" deep-preserve-regex: -- "/java-video-intelligence/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/videointelligence/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index ab46b146d91d..8e1fdf9c43b9 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.87.0 + 2.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.87.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.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-video-live-stream/.OwlBot-hermetic.yaml b/java-video-live-stream/.OwlBot-hermetic.yaml index 8bedea65aee7..d5a2876a1ffd 100644 --- a/java-video-live-stream/.OwlBot-hermetic.yaml +++ b/java-video-live-stream/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-video-live-stream/google-.*/src" deep-preserve-regex: -- "/java-video-live-stream/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/video/livestream/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 1ff9088bdca7..b6bcb26ee585 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.90.0 + 0.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.90.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.92.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-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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/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-video-stitcher/.OwlBot-hermetic.yaml b/java-video-stitcher/.OwlBot-hermetic.yaml index c68b0a5aa09c..4a79449cfdbd 100644 --- a/java-video-stitcher/.OwlBot-hermetic.yaml +++ b/java-video-stitcher/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-video-stitcher/samples/snippets/generated" deep-preserve-regex: -- "/java-video-stitcher/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/video/stitcher/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 6d64aee0e019..2315bb8697e7 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.88.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.88.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-video-transcoder/.OwlBot-hermetic.yaml index 82413a975024..f6e4e1a4a4ff 100644 --- a/java-video-transcoder/.OwlBot-hermetic.yaml +++ b/java-video-transcoder/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-video-transcoder/google-.*/src" deep-preserve-regex: -- "/java-video-transcoder/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/video/transcoder/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 1fc50cb572b5..8ccacf7902ee 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.87.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.87.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.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-vision/.OwlBot-hermetic.yaml b/java-vision/.OwlBot-hermetic.yaml index 29f54b181f79..e394616ef3c0 100644 --- a/java-vision/.OwlBot-hermetic.yaml +++ b/java-vision/.OwlBot-hermetic.yaml @@ -20,16 +20,17 @@ deep-remove-regex: - "/java-vision/google-.*/src" deep-preserve-regex: -- "/java-vision/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageName.java" -- "/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java" -- "/java-vision/google-cloud-vision/src/test/resources/city.jpg" -- "/java-vision/google-cloud-vision/src/test/resources/face_no_surprise.jpg" -- "/java-vision/google-cloud-vision/src/test/resources/landmark.jpg" -- "/java-vision/google-cloud-vision/src/test/resources/logos.png" -- "/java-vision/google-cloud-vision/src/test/resources/puppies.jpg" -- "/java-vision/google-cloud-vision/src/test/resources/text.jpg" -- "/java-vision/google-cloud-vision/src/test/resources/wakeupcat.jpg" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageName.java" +- "/.*google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java" +- "/.*google-cloud-vision/src/test/resources/city.jpg" +- "/.*google-cloud-vision/src/test/resources/face_no_surprise.jpg" +- "/.*google-cloud-vision/src/test/resources/landmark.jpg" +- "/.*google-cloud-vision/src/test/resources/logos.png" +- "/.*google-cloud-vision/src/test/resources/puppies.jpg" +- "/.*google-cloud-vision/src/test/resources/text.jpg" +- "/.*google-cloud-vision/src/test/resources/wakeupcat.jpg" deep-copy-regex: - source: "/google/cloud/vision/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-vision/README.md b/java-vision/README.md index 4156915a0250..180a81f51a78 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.86.0 + 3.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.86.0' +implementation 'com.google.cloud:google-cloud-vision:3.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.88.0" ``` ## Authentication @@ -175,7 +175,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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.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-visionai/.OwlBot-hermetic.yaml b/java-visionai/.OwlBot-hermetic.yaml index f2189a01e6e4..05f7525e913b 100644 --- a/java-visionai/.OwlBot-hermetic.yaml +++ b/java-visionai/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-visionai/samples/snippets/generated" deep-preserve-regex: -- "/java-visionai/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/visionai/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-visionai/README.md b/java-visionai/README.md index f4313a3dff4b..9d94b46374fa 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.45.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.45.0' +implementation 'com.google.cloud:google-cloud-visionai:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.47.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-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.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/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-vmmigration/.OwlBot-hermetic.yaml b/java-vmmigration/.OwlBot-hermetic.yaml index e582c03af986..56746503806f 100644 --- a/java-vmmigration/.OwlBot-hermetic.yaml +++ b/java-vmmigration/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-vmmigration/google-.*/src" deep-preserve-regex: -- "/java-vmmigration/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/vmmigration/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index 74d4853f6dc3..ab3e6460c250 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.88.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-vmwareengine/.OwlBot-hermetic.yaml index af0b8fd8bdd0..32625de40188 100644 --- a/java-vmwareengine/.OwlBot-hermetic.yaml +++ b/java-vmwareengine/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-vmwareengine/samples/snippets/generated" deep-preserve-regex: -- "/java-vmwareengine/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/vmwareengine/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index d8739f51f604..dacaedd3e625 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.82.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.82.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.84.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-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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/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-vpcaccess/.OwlBot-hermetic.yaml b/java-vpcaccess/.OwlBot-hermetic.yaml index 4b1f46404548..b59f9f7eb2cd 100644 --- a/java-vpcaccess/.OwlBot-hermetic.yaml +++ b/java-vpcaccess/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-vpcaccess/proto-google-.*/src" - "/java-vpcaccess/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/vpcaccess/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-vpcaccess/$1/proto-google-cloud-vpcaccess-$1/src" diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 2c081e6f528f..c5a5289f4e31 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.89.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.89.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.91.0" ``` ## Authentication @@ -175,7 +175,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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-webrisk/.OwlBot-hermetic.yaml index 7f801e5c7740..5f7551f9c27b 100644 --- a/java-webrisk/.OwlBot-hermetic.yaml +++ b/java-webrisk/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-webrisk/google-.*/src" deep-preserve-regex: -- "/java-webrisk/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/webrisk/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-webrisk/README.md b/java-webrisk/README.md index d8a7732580bc..719c6bd0d2e4 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.87.0 + 2.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.87.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.89.0" ``` ## Authentication @@ -175,7 +175,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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.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-websecurityscanner/.OwlBot-hermetic.yaml b/java-websecurityscanner/.OwlBot-hermetic.yaml index a25ab3d02e70..cb099f7e32c5 100644 --- a/java-websecurityscanner/.OwlBot-hermetic.yaml +++ b/java-websecurityscanner/.OwlBot-hermetic.yaml @@ -20,9 +20,10 @@ deep-remove-regex: - "/java-websecurityscanner/google-.*/src" deep-preserve-regex: -- "/java-websecurityscanner/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlNegativeTest.java" -- "/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlNegativeTest.java" +- "/.*google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java" deep-copy-regex: diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index db316c1b8726..e61c1ddde0d6 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.88.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-workflow-executions/.OwlBot-hermetic.yaml index d8b8d244bec6..db20f01d0b75 100644 --- a/java-workflow-executions/.OwlBot-hermetic.yaml +++ b/java-workflow-executions/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-workflow-executions/samples/snippets/generated" deep-preserve-regex: -- "/java-workflow-executions/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/workflows/executions/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 0a489d4978a3..86e6bd9100d6 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.88.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-workflows/.OwlBot-hermetic.yaml index 752d55515d34..cdee73a24d38 100644 --- a/java-workflows/.OwlBot-hermetic.yaml +++ b/java-workflows/.OwlBot-hermetic.yaml @@ -19,6 +19,9 @@ deep-remove-regex: - "/java-workflows/proto-google-.*/src" - "/java-workflows/google-.*/src" +deep-preserve-regex: + - "/.*google-.*/src/main/java/.*/stub/Version.java" + deep-copy-regex: - source: "/google/cloud/workflows/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workflows/$1/proto-google-cloud-workflows-$1/src" diff --git a/java-workflows/README.md b/java-workflows/README.md index 3498b205fa92..a1b8a487eba1 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.88.0 + 2.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.88.0' +implementation 'com.google.cloud:google-cloud-workflows:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.90.0" ``` ## Authentication @@ -175,7 +175,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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/.OwlBot-hermetic.yaml b/java-workloadmanager/.OwlBot-hermetic.yaml index 1364caa0df74..35136c7ef699 100644 --- a/java-workloadmanager/.OwlBot-hermetic.yaml +++ b/java-workloadmanager/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-workloadmanager/samples/snippets/generated" deep-preserve-regex: -- "/java-workloadmanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/workloadmanager/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-workloadmanager/README.md b/java-workloadmanager/README.md index efd0a33f3117..86370344d780 100644 --- a/java-workloadmanager/README.md +++ b/java-workloadmanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadmanager - 0.4.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadmanager:0.4.0' +implementation 'com.google.cloud:google-cloud-workloadmanager:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.6.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-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.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/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-workspaceevents/.OwlBot-hermetic.yaml b/java-workspaceevents/.OwlBot-hermetic.yaml index f2cc87916975..34ebbcc9793e 100644 --- a/java-workspaceevents/.OwlBot-hermetic.yaml +++ b/java-workspaceevents/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-workspaceevents/samples/snippets/generated" deep-preserve-regex: -- "/java-workspaceevents/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/apps/events/subscriptions/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 3f015be2d4bc..6cfae91d994c 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.52.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.52.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.54.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-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.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/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-workstations/.OwlBot-hermetic.yaml b/java-workstations/.OwlBot-hermetic.yaml index 0fd9d510a317..2e2118bed884 100644 --- a/java-workstations/.OwlBot-hermetic.yaml +++ b/java-workstations/.OwlBot-hermetic.yaml @@ -20,7 +20,8 @@ deep-remove-regex: - "/java-workstations/samples/snippets/generated" deep-preserve-regex: -- "/java-workstations/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/cloud/workstations/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-workstations/README.md b/java-workstations/README.md index f0cb1f0234b7..35e8cce042b6 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.76.0' +implementation 'com.google.cloud:google-cloud-workstations:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.78.0" ``` ## Authentication @@ -175,7 +175,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.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/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